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.

Themes /

Discuss SilverStripe Themes.

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

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


Reply


2 Posts   619 Views

Avatar
Sophie

Community Member, 33 Posts

11 June 2011 at 6:02am

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

Avatar
stallain

Community Member, 61 Posts

11 June 2011 at 12:29pm

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