Typoscript abgekoppelte Navigation der 2. Ebene

Bei so manchen Seite ist es sinnvoll, in der Navigation die zweite Ebene von der ersten Ebene völlig separat darzustellen. Dies nennt sich abgekoppelte Navigation. Beispielsweise wenn die zweite Ebene einer Navigation an einer völlig anderen Stelle ausgegeben werden soll. Umgangssprachlich habe ich dies als abgekoppelte Navigation immer verstanden. Mit folgendem Typo Script wird das möglich

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Hauptnavigation ausgeben
temp.navi = HMENU
temp.navi {
   special = directory
   special.value = 1
   1 = TMENU
   1 {
      noBlur = 1
      NO {
         1.NO = 1
         ATagTitle.field = description // title
      }
      CUR < .NO
      CUR = 1
      CUR.ATagParams = class=”aktiv”
      CUR.before.cObject=LOAD_REGISTER
      CUR.before.cObject.rootuid.cObject = TEXT
      CUR.before.cObject.rootuid.cObject.value = {field:uid}
      CUR.before.cObject.rootuid.cObject.insertData = 1
      ACT < .NO
      ACT = 1
      ACT.ATagParams = class=”aktiv”
      ACT.before.cObject=LOAD_REGISTER
      ACT.before.cObject.rootuid.cObject = TEXT
      ACT.before.cObject.rootuid.cObject.value = {field:uid}
      ACT.before.cObject.rootuid.cObject.insertData = 1
   }
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Navigation an der Seite
   temp.snavi = HMENU
   temp.snavi {
   special = directory
   special.value = {register:rootuid}
   special.value.insertData = 1
   entryLevel = 1
   1 = TMENU
   1 {
      noBlur = 1
      wrap =
      <ul>|</ul>
      NO = 1
      NO {
         wrapItemAndSub =
         <ul>
            <li>|</li>
         </ul>
         ATagTitle.field = description // title
      }
      CUR &lt; .NO
      CUR = 1
      CUR {
         ATagParams = class=”aktiv”
         wrapItemAndSub =
         <ul>
            <li>|</li>
         </ul>
      }
      ACT &lt; .NO
      ACT = 1
      ACT {
         ATagParams = class=”aktiv”
      }
      ACTIFSUB &lt; .NO
      ACTIFSUB = 1
      ACTIFSUB {
         ATagParams = class=”aktiv”
         wrapItemAndSub =
         <ul>
            <li>|</li>
         </ul>
      }
      CURIFSUB &lt; .CUR
      CURIFSUB = 1
      CURIFSUB{
         ATagParams = class=”aktiv”
         wrapItemAndSub =
         <ul>
               <li>|</li>
         </ul>
      }
   }
}

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert