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.

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   1426 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