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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Don't want BannerImage on HomePage.ss


Go to End


1396 Views

Avatar
Valorinbattle

Community Member, 95 Posts

19 February 2009 at 2:13pm

Okay so I've successfully setup BannerImage per the tutorials. I'm wanting it to appear on all "Page" type pages but not for "HomePage" pages.

Right now the code is on Templates/Page.ss.
If I remove it to Templates/Layouts/Page.ss it is being called thru $Layout (from Templates/Page.ss). This doesn't work for me since it then appears in the middle of my page instead of above the $Layout section.

What can I do to move it off Templates/Page.ss, get it out of $Layout, and still call it for all "Page" type pages?

Thanks for your help!
~ James