Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Gallery Module Issues:

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: 1232 Views
  • thisisred
    Avatar
    Community Member
    9 Posts

    Gallery Module Issues: Link to this post

    I just installed the gallery. I followed the directions and now when I go to the gallery page I get this error in the top of the page. Normally I'd be able to find this issue, but its a </tr>?? and its embedded in a nested file somewhere, any ideas:

    error on line 100 at column 867: Opening and ending tag mismatch: table line 0 and tr

    It's breaking the page... Thanks.

  • thisisred
    Avatar
    Community Member
    9 Posts

    Re: Gallery Module Issues: Link to this post

    Okay so after some digging and a trip over to the IRC channel I was informed that the issue I was getting was due to the fact that I was attempting to put on gallery item on a line. The feedback was that this was a known bug, however its the functionality I'm after. So I've made a slight edit to the GalleryPage.php file in the Gallery/Code folder in order to make it work. The line:                

    $item->FirstItemLine = $cpt % $this->MediaPerLine == 1;

    needs to be set to a value of 0. This will allow single line gallery entries and they seem to function properly thus far. If you do make this change however, BE AWARE that it WILL BREAK galleries with multiple images per line...

    Next, adding a description to the gallery image... SS is fun.

    1232 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.