Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Page titles

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 1165 Views
  • sherman
    Avatar
    Community Member
    48 Posts

    Page titles Link to this post

    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?

  • Hamish
    Avatar
    Community Member
    712 Posts

    Re: Page titles Link to this post

    How about:

    <% if Parent %>
    <h2>$Parent.Title</h2>
    <% else %>
    <h2>$Title</h2>
    <% end_if %>

  • sherman
    Avatar
    Community Member
    48 Posts

    Re: Page titles Link to this post

    thanks!

  • cerelac
    Avatar
    Community Member
    34 Posts

    Re: Page titles Link to this post

    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.

    1165 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.