- Forums
- »
- Slate Theme
- »
- Photo gallery problems
- »
- re: Photo gallery problems
re: Photo gallery problems
I got a fix from a reply on another forum.
Apparently the Slate theme already includes the fancybox lightbox in its code, so any other add-on that I try that has the fancybox will fail because the theme and the add-on's copy of fancybox will conflict with each other.
The solution for Sortable Fancybox Gallery was to modify the following file on my server:
[code]
SITEROOT/packages/sortable_fancybox_gallery/blocks/sortable_fancybox_gallery/controller.php
[/code]
... and remove the following code (should be lines #14-22):
[code]
public function on_page_view() {
if ($this->enableLightbox) {
$html = Loader::helper('html');
$bv = new BlockView();
$bv->setBlockObject($this->getBlockObject());
$this->addHeaderItem($html->css($bv->getBlockURL() . '/fancybox/jquery.fancybox-1.3.1.css'));
$this->addHeaderItem($html->javascript($bv->getBlockURL() . '/fancybox/jquery.fancybox-1.3.1.pack.js'));
}
}
[/code]
This worked great but shouldn't be necessary. Is there some way you can provide a warning or an option for users of this theme to turn the theme's fancybox on/off?

admin
re: Photo gallery problems
I am going to add this to my to do list for the next update of Slate.