Image gallery with Fancybox

Get help with installation and running PivotX 2.0.x here. Please do not post Extension or Theme related questions here.

Re: Image gallery with Fancybox

Postby rabbeltje » Wed Feb 03, 2010 3:29 pm

true offcourse! but i'm not sure it works... i seem to remember trying myself and not being able to change anything.
User avatar
rabbeltje
 
Posts: 326
Joined: Mon Aug 25, 2008 11:54 am
Location: Neerbeek, The Netherlands

Re: Image gallery with Fancybox

Postby Schop » Wed Feb 03, 2010 4:01 pm

That might have to do with the order in which the CSS files were referenced. After all, they are Cascading Style Sheets.
User avatar
Schop
Contributor
 
Posts: 305
Joined: Mon Apr 21, 2008 1:47 pm
Location: Hudson, Ohio

Re: Image gallery with Fancybox

Postby Harm10 » Wed Feb 03, 2010 7:48 pm

With http://pivot-weblog.svn.sourceforge.net/viewvc/pivot-weblog?view=rev&revision=2305 the latest version of Fancybox is implemented together with some additional possibilities. These possibilities will probably be enhanced in the future.
Quality is in the detail of things............
Harm10
Contributor
 
Posts: 369
Joined: Wed Jun 17, 2009 9:37 am
Location: Somewhere in The Netherlands (aka Holland)

Re: Image gallery with Fancybox

Postby gwbonline » Mon Feb 08, 2010 1:23 pm

May I ask what these additional possibilities are before I install the latest release?

I know how to set things in the css file, but I mean the code PivotX adds automatically to the head section.

Code: Select all
<script type="text/javascript">
      jQuery.noConflict();
      jQuery(document).ready(function() {
    jQuery("a.fancybox").fancybox({ 'padding': '2', 'overlayShow': true, 'overlayOpacity': 0.25, 'zoomOpacity': true, 'zoomSpeedIn': 100, 'zoomSpeedOut': 100, 'zoomSpeedChange': 100, 'showCloseButton': true });
   });
   </script>


With these settings I can change the behaviour of Fancybox. But where can I edit them? They are not in the template...
gwbonline
 
Posts: 306
Joined: Tue Jan 01, 2008 5:17 pm

Re: Image gallery with Fancybox

Postby Harm10 » Mon Feb 08, 2010 5:53 pm

It's the intention to add some profile structure for these parms so you can select a set of parms through an easy identifier.
Anyway the settings you are referring to are in pivotx/extensions/fancybox/snippet_fancybox.php in the function fancyboxIncludeCallback.
Quality is in the detail of things............
Harm10
Contributor
 
Posts: 369
Joined: Wed Jun 17, 2009 9:37 am
Location: Somewhere in The Netherlands (aka Holland)

Re: Image gallery with Fancybox

Postby gwbonline » Fri Mar 19, 2010 3:26 pm

I keep having problems with the gallery extension. On a new website I want to display some images.

- I activated the Gallery extension
- I activated the Fancybox snippet
- I added the necessary code to the template

The javascript files are not put in the head section automatically.

I also used the 'getpage' funtion to display the page with the gallery on the frontpage.

I'm using PivotX 2.1.0 beta 4. The debug windows says nothing about the gallery.

It's on the frontpage of www.slapendrijker.nl (test server). There should be images below 'Een greep uit onze producten'

Willem
gwbonline
 
Posts: 306
Joined: Tue Jan 01, 2008 5:17 pm

Re: Image gallery with Fancybox

Postby Schop » Fri Mar 19, 2010 7:23 pm

You might have forgotten to put popup="fancybox" or something similar in your [[ gallery ]] tag.
User avatar
Schop
Contributor
 
Posts: 305
Joined: Mon Apr 21, 2008 1:47 pm
Location: Hudson, Ohio

Re: Image gallery with Fancybox

Postby hansfn » Fri Mar 19, 2010 8:03 pm

Yes, it's a good suggestion from Schop. In addition, you said

I also used the 'getpage' funtion to display the page with the gallery on the frontpage.

Does it work on the actual page (that you "get")? (If it does, there might be a bug in getpage stopping the gallery tag from working correctly?)
hansfn
Developer
 
Posts: 1873
Joined: Sun Nov 25, 2007 7:48 pm
Location: Molde, Norway

Re: Image gallery with Fancybox

Postby gwbonline » Sat Mar 20, 2010 8:32 am

The popup code is already part of the gallery tag. And the gallery works on the actual page.

I get that page with:

Code: Select all
[[ getpage uri=fotovp ]]
<h1>[[ $page.title ]]</h1>
[[ $page.introduction ]]
[[ resetpage ]]


Have I forgot something?
gwbonline
 
Posts: 306
Joined: Tue Jan 01, 2008 5:17 pm

Re: Image gallery with Fancybox

Postby hansfn » Sat Mar 20, 2010 9:57 am

I'll test it myself, but while you are waiting please check that you actually have put the gallery tag in the introduction and not the body.

PS! The page fotovp is invalid HTML - the closing body and html tags are missing. Is it just that the templates are unfinished?
hansfn
Developer
 
Posts: 1873
Joined: Sun Nov 25, 2007 7:48 pm
Location: Molde, Norway

PreviousNext

Return to 2.x Support Forum

Who is online

Users browsing this forum: Baidu [Spider] and 0 guests

cron