Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 09-12-2017 13:55:58

sppars
Member
Registered: 01-25-2006
Posts: 301

FancyBox Options

I've tried editing the options for FancyBox in jslib, but the changes are not taking effect. A view source of the page shows the modified options with the new values, but FancyBox still shows what appears to be default options for FancyBox.

Is there anywhere else the information could be coming in from or need to be changed?

Main objective is to set titlePosition to inside. Interestingly enough, in jslib (unmodified) titlePosition is set to over, but FancyBox shows title in outside position (default).

Any suggestions where else to look at?

Offline

 

#2 09-13-2017 07:39:49

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: FancyBox Options

I'll look into this and report back.  It may be the options being passed by jslib to fancybox are using an outdated syntax or non-existent keys (ie: version differences).  If this is the case, it's an oversight on our end and it will be fixed in an update.  Either way, I'll post back here when I figure it out.


Nick Hendler

Offline

 

#3 09-18-2017 11:48:22

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: FancyBox Options

I've looked into this.  The options being passed to FancyBox via K9 in {private}/core/CORE/includes/jslib.php are using an old API. 

In release 9.0.2 all options for FancyBox have been removed, as current default options match the older API options that were being used.  For your info, the current FancyBox call in version 9.0.2 looks like this:

Code:

jQuery("a[rel~=lightbox]").fancybox();

Passing custom options to FancyBox from K9 works, so you can do it.  Simply modify the FancyBox logic in K9 by editing {private}/core/CORE/includes/jslib.php and pass API options into FancyBox that it will recognize.  For those, check out {public}/media/jquery-plugins/fancybox/jquery.fancybox.js.  Ie, something like:

Code:

jQuery("a[rel~=lightbox]").fancybox({'modal': true});

FYI, we intentionally use 'lightbox' for the 'rel' as it's W3C-recognized.


Nick Hendler

Offline

 

Board footer