Jump to:

1347 Posts in 439 Topics by 514 members

Themes

SilverStripe Forums » Themes » How do I call the About Us menu to all pages?

Discuss SilverStripe Themes.

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

Page: 1
Go to End
Author Topic: 523 Views
  • Sophie
    Avatar
    Community Member
    33 Posts

    How do I call the About Us menu to all pages? Link to this post

    I know this information is here, but for the live of me I cannot find it. In my sidebar I want to have the about us menu show in all pages and sections of the site. How do I insert the "About Us" page and it's child pages?

    Thank you!

    Sophie

  • stallain
    Avatar
    Community Member
    61 Posts

    Re: How do I call the About Us menu to all pages? Link to this post

    Hi Sophie,
    A simple way is to call your "About us" page directly by its URL. Assuming the URL is "about-us", you could add something like this to your .ss page :

    <% control Page(about-us) %>
    <h3>$Title</h3>
    $Content
    <ul>
    <% control Children %>
    <li><a href="$Link">$Title</a></li>
    <% end_control %>
    </ul>
    <% end_control %>


    Stan

    523 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.