ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Using Supersized.js & Channel Images in EE2.7

September 20, 2013 11:44am

Subscribe [1]
  • #1 / Sep 20, 2013 11:44am

    boshell

    8 posts

    hey. Im stuck - Ive got a simple portfolio site with a few channels, lists, search and so forth. Im using Supersized with Channel Images to run galleries. I made the first gallery (for the background full screen slides) using an entry in a dedicated channel, uploaded a bunch of images, and used the following code to run the script:

    {exp:channel:entries channel="gallery" entry_id="18" enable="custom_fields" parse="inward" limit="1"}
    
    [removed]
       jQuery(function($){
    
    /... all the supersized stuff before the slides list .../
    
    
    slides  :
       [
       {gallery_image}
       {image : '{image:url:full-size-op}', title : '{image:title}', thumb : '{image:url:thumbnail}'},
       {/gallery_image}
          
        ]
      });
          });
       [removed]
    
    {/exp:channel:entries}

    This works fine* in all sections of the site, except the (single) entry pages. Why is it breaking, has anyone come across anything similar? Even though it has a last trailing comma, that doesn’t seem to be a problem. In other words, by segment_3, it breaks, like this: http://www.mydomain.com/channel/entry/entry_title
    (Im running the site without index.php.)

    (* - Caveat: in IE8 the script breaks as it returns an error to do with ‘thumb_links’ being undefined, even though they are. My code isn’t the cause of that break, but its a separate issue)

     

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases