Jump to:

10997 Posts in 2731 Topics by 1822 members

All other Modules

SilverStripe Forums » All other Modules » Photo galery first content then images

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 1222 Views
  • raamklaza
    Avatar
    Community Member
    182 Posts

    Photo galery first content then images Link to this post

    Hello,

    i would love to show the content from the cms first on the galery page instead of the image or file like it is now.
    Can someone point me in the right direction where i can change this ?

    http://zeeppompje.nl/foto-s/ First it will show the image / file and then the content, but i want to turn this around.

  • theman1ct
    Avatar
    Community Member
    1 Post

    Re: Photo galery first content then images Link to this post

    Go to gallery/templates/Layout and open GalleryPage.ss

    Change it from...

       <% end_if %>
       
          <h2>$Title</h2>
          
          <% include GalleryPageContent %>
          
          $Content
          $Form
          $PageComments

    To...

       <% end_if %>
       
          <h2>$Title</h2>
          $Content      
          <% include GalleryPageContent %>
          

          $Form
          $PageComments

  • UncleCheese
    Avatar
    4085 Posts

    Re: Photo galery first content then images Link to this post

    You should never modify the template that comes with a module. Override it in your themes or mysite directory. Leave the module code untouched so that you can cleanly update the code as new versions come out. Especially if you're on SVN -- you'll run into conflicts that way.

    None of the templates that come with modules are intended to be the final implementation. You're expected to override them with your own styles and markup. Just recreate ImageGalleryPage.ss and ImageGalleryPage_album.ss in your theme folder and you should be fine.

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