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
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
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
Layout/ImageGalleryPage_album.ss - somewhere around lines 21-34
At least... if you want to show the caption in the frontend...
Thank you, I just found it. Problem solved.
P-O
Just make sure you copy the template to your mysite/Layout directory, so when updates come out it doesn't break your changes.
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
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.