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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

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


1100 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