Ad Space

1.8.1

News



It's here!! Get your book today!

This great book from Packt Publishing is the key to getting up to speed in creating your own CMSMS site. Being one of the reviewers in the book, I can personal attest to its ability to take the greenest person and getting them up and running. Get your book today.

Want to read my review on this? Click here to see what I wrote.

 

Keep it Going

 If you find something here that you think was helpful, please donate to the support of this site.
Cheers
Jeremy Bass

 

http://twitter.com/statuses/user_timeline/jeremyBass26.xml?count=10&page=1

--jeremyBass26

Twitter Me This

Can't wait to get to Amsterdam and do my http://lnkd.in/byDJvp http://lnkd.in/rU225_
Friday, 27 August 2010 @ 12:56

Home-http://www.steelheadderby.com/-test of the site, not a bad competition to get in on. use my real url UDT, GetURL() is 'broken' #CMSMS
Monday, 23 August 2010 @ 09:27

Will be off to do a workshop in Amsterdam for #CMSMS #GeekMoot http://bit.ly/cUAvnW will be fun share my #jQuery n #CMSMS tricks, cy there
Tuesday, 10 August 2010 @ 11:02

k, dorky but go2 http://bit.ly/8eY1i click one of the Translate items @ the bottom and move page2page :D it's the simple things, lov #jQuery
Tuesday, 10 August 2010 @ 09:28

Don't forget 2 nominate #CMSMS for the Packt Publishing Open Source Awards http://bit.ly/9EsprT Best cms I've worked with +1 vote for me :D
Tuesday, 10 August 2010 @ 08:07

Pre-review Documentum 6.5 Content Management Foundations: Pre-review Documentum 6.5 Content Management Foundat... http://bit.ly/aRMz9d
Friday, 30 July 2010 @ 11:30

Announcement: New plug-in browsertools: Hello, thou this is not a "new" plug-in http://dev.cmsmadesimple.org/p... http://bit.ly/c0H27Y
Thursday, 22 July 2010 @ 15:37

Fallow Me -- 44 followers


 
Questions Answered
Articles Written
Overall Points

Top simple navigation + left subnavigation + 1 column

With the Menu Manager you can easily split the navigation in two parts. On this page the top level in the page hierarchy is displayed horizontally and depending on what page is displayed a localized sub-menu is displayed vertically to the left. In this case the sub-menu to the left displays the sub-levels (children) to Default Templates Explained.

The {menu} tag

The {menu} tag is inserted twice in the page template. First where the main navigation is, which should only show the top level. It looks like this: {menu template='simple_navigation.tpl' number_of_levels='1'}.

The sub navigation should only contain the second level and down, depending on what is selected on the first level. Also, the third level links should only display when its parent on the second level is clicked, otherwise they are hidden. That is, the second level is collapsed unless the current page has sub pages.

The tag for the sub navigation looks like this: {menu template='simple_navigation.tpl' start_level='2' collapse='1'}.

Attached style sheets for the menu

As the main navigation and the sub navigation need to be styled differently (one horizontal, the other vertical), two navigation style sheets are attached to this page template. Navigation: Simple - Horizontal is for styling the horizontal main menu. Navigation: Simple - Vertical on the other hand, contains the style for the sub navigation to the left.

Both using the same Menu Manager template

However, as you could see, both parts of the navigation are using the same menu manager template. That is because the output code is the same. It is only through CSS that the two parts get styled differently.

Floating the sidebar to the right

You can easily float the sidebar with the sub navigation to the right instead. Look in the Layout: Top menu + 2 columns style sheet for the float:left; property in the div#sidebar element. Change that to float:right; and the sidebar with the menu will instead be on the right side of the content, of course you will also have to adjust the margins for the sidebar and the div#main, basically just swap the left and right margins.

Ad Space