Jump to:

10979 Posts in 2722 Topics by 1815 members

All other Modules

SilverStripe Forums » All other Modules » Image_gallery

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 979 Views
  • perla
    Avatar
    Community Member
    6 Posts

    Image_gallery Link to this post

    I would like the text entered as Caption to be shown as a textline under the small thumbnail picture. Can not figure out what file or files to modify. Can anyone give a hint please.

    P-O

  • theAlien
    Avatar
    Community Member
    131 Posts

    Re: Image_gallery Link to this post

    Layout/ImageGalleryPage_album.ss - somewhere around lines 21-34
    At least... if you want to show the caption in the frontend...

  • perla
    Avatar
    Community Member
    6 Posts

    Re: Image_gallery Link to this post

    Thank you, I just found it. Problem solved.

    P-O

  • UncleCheese
    Avatar
    4085 Posts

    Re: Image_gallery Link to this post

    Just make sure you copy the template to your mysite/Layout directory, so when updates come out it doesn't break your changes.

  • perla
    Avatar
    Community Member
    6 Posts

    Re: Image_gallery Link to this post

    Ttank you, that will save a lot of work in the future.
    Exactly what need to be in mysite directory? I suppose it is ok to move the folder image_gallery, but only modifyed files is nessesary.

    P-O

  • UncleCheese
    Avatar
    4085 Posts

    Re: Image_gallery Link to this post

    Basically, every time a template is requested in Silverstripe, it looks in your theme directory (or mysite folder) first, then falls back on the module folder.

    So if you create /mysite/templates/Layout/ImageGalleryPage_album.ss, and run a /dev/build, the ImageGallery module will now use that template instead of its own, provided it has exactly the same filename.

    Needless to say, copy over the content from the image_gallery template to get started, and then modify it from there.

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