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.

Template Questions

Different header pictures based on parent


Reply

2 Posts   1806 Views

Avatar
Naex

15 August 2009 at 6:28am Community Member, 7 Posts

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!

16 August 2009 at 2:59am Community Member, 74 Posts

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.