Ad Space

1.9.2

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

I liked a @YouTube video http://t.co/SJsi2ynV Gruen - Cancer at 17
Monday, 9 January 2012 @ 21:58

I’ve give this plaguing Q a bounty. Come solve it if you can :D http://t.co/QIuyzGuG
Tuesday, 6 December 2011 @ 08:59

Can anyone solve this lol? I almost have it now, little off http://t.co/qJMdPDIt Use a string argument to case a namespace or type? C#
Saturday, 3 December 2011 @ 16:19

Can anyone answer this? http://t.co/QIuyzGuG "in a .net 2.0 C# script use String arg to case namespace/type"
Thursday, 1 December 2011 @ 07:39

this is a very interesting ted talk. west better shape back up, smarten back up and make it happen. http://t.co/MJCaDUAO down with REP.
Thursday, 6 October 2011 @ 12:31

Has to be the fastest way to edit in #CMSMS!! HTML/JS/CSS all at the same time! Power of #jQuery, can't wait to launch http://t.co/EpwlYLTI
Sunday, 18 September 2011 @ 15:40

About done with updates for ScriptDeploy! #CMSMS 1.10 ready, hot new features: including live time CSS/JS/html editing http://t.co/2ek53IHe
Saturday, 17 September 2011 @ 20:42

@jacklmoore happily, I'll shoot an email as the link is not public yet. for the greater good. greater good :D ha
Thursday, 1 September 2011 @ 12:07

@jschmid_no1 Tk :D figured it has all my info in it, why not
Wednesday, 31 August 2011 @ 11:58

@jacklmoore hey, had need on ipad to stop the CB resize. Solved by adding resize:true & if(settings.resize) & $window.bind('resize.' @L~491
Wednesday, 31 August 2011 @ 11:51

Fallow Me -- 91 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