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:

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

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

two template for image gallery


Go to End


3 Posts   1309 Views

Avatar
Rishi

Community Member, 97 Posts

24 January 2010 at 7:49am

hello
i have installed image gallery and its working fine but i need to create 3 gallery with different layout,..is it possible to create different template for image gallery and if possible then how to do it??

Avatar
UncleCheese

Forum Moderator, 4102 Posts

24 January 2010 at 2:04pm

The cleanest and easiest way to do it is to add an ID to your body tag:

<body id="$URLSegment" class="$ClassName">

Then you can update your layout with CSS

#gallery-one .gallery-layout {....}
#gallery-two .gallery-layout {....}

etc..

Avatar
Valorinbattle

Community Member, 95 Posts

4 October 2010 at 1:22pm

UncleCheese, by default, Image Gallery extends Page. So do I update the Body tag in the Page.ss file? Thanks!

~ Valorinbattle