TMENU 1

  1. temp.navTop = COA
  2. temp.navTop.10 = HMENU
  3. temp.navTop.10 {
  4.  
  5. special = list
  6. special.value = 2,3,4,5,6
  7.  
  8. entryLevel = 0
  9. #includeNotInMenu = 1
  10.  
  11. wrap = <nav class="navbar navbar-default navbar-main">|</nav>
  12.  
  13. # 1. Ebene
  14. 1 = TMENU
  15. 1 {
  16. #wrap = <ul><li class="first"><a href="/" title="Home">Home</a></li>|</ul>
  17. wrap = <ul class="nav navbar-nav level1">|</ul>
  18.  
  19. # Always unfold all sub-levels of the menu
  20. expAll = 1
  21.  
  22. # Remove the (old) default behaviour which adds onfocus="blurLink(this);" to all links
  23. noBlur = 1
  24.  
  25. # Define the normal state (not active, not selected) of menu items
  26. # Using NO=1 to activate normal state is not necessary, but useful when copying
  27. NO = 1
  28. NO {
  29. # Use the page title field the title property on the A-tag, but only if the navigation title is set
  30. ATagTitle {
  31. field = title
  32. fieldRequired = nav_title
  33. }
  34. #ATagParams = data-toggle="dropdown" class="dropdown-toggle"
  35.  
  36.  
  37. # Use the option-split feature to generate a different wrap for the last item on a level of the menu
  38. # The last item on each level gets class="last" added for CSS styling purposes.
  39. #
  40. # See the TSref documentation for details about option split and other features:
  41. # http://typo3.org/documentation/document-library/references/doc_core_tsref/current/
  42. #wrapItemAndSub = <li class="first">|</li> |*| <li>&#124;&nbsp;|</li> |*| <li class="last">&#124;&nbsp;|</li>
  43. wrapItemAndSub = <li>|</li>
  44.  
  45.  
  46. # HTML-encode special characters according to the PHP-function htmlSpecialChars
  47. stdWrap.htmlSpecialChars = 1
  48. }
  49.  
  50. IFSUB < .NO
  51. IFSUB {
  52. wrapItemAndSub = <li class="dropdown">|</li>
  53. #stdWrap.innerWrap = |<b class="caret"></b>
  54. ATagParams = data-toggle="dropdown" class="dropdown-toggle"
  55. #ATagBeforeWrap = 1
  56. }
  57.  
  58. ACT < .IFSUB
  59. ACT {
  60. ATagParams = class="active"
  61. #stdWrap.innerWrap = |<b class="caret"></b>
  62. wrapItemAndSub = <li class="selected">|</li>
  63. }
  64.  
  65. #ACTIFSUB < .IFSUB
  66. #ACTIFSUB {}
  67.  
  68. CUR < .NO
  69. CUR {
  70. #wrapItemAndSub = <li class="dropdown">|</li>
  71. #stdWrap.innerWrap = |<b class="caret"></b>
  72. wrapItemAndSub = <li class="active">|</li>
  73. }
  74.  
  75. CURIFSUB < .IFSUB
  76. #CURIFSUB {}
  77. }
  78.  
  79. # 2. Ebene
  80. 2 = TMENU
  81. 2 {
  82. expAll = 1
  83. noBlur = 1
  84. wrap = <ul class="dropdown-menu dropdown-mega mega-inner level2">|</ul>
  85.  
  86. NO = 1
  87. NO.ATagParams = data-toggle="flyout" class="flyout-toggle"
  88. NO.wrapItemAndSub = <li class="flyout">|</li> |*| <li class="flyout">|</li>
  89. NO.stdWrap.htmlSpecialChars = 1
  90.  
  91. NO.before.stdWrap.cObject = CONTENT
  92. NO.before.stdWrap.cObject {
  93. table = tt_content
  94. select {
  95. pidInList.field = uid
  96. where = colPos=150
  97. max = 1
  98. languageField = sys_language_uid
  99. }
  100. #stdWrap.data = debug:data
  101. stdWrap.wrap = <div class="dropdown-header">|</div>
  102. stdWrap.required = 1
  103. }
  104.  
  105.  
  106. NO.after.stdWrap.cObject = CONTENT
  107. NO.after.stdWrap.cObject {
  108. table = tt_content
  109. select {
  110. pidInList.field = uid
  111. where = colPos=151
  112. max = 1
  113. languageField = sys_language_uid
  114. }
  115. #stdWrap.data = debug:data
  116. stdWrap.wrap = <div class="flyout-menu">|</div>
  117. stdWrap.required = 1
  118. }
  119. }
  120. }
  121.  
  122. # Wrap um rechtes Menu BEGIN
  123. temp.navTop.15 = TEXT
  124. temp.navTop.15.value = <div class="navbar-right">
  125. temp.navTop.15 >
  126.  
  127. # Bestellschein
  128. temp.navTop.20 = COA
  129. temp.navTop.20.2 = USER_INT
  130. temp.navTop.20.2 {
  131. userFunc = user_warenkorb->WidgetNavi
  132. //kwMode = WidgetNavi
  133.  
  134. wkDebug = 0
  135. }
  136. temp.navTop.20.wrap = <ul class="nav navbar-nav nav-cart">|</ul>
  137. temp.navTop.20 >
  138. # Warenkorb Widget ausblenden bei Tschechisch/Spanisch
  139. [globalVar = GP:L = 2] || [globalVar = GP:L = 3]
  140. temp.navTop.20 >
  141. [global]
  142.  
  143.  
  144. # Langmenu
  145. temp.navTop.30 = COA
  146. temp.navTop.30.1 = TEXT
  147. temp.navTop.30.1.value = <ul class="nav navbar-nav nav-lang"><li><a href="#" data-toggle="dropdown" class="dropdown-toggle"><img class="langFlag" src="fileadmin/templates/resources/public/images/de-DE.png" alt="" title="Sprache wählen"><span class="langSwitch sr-only"> Sprache wählen </span><b class="caret"></b></a>
  148. # English
  149. [globalVar = GP:L = 1]
  150. temp.navTop.30.1.value = <ul class="nav navbar-nav nav-lang"><li><a href="#" data-toggle="dropdown" class="dropdown-toggle"><img class="langFlag" src="fileadmin/templates/resources/public/images/en-UK.png" alt="" title="choose a language"><span class="langSwitch sr-only"> choose a language </span><b class="caret"></b></a>
  151. [global]
  152. # Tschechisch
  153. [globalVar = GP:L = 2]
  154. temp.navTop.30.1.value = <ul class="nav navbar-nav nav-lang"><li><a href="#" data-toggle="dropdown" class="dropdown-toggle"><img class="langFlag" src="fileadmin/templates/resources/public/images/cz-CZ.png" alt="" title="Vyberte si jazyk"><span class="langSwitch sr-only"> Vyberte si jazyk </span><b class="caret"></b></a>
  155. [global]
  156. # Spanisch
  157. [globalVar = GP:L = 3]
  158. temp.navTop.30.1.value = <ul class="nav navbar-nav nav-lang"><li><a href="#" data-toggle="dropdown" class="dropdown-toggle"><img class="langFlag" src="fileadmin/templates/resources/public/images/es-ES.png" alt="" title="Elija un idioma"><span class="langSwitch sr-only"> Elija un idioma </span><b class="caret"></b></a>
  159. [global]
  160.  
  161. temp.navTop.30.2 = HMENU
  162. temp.navTop.30.2 {
  163. special = language
  164. #special.value = 0,1
  165. special.value = 0,1,2,3
  166. #special.normalWhenNoLanguage = 0
  167. 1 = TMENU
  168. 1 {
  169. wrap = <ul class="dropdown-menu">|</ul>
  170.  
  171. # Remove the (old) default behaviour which adds onfocus="blurLink(this);" to all links
  172. noBlur = 1
  173.  
  174. NO = 1
  175. NO {
  176. # Override the standard menu item value (which is the page title) with our own cObject
  177. stdWrap.cObject = TEXT
  178. # Use the TypoScript option split function to display different values for the first and second item
  179. stdWrap.cObject.value = <img class="langFlag" src="fileadmin/templates/resources/public/images/de-DE.png" alt="" title="deutsch"><small>&nbsp;deutsch</small> || <img class="langFlag" src="fileadmin/templates/resources/public/images/en-UK.png" alt="" title="english"><small>&nbsp;english</small> || <img class="langFlag" src="fileadmin/templates/resources/public/images/cz-CZ.png" alt="" title="čeština"><small>&nbsp;čeština</small> || <img class="langFlag" src="fileadmin/templates/resources/public/images/es-ES.png" alt="" title="español"><small>&nbsp;español</small>
  180.  
  181. allWrap = <li>|</li>
  182. #ATagParams = data-toggle="dropdown" class="dropdown-toggle"
  183. }
  184.  
  185. ACT < .NO
  186. ACT {
  187. #ATagParams = data-toggle="dropdown" class="dropdown-toggle active"
  188. }
  189. # Language that is NOT available:
  190. USERDEF1 < .NO
  191. USERDEF1.allWrap = <li style="display:none">|</li>
  192. USERDEF1.stdWrap.cObject >
  193. USERDEF1.doNotLinkIt = 1
  194. }
  195. }
  196.  
  197. temp.navTop.30.3 = TEXT
  198. temp.navTop.30.3.value = </li></ul>
  199.  
  200.  
  201. # Wrap um rechtes Menu END
  202. temp.navTop.30.4 = TEXT
  203. temp.navTop.30.4.value = </div>