Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Gallery Navigation Bug

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 1473 Views
  • Liam
    Avatar
    Community Member
    470 Posts

    Gallery Navigation Bug Link to this post

    Running the latest 2.2.2 rc2 version of SilverStripe with the stable version of gallery.

    peregrineinternational.ca/photos/ (can't directly link for referrer reasons)

    If you take a look at the page, you'll see the navigation bar is messed up. It seems to be taking the last image on the next/previous page of a multi page gallery, and throwing a link to them in those square boxes. View the screenshot if you don't want to directly see the site.

    Has this ever happened to anybody? The only thing I can think of, is that I had to upload the photos through FTP into the folder, as there is a current upload bug with the latest rc version of SS, and I couldn't upload through the admin area. I don't think that would effect it though.

  • Liam
    Avatar
    Community Member
    470 Posts

    Re: Gallery Navigation Bug Link to this post

    Has anybody run the Gallery module with rc2? It's a coding issue, because I haven't touched the gallery templates much.

    Here is the code it is outputting for the navigation bar:

    <div id="NavigationBar">
    <a id="ViewLink-69" class="lightwindow" caption="800 x 533 - 57 KB" title="science teachers 2.jpg" href="/assets/photos/_resampled/ResizeRatio600600-science teachers 2.jpg" rel="Photos[Media]"/>
    <div id="Previous">link stuff here</div>
    <a id="ViewLink-69" class="lightwindow" caption="800 x 533 - 57 KB" title="science teachers 2.jpg" href="/assets/photos/_resampled/ResizeRatio600600-science teachers 2.jpg" rel="Photos[Media]"/>
    <div id="PageNumbers">link stuff here</div>
    <div id="Next">
    </div>
    <div class="clear"></div>

    I've edited out the good code, but left the div wrapper so you can see. The stuff in bold is extra code being produced out of place.

    http://www.peregrineinternational.ca/photos/

    1473 Views
Page: 1
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.