set id to the first link in menu?

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
RazorMedia

set id to the first link in menu?

Post by RazorMedia »

I have a menu which has got rounded corners and hover effects. See -> http://www.hrproduktion.se/index.php

I made it work by setting id="left" to the startnode.

Now i´m wondering how this can be done in CMSMS?

See CMSMS version (NOTE: only works in IE so far) -> http://www.hrproduktion.se/cmsmadesimple/index.php

Hope anyone can help me with this problem
/ Mikael
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: set id to the first link in menu?

Post by Dr.CSS »

use this as your background... bg.gif for the meny...
modify the menu template in menu manager to spitout your with something like this...
id}">id}" title="{$node->menutext}"{/if} href="{$node->url}">{$node->menutext}{/foreach}
then you can use the id to style each link in your menu...
should give you something like this, your paths and ids will vary...
Home
that's how i did this...
http://www.multiintech.com/index.php?page=imap_menu
RazorMedia

Re: set id to the first link in menu?

Post by RazorMedia »

How do i know which menu template to edit?

I´m using the {bulletmenu}. I figured i should edit the "bulletmenu.tpl" in Menu manager, but there´s no Edit function. So i edited the physical file "bulletmenu.tpl" in the file manager in the manners that you discribed, but no changes shows i when i view the code.

I guess i could copy bulletmenu.tpl so i can edit it in the menu manager - but then how do I make it link to the {bulletmenu} tag?

Please help me with this - I´m a bit confused.
Last edited by RazorMedia on Sun Jul 16, 2006 5:12 pm, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: set id to the first link in menu?

Post by Dr.CSS »

when you goto the Menu Manager page the second tab shows the default menu templates...
on the rite side you see what looks like 2 pieces of paper on top of each other, the universal "copy" that CMSMS uses, clik that and name it 'whateveryouwant' then you end up at the main menu manager page and now you see your new menu, if you clik the name (word) then it opens in a window that you can edit the menu in...

to use your menu template.. the tag...

{cms_module module='menumanager' template='thenameofyourtemplate'}
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: set id to the first link in menu?

Post by Dr.CSS »

RazorMedia

Re: set id to the first link in menu?

Post by RazorMedia »

Excellent!

Thanx a lot!
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: set id to the first link in menu?

Post by Dr.CSS »

want the files?...
i'll copy/paste them in some .txt files next day getting tired... been up all night working out the calendar on this page...

http://www.multiintech.com/index.php?page=cloudy
Locked

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