Jump to:

7935 Posts in 1536 Topics by 943 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » two template for image gallery

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1
Go to End
Author Topic: 993 Views
  • Rishi
    Avatar
    Community Member
    97 Posts

    two template for image gallery Link to this post

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

  • UncleCheese
    Avatar
    4085 Posts

    Re: two template for image gallery Link to this post

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

  • Valorinbattle
    Avatar
    Community Member
    95 Posts

    Re: two template for image gallery Link to this post

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

    ~ Valorinbattle

    993 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.