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.

General Questions /

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

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

Don't want BannerImage on HomePage.ss


Reply


841 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