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

Edit the gallery module page type


Go to End


3 Posts   1613 Views

Avatar
Big Bang Creative

Community Member, 92 Posts

19 March 2009 at 2:15am

I need a different template (edit the page type) for the gallery so I can make it go full width.

The module does not actually create a .ss template file in the normal template directory. Currently the reference for the gallery include is within layout/page.ss and uses my standard page type however $Layout is within a middle column with another column to the right of it but on the gallery page I want the middle column to take up the full width of my middle column and right column.

I have attached a mockup which may explain what I want more clearly.

Attached Files
Avatar
UncleCheese

Forum Moderator, 4102 Posts

19 March 2009 at 3:52am

Just create your own GalleryPage.ss in mysite/templates/Layout. Copy the content over and change what you want. Those default templates are built to be customized, not taken at face value.

I'd also look into the ImageGallery module, which offers many more features than the standard Gallery module. http://www.silverstripe.org/all-other-modules/show/250910#post250910

Avatar
Big Bang Creative

Community Member, 92 Posts

20 March 2009 at 12:09am

I have it sorted now. I did actually create a page type (GalleryPage.ss) and thought it was not working... turned out it was just caching so it works now.