17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1211 Views |
-
having second level navigation sidebar on the blog

21 August 2008 at 1:51am
Is this possible?
I made a mock-up in paint to demonstrate.
-
Re: having second level navigation sidebar on the blog

28 August 2008 at 10:42am Last edited: 28 August 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
themes/mythemename/templates/Includes/SideBar.ss
to
blog/templates/Includes/BlogNavSide.ssedit BlogNavSide.ss 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/BlogSideBar.ss 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). BlogSideBar.ss should now look like this;<div id="Sidebar" class="typography">
<% include BlogNavSide %>
$SideBar
</div>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 .
| 1211 Views | ||
|
Page:
1
|
Go to Top |

