Page 1 of 1
h3 tag for activepage in default CMSMS menu
Posted: Wed Aug 12, 2009 3:17 pm
by doodleflip
I've used the default menu to handle my menu in CMSMS as its only a little horizontal text list.
For my active page, the menu has decided to add a inside the . This is kind of messing up the list.
So, I need to know firstly if I can remove the and just have it render as a list item (and only a list item!), or failing that, how can I remove the active class?
I suppose what I'm really asking is, where can I get my hands on the actual mark-up for the menu thats provided when you use the tag {menu}.
Thanks
Re: h3 tag for activepage in default CMSMS menu
Posted: Wed Aug 12, 2009 3:23 pm
by RonnyK
doodle,
when calling menu, a template is used from the Layout -> MenuManager area, being the specific template that is called, or the simple_navigation.tpl, when no template is given...
Ronny
Re: h3 tag for activepage in default CMSMS menu
Posted: Wed Aug 12, 2009 3:29 pm
by doodleflip
Hi Ronny, thanks for taking the time to reply.
I figured that might be what it was, so I went into my menu manager, into the file templates, clicked to import the template to the database, then went into the code in simple_navigation.tpl, and took out the only tags that were in there. Submit, and refresh my page, and they are still there.
Its driving me nuts!
Any other ideas? I must be doing something wrong...
Re: h3 tag for activepage in default CMSMS menu
Posted: Wed Aug 12, 2009 3:51 pm
by doodleflip
Ok, I've solved it. I needed to apply the new template to the menu.
I'm still not sure where it was getting its original mark-up from though as I changed the simple_navigation.tpl, and that was the only one out of the three default templates with a tag in it!
Re: h3 tag for activepage in default CMSMS menu
Posted: Wed Aug 12, 2009 4:41 pm
by RonnyK
You imported it, that makes it an db-template... That should be called without the ending .tpl, so the named/changed template without the .tpl should be called...
Ronny
Re: h3 tag for activepage in default CMSMS menu
Posted: Wed Aug 12, 2009 9:31 pm
by Dr.CSS
If you didn't specify a menu template in the {menu} call it uses the simple nav one, if it does have the simple nav call with .tpl in it then it uses the non DB template that will always have the h3 in it...
You could have just styled the h3 to look like you wanted...