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.

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

[SOLVED] A question of <% control %>


Go to End


9 Posts   1678 Views

Avatar
ambient

Community Member, 130 Posts

12 November 2011 at 6:16am

Thanks Guys,

You da man JonoM. Thank you so much. I don't know why I didn't try the <% if Level(2) %> before as it seems so obvious (now that you've pointed it out :) )

The Reason I wanted it to work this way is the parent page title is also the main title for the section subpages. So I wanted the parent title as the main title for each page and then wanted the subpage title as the secondary title. Does that make sense? Anyhooo, you got me out of that pickle so thank you very much.

Also thanks for explaining the Level(x) controls, I had that all wrong in my head.

Go to Top