Menu Manager

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"
websponge
New Member
New Member
Posts: 9
Joined: Tue Jan 13, 2009 2:00 pm

Menu Manager

Post by websponge »

Before you ask yes I have searched and yes I have read the help in the module..

Im not quite sure how this works, I fully understand css, templates, divs, styles e.t.c but Im a little confused as to how this menu manager works, so apologies if this answer is right in front of me, its been a long day!! (Im using 1.5.1 with 1.5.3 menu manager)

I want to add my own little menu underneath the main menu (using Left simple navigation + 1 column)

I click import simple_navigation.tpl to database and rename it "Friends"  (I want a friends list under news block) then what?? edit that file?

where shall I add code to include this template under the original template?

Thanks
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Menu Manager

Post by Dr.CSS »

If you look at the default templates you see menu tag/s that is how you add menus, now you need to target the pages you want in it and that is where all the parameters in the menu manager help come in...

What does the page structure of your site look like, with the numbers etc.?...
websponge
New Member
New Member
Posts: 9
Joined: Tue Jan 13, 2009 2:00 pm

Re: Menu Manager

Post by websponge »

its still at the default installation, so nothing has changed yet, I`ll do all the content and layout later as thats the easy part, just wanted to see if I can add my own "blocks" so to speak....

I did notice "{start sidebar}" in the default tempalte, I would add my template here?
thanks for replying
websponge
New Member
New Member
Posts: 9
Joined: Tue Jan 13, 2009 2:00 pm

Re: Menu Manager

Post by websponge »

and they will just be external links, I just need them in there own block  :)
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Menu Manager

Post by Dr.CSS »

So you can use the page structure you have and set all the side ones in one part of the page structure and call them using a parameter in the menu tag {menu template="yourchoice" page_start="page alias or ID"} and if you are putting them under a section header that is set not to show in menu then see the Help or this page for more parameters...

http://wiki.cmsmadesimple.org/index.php ... Parameters
websponge
New Member
New Member
Posts: 9
Joined: Tue Jan 13, 2009 2:00 pm

Re: Menu Manager

Post by websponge »

Im sorry, that made no sense to me at all!

I have a page structure, using simple style

in the template I have this:

      {* Start Sidebar *}
     

      {* Start Navigation *}
     
         Navigation
         {menu template='simple_navigation.tpl' collapse='1'}
     
      {* End Navigation *}

      {* Start News *}
     
         News
          {news number='3' detailpage='news'}
     
      {* End News *}
     
         Navigation
         {menu template=Friends.tpl'}
     

     
      {* End Sidebar *}

I just want to add a freinds block after the news block, so I made a template called friends.tpl and then typed in the bit in red, so it includes the template, I got nowhere

this came up under the news block "string(80) "Smarty error: unable to read resource: "module_file_tpl:MenuManager;Friends.tpl""

?? I just want to add my own blocks! thanks
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Menu Manager

Post by Dr.CSS »

The .tpl is only for templates in the second tab of the menu manager and you have no '  ' around the call most times this is important...
websponge
New Member
New Member
Posts: 9
Joined: Tue Jan 13, 2009 2:00 pm

Re: Menu Manager

Post by websponge »

I saw that, tried it without .tpl and put ' around it, still doesnt work
websponge
New Member
New Member
Posts: 9
Joined: Tue Jan 13, 2009 2:00 pm

Re: Menu Manager

Post by websponge »

this is way over complicated, is there an idiots guide to the menu manager?  ???

what is the simplest way to add my own menu block?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Menu Manager

Post by Dr.CSS »

Do you have a link to it?...

Do you still have the same code/tag for the menu call in it but with the changes {menu template='Friends'}...
websponge
New Member
New Member
Posts: 9
Joined: Tue Jan 13, 2009 2:00 pm

Re: Menu Manager

Post by websponge »

Hi, Thanks for helping me, its appreciated.

I have this:


Navigation
{menu template='pals'}


in the standard template, under the news block, the template "pals" looks like this:


Trapfish Friends

Website sample link


so as you can see, it contains no extra parameters just basic html using the stylesheets allready built in.

Hope you understand. thanks

the site is www.trapfish.com
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Menu Manager

Post by Dr.CSS »

OK so you have it hard coded now, but if you read the MenuManager help you will see you can hide them from the main menu then ask for them in another menu, I have a large amount of pages in my site but only show the few at the top but if you go to my templates page you see a list of the other pages in the sides under round and squared, these are 2 calls to 2 menus and asking only for those pages I want...
websponge
New Member
New Member
Posts: 9
Joined: Tue Jan 13, 2009 2:00 pm

Re: Menu Manager

Post by websponge »

hard coded is the only way I can do it, you say "you can hide them from the main menu then ask for them in another menu"

what other menu? and whats them?? I only have the one menu hardcoded into the template?

now I cant even center my logo!  ??? its all very fustrating! but I will stick at it..

thanks Mark
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Menu Manager

Post by Dr.CSS »

You said you wanted to have a second menu, I thought you wanted a dynamic menu that you didn't have to hard code so I suggested that you make a section header that was set to not show in the menu then put all your external links or whatever you wanted in the second menu under them and then call this menu under your news block...

To center anything it needs a width and then it needs margin auto, look here for more css info...

http://www.w3schools.com/default.asp
websponge
New Member
New Member
Posts: 9
Joined: Tue Jan 13, 2009 2:00 pm

Re: Menu Manager

Post by websponge »

I used the background-position: center for the logo, and its centered :D

and ive made a template, and called it from the main template, it works, so Ill do it that way...

Thanks Mark
Post Reply

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