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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

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   1145 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)