A1 Website Design

Ecommerce Brochure SEO Website Designers

Tell: 01457873877
Email: sales@a1websites.co.uk

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.

Free website hosting

one year on small websites
Contact us for details



Get your free quote

Get your free quote

A two page website design to give you a foot hold on the internet can be expanded later if you wish. click to see more

Five page website design to give small businesses an internet presence can be expanded later. click to see more
Seven page website design small businesses can have more effective content on the internet. click to see more
Ten page website design get the most from your investment more customers more profit. click to see more
Full service ecommerce website design and online store development fully admin controlled click to see more
SEO website design search engine optimisation we get you to the highest it can be in google. click to see more
Bespoke website design all our websites are bespoke but some clients need different solutions. click to see more