Posted By


xtine777 on 03/04/19

Tagged


Statistics


Viewed 1015 times
Favorited by 0 user(s)

Left vertical menu 2 levels


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

Typoscript for multilevel vertical menu, expanding when clicked


Copy this code and paste it in your HTML
  1. lib.leftmenu = HMENU
  2. lib.leftmenu {
  3. entryLevel = 1
  4. stdWrap.required = 1
  5. stdWrap.wrap = |
  6. }
  7.  
  8. # First level
  9. lib.leftmenu.1 = TMENU
  10. lib.leftmenu.1 {
  11. stdWrap.prepend = TEXT
  12. #stdWrap.prepend.data = leveltitle:1
  13. stdWrap.prepend.data = fullRootLine : 1, nav_title // fullRootLine : 1, title
  14. stdWrap.prepend.insertData = 1
  15.  
  16. stdWrap.prepend.wrap = <h2 class="menutitle2">|</h2>
  17. noBlur = 1
  18.  
  19. NO = 1
  20. NO.wrapItemAndSub = <li class="nosub">|</li>
  21. NO.stdWrap.htmlSpecialChars = 1
  22.  
  23. ACT = 1
  24. ACT.wrapItemAndSub = <li class="nosub active">|</li>
  25. ACT.stdWrap.htmlSpecialChars = 1
  26.  
  27. CUR = 1
  28. CUR.wrapItemAndSub = <li title="You are here: "><span class="active">|</span></li>
  29. CUR.doNotLinkIt = 1
  30. CUR.stdWrap.htmlSpecialChars = 1
  31.  
  32. IFSUB = 1
  33. IFSUB.wrapItemAndSub = <li class="sub">|</li>
  34. IFSUB.stdWrap.htmlSpecialChars = 1
  35.  
  36. ACTIFSUB.wrapItemAndSub = <li class="active sub">|</li>
  37. ACTIFSUB.stdWrap.htmlSpecialChars = 1
  38.  
  39. CURIFSUB.wrapItemAndSub = <li class="active sub">|</li>
  40. CURIFSUB.stdWrap.htmlSpecialChars = 1
  41.  
  42. # Listwrap wird nach MenĂ¼titel ausgegeben
  43. stdWrap.wrap = <ul class="leftmenu vmenu">|</ul>
  44.  
  45. }
  46.  
  47. # Second level
  48. lib.leftmenu.2 = TMENU
  49. lib.leftmenu.2 {
  50. #expAll = 1
  51. noBlur = 1
  52.  
  53. wrap = <ul class="secondlevel">|</ul>
  54.  
  55. NO = 1
  56. NO.wrapItemAndSub = <li>|</li>
  57. NO.stdWrap.htmlSpecialChars = 1
  58.  
  59. ACT = 1
  60. ACT.wrapItemAndSub = <li class="active">|</li>
  61. ACT.stdWrap.htmlSpecialChars = 1
  62.  
  63.  
  64. CUR = 1
  65. #CUR.linkWrap = <li title="You are here: "><span class="active">|</span></li>
  66. CUR.wrapItemAndSub = <li title="You are here: "><span class="active">|</span></li>
  67. CUR.doNotLinkIt = 1
  68. CUR.stdWrap.htmlSpecialChars = 1
  69.  
  70. IFSUB = 1
  71. IFSUB.wrapItemAndSub = <li class="sub">|</li>
  72. IFSUB.stdWrap.htmlSpecialChars = 1
  73.  
  74. ACTIFSUB.wrapItemAndSub = <li class="active">|</li>
  75. ACTIFSUB.stdWrap.htmlSpecialChars = 1
  76.  
  77. CURIFSUB.wrapItemAndSub = <li class="active sub">|</li>
  78. CURIFSUB.stdWrap.htmlSpecialChars = 1
  79. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.