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.

Template Questions /

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

Different header pictures based on parent


Go to End


2 Posts   2778 Views

Avatar
Naex

Community Member, 7 Posts

15 August 2009 at 6:28am

Hello. I want to have a different header for every page, based on the parent (so if the first level is "About us" I want "Contact Us" which is it's child to have the same header). Is there a way to get an if statement to check the parent of a page? I didn't have any luck when I tried.

Thanks.

Avatar
FireMe!

Community Member, 74 Posts

16 August 2009 at 2:59am

this topic might help you, http://www.silverstripe.org/template-questions/show/254016#post254016 a had some problems with it but got it working now.