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.

All other Modules /

Discuss all other Modules here.

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

Photo galery first content then images


Reply


3 Posts   1261 Views

Avatar
raamklaza

Community Member, 182 Posts

28 March 2009 at 12:24pm

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.

Avatar
theman1ct

Community Member, 1 Post

10 April 2009 at 2:40am

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

Avatar
UncleCheese

Forum Moderator, 4096 Posts

10 April 2009 at 3:16am

Edited: 10/04/2009 3:18am

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.