CMS MADE SIMPLE FORGE

Gallery

 

[#10637] all display templates broken except lightbox and maybe slimbox in simplex theme

avatar
Created By: Dominik Lenné (dlen)
Date Submitted: Mon Sep 14 12:50:39 -0400 2015

Assigned To: Jos (josvd)
Version: 2.0.2
CMSMS Version: 2.0
Severity: Major
Resolution: Fixed
State: Closed
Summary:
all display templates broken except lightbox and maybe slimbox in simplex theme
Detailed Description:
action:

clean install of cmsms 2.0 and Gallery
upload couple of images into Gallery
create page with {Gallery}

expected result:

images are displayed with display template of choice

actual result:

mostly, images are displayed directly in browser without javascript taking over
gallerytree throws a lot of error messages: Undefined property: stdClass::$depth
Lightbox works.


Slimbox works.






History

Comments
avatar
Date: 2016-01-08 19:14
Posted By: Dominik Lenné (dlen)

I could narrow the problem down to the loading of jquery and found 2
workarounds, that work at least for the fancybox gallery display function.

Simplex loads jQuery 1.11  at the bottom of the page, so you have 2 jQueries.

The first workaround is to deactivate the loading of jQuery in the
simplex-main-template.

The second workaround is to deactivate the loading of jQuery 1.4 by the gallery
plugin and move the loading of jQuery 1.11 in the simplex template to the top.

Because fancybox is a bit seasoned, it doesn't work with plain 1.11 and one has
to load the migrate-Option, i.e. delete "migrate" from the exclude-list in the
{cms_jquery ....} tag, as suggested by the simplex-author.
      
avatar
Date: 2016-01-08 19:32
Posted By: Dominik Lenné (dlen)

Works for AE-gallery and prettyphoto, too.

I don't know what a good general solution would be. Mayb to move all loading and
initializing to the bottom, check, wether the necessary "migrate" functionality
is loaded and load it, if not, or change to jQ-Plugins, that work with a modern
jQ.
      
avatar
Date: 2016-01-12 05:54
Posted By: Jos (josvd)

Fixed in Gallery version 2.1. There's an option in the gallery template to
insert javascript in the head element or at the bottom of the body element.
You still need to remove the call to the jQuery library (top line in the
javascript part) as Simplex has that already included and jQuery breaks when it
is included twice.
      
Updates

Updated: 2016-01-12 05:54
resolution_id: 5 => 7
assigned_to_id: 100 => 11752
state: Open => Closed

Updated: 2016-01-08 19:14
summary: all display templates broken except lightbox and maybe slimbox => all display templates broken except lightbox and maybe slimbox in simplex theme

Updated: 2015-09-14 12:55
severity_id: 12 => 2

Updated: 2015-09-14 12:54
description: action: clean install of cmsms 2.0 and Gallery upload couple of images into Gallery create page with {Gallery} expected result: images are displayed with prettyphoto actual result: images are displayed directly by the browser, no javascri => action: clean install of cmsms 2.0 and Gallery upload couple of images into Gallery create page with {Gallery} expected result: images are displayed with display template of choice actual result: mostly, images are displayed directly in b
summary: all => all display templates broken except lightbox and maybe slimbox
resolution_id: => 5