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

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
libralion
Forum Members
Forum Members
Posts: 191
Joined: Fri Jul 11, 2008 4:11 pm

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

Post 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 "#" ?
Last edited by libralion on Fri Jul 11, 2008 4:33 pm, edited 1 time in total.
User avatar
kermit
Power Poster
Power Poster
Posts: 693
Joined: Thu Jan 26, 2006 11:46 am

Re: How to link to menu from imported template?

Post 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).
eternity (n); 1. infinite time, 2. a seemingly long or endless time, 3. the length of time it takes a frozen pizza to cook when you're starving.
4,930,000,000 (n); 1. a very large number, 2. the approximate world population in 1986 when Microsoft Corp issued its IPO. 3. Microsoft's net profit (USD) for the quarter (3 months) ending 31 March 2007.
CMSMS migration and setup services | Hosting with CMSMS installed and ready to go | PM me for Info
libralion
Forum Members
Forum Members
Posts: 191
Joined: Fri Jul 11, 2008 4:11 pm

Re: How to link to menu from imported template?

Post 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
Post Reply

Return to “CMSMS Core”