What tag if any can I use to display the main navigation title above my sub nav?
Right now im using $MenuTitle but if I go to a sub level page the title changes to that page name.
So is there a tag that references the main navigation title?
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
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.
What tag if any can I use to display the main navigation title above my sub nav?
Right now im using $MenuTitle but if I go to a sub level page the title changes to that page name.
So is there a tag that references the main navigation title?
How about:
<% if Parent %>
<h2>$Parent.Title</h2>
<% else %>
<h2>$Title</h2>
<% end_if %>
thanks!
Hi.
I've created a new page type that handles forms.
I use a "Holder" that display all the forms beneath it.
What I would like to know is how can I put a link in the forms new pagetype (the page type I've created based on UserDefinedForm) to its parent (the holder, in this case)?
Thank you.
EDIT: I've created a new template file for the "custom" form pagetype and I've used the code to make a link to its Parent.
I think my problem is resolved, thank you Hamish.