5450 Posts in 1672 Topics by 1197 members
|Go to End|
7 April 2011 at 4:30am
I'm looking to show a different header and footer in my templates depending on whether the current page has a certain ancestor.
So if the url has
www.mysite.com/us/mycategory/mypage perform one action
if the url has
www.mysite.com/nz/mycategory/mysubcategory/mypage perform another action.
I want to show one header and footer for us and another for nz. The page could be a variable number of levels down the heirarchy. Is there anything in SilverStripe to do this?
7 April 2011 at 4:56am
<% if InSection(nz) %>
<p>God Bless NZ!</p>
<% end_if %>
|Go to Top|