Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

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.

All other Modules /

Discuss all other Modules here.

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

Question about Image Gallery and Templates


Go to End


2 Posts   1277 Views

Avatar
Sophie

Community Member, 33 Posts

24 October 2009 at 11:12am

The image gallery seems to utilize Page.ss for the style of the page. My client wants a different template applied to the gallery page (not page.ss) and Page.ss applied to the album pages. I would imagine this is possible, but I'm not sure where to begin. Any direction would be appreciated.

Sophie

Avatar
UncleCheese

Forum Moderator, 4102 Posts

24 October 2009 at 12:12pm

Just create your own ImageGalleryPage.ss in your theme_dir/templates/Layout directory. If you want the "wrapper" of the site, that is, everything around the $Layout part to change for the ImageGalleryPage class, then create a ImageGalleryPage.ss in your_theme_dir/templates, as well (at the same level as Page.ss)