Basic menu HELP......please:)

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Locked
tmeyer45458

Basic menu HELP......please:)

Post by tmeyer45458 »

First thing first...if there is documentation beyond what is offered at -> http://wiki.cmsmadesimple.org/index.php ... nu_Manager, then please point me in that direction.  I don't want to waste anyone's time on something that has already been explained.

I am attempting to create a main menu that is global, appearing on all pages horizonally.  In addition, for select pages, there will be an additional horizontal sub menu directly below the main menu.  Not an uncommon approach - see below

Main menu: Home | About us | Contact Us
Sub  menu: Corporate Info | Location| Support

I have attempted to include a menu template but receive the following error:

string(80) "Smarty error: unable to read resource: "module_file_tpl:MenuManager;top_nav.tpl""

In bold is the template that I created based on info found in the wiki.  I'm not new to web development, php, or smarty so I'm frustrated to say the least and feel like I'm missing something very obvious. 

Any help pointing me in the right directory would be great ;D

Thanks
Last edited by tmeyer45458 on Mon Sep 03, 2007 11:39 pm, edited 1 time in total.
Greg
Power Poster
Power Poster
Posts: 598
Joined: Sun Sep 26, 2004 6:15 pm

Re: Basic menu HELP......please:)

Post by Greg »

in the menu call leave off the .tpl
Greg
tmeyer45458

Re: Basic menu HELP......please:)

Post by tmeyer45458 »

Thanks Greg for the info.  Unfortunately it didn't work.

Could someone post the code required to include an menu in a template?  Mine is as follows:

{* Start Navigation *}
 
      Navigation
      {cms_module module = "menumanager"}
 
 
{* End Navigation *}

w/the above I get a "menu" but not one of the "custom" template menus created by me.  It's odd that there's not more information about customizing menus for this cms?? 

Thanks in advance:)
tmeyer45458

Re: Basic menu HELP......please:)

Post by tmeyer45458 »

I've also tried the following w/no luck:

{* Start Navigation *}
 
      Navigation
      {menu template="top_nav.tpl"}
 
 
  {* End Navigation *}

Really...I think my question boils down to: How do you call a menu template?
tmeyer45458

[Solved] Basic menu HELP......please:)

Post by tmeyer45458 »

Problem solved.  I'm hardheaded I guess...

The following worked:

{* Start Navigation *}
 
      Navigation
      {menu template="top_nav"}
 
 
  {* End Navigation *}

The trick (I think) was to use the {menu template} tag to call the template AND to omit the .tpl as stated earlier by Greg.

Thanks Greg for the help!
Greg
Power Poster
Power Poster
Posts: 598
Joined: Sun Sep 26, 2004 6:15 pm

Re: Basic menu HELP......please:)

Post by Greg »

If it is a template you created try {menu template="top_nav"}

I see you got it !!
Last edited by Greg on Tue Sep 04, 2007 12:45 am, edited 1 time in total.
Greg
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: Basic menu HELP......please:)

Post by tsw »

for future reference:

menu manager looks for file and db templates. IF the template name ends in .tpl it goes to look for the template from filesystem, if not it hits the db.

Simple enough and I think its documented in menumanager help page ;)
Locked

Return to “Layout and Design (CSS & HTML)”