2 level menu in typo3


/ Published in: Other
Save to your folder(s)

Put this in your template.


Copy this code and paste it in your HTML
  1. # ------------------------
  2. # Meny level 1
  3. # ------------------------
  4.  
  5. # Menu 1 cObject
  6. lib.mainMenu = HMENU
  7. lib.mainMenu.1.wrap = <ul>|</ul>
  8. # First level menu-object, textual
  9. lib.mainMenu.1 = TMENU
  10.  
  11. lib.mainMenu.1 {
  12. expAll = 0
  13. # Normal state properties
  14. NO.allWrap = <li> | </li>
  15. NO.stdWrap.htmlSpecialChars = 1
  16. # Enable active state and set properties:
  17. ACT = 1
  18. ACT.stdWrap.htmlSpecialChars = 1
  19. ACT.allWrap = <li class="selected"> | </li>
  20. }
  21. # Second level menu-object, textual
  22. lib.mainMenu.2 = TMENU
  23. lib.mainMenu.2.wrap = <ul>|</ul>
  24. lib.mainMenu.2 {
  25. # Normal state properties
  26. NO.allWrap = <li> | </li>
  27. NO.stdWrap.htmlSpecialChars = 1
  28. # Enable active state and set properties:
  29. ACT = 1
  30. ACT.stdWrap.htmlSpecialChars = 1
  31. ACT.allWrap = <li class="selected"> | </li>
  32. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.