Jump to:

10994 Posts in 2728 Topics by 1819 members

All other Modules

SilverStripe Forums » All other Modules » Working Gallery Plugin for SS 3

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14
Go to End
Author Topic: 11816 Views
  • arthurdent
    Avatar
    Community Member
    163 Posts

    Re: Working Gallery Plugin for SS 3 Link to this post

    Actually wondered later last night if it might be a stray GalleryPage.ss or GalleryPage.php causing grief. You nailed it OpticBlaze!! Thanks for all you help with this!!

  • arthurdent
    Avatar
    Community Member
    163 Posts

    Re: Working Gallery Plugin for SS 3 Link to this post

    Well, it WAS working. Just about to upload to live server and the PrettyPhoto lightbox broke! Instead of back/forward arrows and Social Media stuff I get an image on a black page. Firebug tells me:


    TypeError: $(...).prettyPhoto is not a function
       $("a[rel^='prettyPhoto']").prettyPhoto();

    Anybody ever had this happen?

  • Optic Blaze
    Avatar
    Community Member
    162 Posts

    Re: Working Gallery Plugin for SS 3 Link to this post

    Hi,

    Sounds like the pretty photo jquery.prettyPhoto.js file is not executing. Did you check that it is loaded and that there are no jquery conflicts?

  • arthurdent
    Avatar
    Community Member
    163 Posts

    Re: Working Gallery Plugin for SS 3 Link to this post

    Hi Optic Blaze! Yes, I can see prettyPhoto.js loaded and I was wondering if:

    a) There was a conflict with another script; or
    b) I needed lo load it sooner/later

    Think what happened was it stopped working once I added a responsive function to the site -- unfortunately don't know of any potential conflict. I now see that I also have jquery.min.js and jquery-1.7.1min.js. Just turned off 1.7.1 but problem not resolved -- and it threw a couple more errors.

    Will keep on looking. Thanks for the tip!

  • Optic Blaze
    Avatar
    Community Member
    162 Posts

    Re: Working Gallery Plugin for SS 3 Link to this post

    Sounds like you are on the right track:

    Try commenting out this line in the SS3 gallery module located in the GalleryPage.php file:

    //Requirements::javascript('ss3Gallery/js/jquery-1.7.1.min.js');

    You responsive design's jquery version should then take over which would hopefully sort out the conflict

  • arthurdent
    Avatar
    Community Member
    163 Posts

    Re: Working Gallery Plugin for SS 3 Link to this post

    Thanks but that didn't do it...

    Did generate a couple more errors though:

    TypeError: Object.extend is not a function
       }, window.LightboxOptions || {});

    lightb...5125063 (line 63)
    ReferenceError: Prototype is not defined
       linear: Prototype.K,
    effect...5125063 (line 73)

    TypeError: $(...).prettyPhoto is not a function
       $("a[rel^='prettyPhoto']").prettyPhoto();

    ... which doesn't mean a whole lot to me at this stage but I'll keep fiddling...

  • arthurdent
    Avatar
    Community Member
    163 Posts

    Re: Working Gallery Plugin for SS 3 Link to this post

    OK - I nailed the culprit:

    This is part of the responsive design. It means on smaller devices the navigation panel folds away into a bar at the top of the screen until it's needed... now wondering what to do as a workaround?

  • arthurdent
    Avatar
    Community Member
    163 Posts

    Re: Working Gallery Plugin for SS 3 Link to this post

    OK. So the version of jquery I'm downloading is 1.9.1

    The version included in SilverStripe (Third Party directory) is 1.7.2

    I'm wondering if they are mutually exclusive?

    11816 Views
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.