/ Published in: Other
Put this in your template.
Expand |
Embed | Plain Text
# ------------------------ # Meny level 1 # ------------------------ # Menu 1 cObject lib.mainMenu = HMENU lib.mainMenu.1.wrap = <ul>|</ul> # First level menu-object, textual lib.mainMenu.1 = TMENU lib.mainMenu.1 { expAll = 0 # Normal state properties NO.allWrap = <li> | </li> NO.stdWrap.htmlSpecialChars = 1 # Enable active state and set properties: ACT = 1 ACT.stdWrap.htmlSpecialChars = 1 ACT.allWrap = <li class="selected"> | </li> } # Second level menu-object, textual lib.mainMenu.2 = TMENU lib.mainMenu.2.wrap = <ul>|</ul> lib.mainMenu.2 { # Normal state properties NO.allWrap = <li> | </li> NO.stdWrap.htmlSpecialChars = 1 # Enable active state and set properties: ACT = 1 ACT.stdWrap.htmlSpecialChars = 1 ACT.allWrap = <li class="selected"> | </li> }
Comments
Subscribe to comments
You need to login to post a comment.

Thank you very much for this post. You saved my time lot.
i need one help. How can i get all menus? i need drop down menu so all sub menus should show every time not whenever visit individual parent menus.
Thanks, Sridhar
For Sridhar and others,
To have all sub menus always shown just change line 12 expAll from 0 to 1. If you want this behavior only in sub menus then add the line "expAll = 1" at the level you want.
Cheers