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.

All other Modules /

Discuss all other Modules here.

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

Photo galery first content then images


Go to End


3 Posts   1894 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, 4102 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.