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.

Customising the CMS /

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

Simple Page


Go to End


2 Posts   1538 Views

Avatar
Victor

Community Member, 128 Posts

27 February 2010 at 2:53am

I have some module and the standard view is controlled by say FooPage.ss which in turn extends Page.ss
What I want: to construct SimpleFooPage.ss which does not load Page.ss so all the headers, footers, nav. menus and all the bells and whistles do not appear.

How?

Victor

Avatar
Willr

Forum Moderator, 5523 Posts

27 February 2010 at 11:59am

Page.ss so all the headers, footers, nav. menus and all the bells and whistles do not appear.

Instead of including SimpleFooPage.ss in the templates/layout/* folder you can put SimpleFooPage.ss in templates/* (not in layout). This will make SimpleFooPage.ss the main template rather then rendered as a subtemplate inside page.