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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Themes /

Discuss SilverStripe Themes.

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

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


Go to End


2 Posts   932 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, 68 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