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:

Archive /

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

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

having second level navigation sidebar on the blog

Go to End

2 Posts   1523 Views

Matt Hardwick

Community Member, 61 Posts

21 August 2008 at 1:51am

Is this possible?

I made a mock-up in paint to demonstrate.

Matt Hardwick

Community Member, 61 Posts

28 August 2008 at 10:42am

Edited: 28/08/2008 10:43am

Ok I've done it... dunno if it's acceptable to have done it this way, but it works!

First of all copy


edit to remove the first opening div tag, it should look something like this - and is probably the first line;

 <div id="Sidebar" class="typography"> 

Also remove the corresponding closing div tag at the end of the file. We do this because that div is already declared by the file that will be including this file.

Then you want to edit blog/templates/Includes/ and enter
<% include BlogNavSide %> either above or below the $Sidebar line depending on whether you want the nav above or below the widgets. (make sure you get it right first time). should now look like this;

<div id="Sidebar" class="typography">
        <% include BlogNavSide %>

Save and there you go, it should work. I had some troubles with caching (despite cache being turned off) - so I found I had to delete the contents of tmp to get it working properly - this is located in different places for different servers so I can't tell you where it is, but on a lot of VPS machines it's /tmp and in cPanel it's the root of your home folder e.g. /home/jon/tmp .