Page 1 of 1

{solved}How to link to menu from imported template?

Posted: Fri Jul 11, 2008 4:17 pm
by libralion
Hi everybody,
I have a template already ready. I imported it in CMS made simple. Cut the content and put that on the 5 pages, that I first made. Then I cut the menu and added that to a new menu in the menu manager.
This is that menu:

Code: Select all

<div id="topnav">
			<div id="topnav_list">
				<ul>
					<li><a href="#">Home</a></li>
					<li><a href="#">Producten</a></li>
					<li><a href="#">Services</a></li>
					<li><a href="#">Over ons</a></li>
					<li><a href="#">Contact</a></li>
				</ul>
			</div>
		</div>
Everything looks good.
My only question is: how can I get the menu links to work? What do I add to the "#" ?

Re: How to link to menu from imported template?

Posted: Fri Jul 11, 2008 4:28 pm
by kermit
you are not grasping the concept of cms and automatic generation of menus.

menu templates are 'instructions' that tell the system how to construct the menus. you need not hardcode anything.

{cms_module module='menumanager'} or simply {menu}

is all you need to generate a menu. menu text and links, as well as your site's hierarchy are all accounted for in the included sample menu templates. in your site template, it would replace the entire menu.

an example with additional params added...

{cms_module module='menumanager' template='minimal_menu.tpl' number_of_levels='2' collapse='1'}

means: generate a menu, use the default minimal_menu.tpl template (will create a menu based on nested UL), show no more than 2 levels, and only show that second level when it is needed (a parent page or one of its child pages is current page).

Re: How to link to menu from imported template?

Posted: Fri Jul 11, 2008 4:33 pm
by libralion
kermit wrote: you are not grasping the concept of cms and automatic generation of menus.

menu templates are 'instructions' that tell the system how to construct the menus. you need not hardcode anything.

{cms_module module='menumanager'} or simply {menu}

is all you need to generate a menu. menu text and links, as well as your site's hierarchy are all accounted for in the included sample menu templates. in your site template, it would replace the entire menu.

an example with additional params added...

{cms_module module='menumanager' template='minimal_menu.tpl' number_of_levels='2' collapse='1'}

means: generate a menu, use the default minimal_menu.tpl template (will create a menu based on nested UL), show no more than 2 levels, and only show that second level when it is needed (a parent page or one of its child pages is current page).
Ok I got it! Thanks! ;D