Benutzer-Werkzeuge

Webseiten-Werkzeuge


typo3:navigation

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.

Link zu der Vergleichsansicht

Beide Seiten, vorherige ÜberarbeitungVorherige Überarbeitung
Nächste Überarbeitung
Vorherige Überarbeitung
typo3:navigation [2014/07/04 21:19] – [Brotkrumen-Navigation] admintypo3:navigation [2017/05/08 22:30] (aktuell) – Entfernung veralteter Konfiguration admin
Zeile 1: Zeile 1:
 +====== Navigation ======
 +
 ===== Brotkrumen-Navigation ===== ===== Brotkrumen-Navigation =====
 <code typoscript> <code typoscript>
Zeile 32: Zeile 34:
     special = language     special = language
     special.value = 0,1     special.value = 0,1
 +    
 +    addQueryString = 1
 +    addQueryString.exclude = id
 +    addQueryString.method = GET
          
     1 = TMENU     1 = TMENU
Zeile 40: Zeile 46:
         stdWrap.cObject = TEXT         stdWrap.cObject = TEXT
         stdWrap.cObject {         stdWrap.cObject {
-          value = Deutsch || Englisch +          value = Deutsch || English
-          lang.en = German || English+
         }         }
       }       }
Zeile 47: Zeile 52:
       ACT {       ACT {
         doNotLinkIt = 1         doNotLinkIt = 1
-        wrapItemAndSub = <li style="font-weight: bold;">|</li> +        wrapItemAndSub = <li class="active">|</li>
-        stdWrap.cObject { +
-          value = Deutsch || Englisch +
-          lang.en = German || English +
-        }+
       }       }
     }     }
Zeile 60: Zeile 61:
  
 ---- ----
-===== Verschachtelte Listen-Navigation ===== 
  
-Aufgebaut mit unsortierten Listen (''<ul>''); die Anker (''<a>'') bilden mit ''display:block'' die Buttons. Die Menüpunkte werden durch Linien getrennt, welche auch bei Verschachtelung mehrerer Ebenen nur einmal vorhanden sind.+===== Klasse "active" bei Shortcuts =====
  
-{{ typo3:example-nav-list-lines.png }}+Mit dem folgenden Snippet erhält ein Shortcut die Klasse "active", wenn die damit verknüpfte Seite geladen ist. Praktisch z.B., wenn die //Root Page// die tatsächliche Startseite ist und ein Menüpunkt "Home" als Shortcut darauf verweist.
  
-<code typoscript+<code> 
-10 HMENU +NO 1 
-10 +NO 
-  TMENU +  ATagParams.override.cObject COA 
-  +  ATagParams.override.cObject 
-    wrap = <ul class="sub1">|</ul> +    if { 
-    noBlur 1 +      value 4 
- +      equals.field = doktype 
-    NO = 1 +      isTrue = 1 
-    NO { +      isTrue.if 
-    ATagTitle.field = title +        value.data TSFE:page|uid 
-     wrapItemAndSub = <li class="nav-first">|</li> || <li class="nav-norm">|</li> +        equals.field = shortcut 
-    } +      }
-    CUR = 1 +
-    CUR +
-      ATagTitle.field title +
-      wrapItemAndSub = <li class="nav-first-cur">|</li> || <li class="nav-cur">|</li> +
-    } +
-    ACT = 1 +
-    ACT { +
-      ATagTitle.field = title +
-      wrapItemAndSub = <li class="nav-first-act">|</li> || <li class="nav-act">|</li>+
     }     }
-  } +    10 = TEXT 
-  2 < .1 +    10.value = class="active"
-  2 { +
-    wrap = <li><ul class="sub2">|</ul></li> +
-  } +
-  3 < .+
-  3 { +
-    wrap <li><ul class="sub3">|</ul></li>+
   }   }
 } }
 </code> </code>
-<code css> 
-#submenu { 
-  border-right: 1px solid #0055AA; 
-  float: left; 
-  font-size: 14px; 
-  line-height: 120%; 
-  min-height: 1px; 
-  width: 180px; 
-} 
-#submenu ul { 
-  list-style-type: none; 
-  margin: 0; 
-  padding: 0; 
-  width: 180px; 
-} 
-#submenu a { 
-  display: block; 
-  padding: 8px 0 8px 5px; 
-  text-decoration: none; 
-} 
  
-/* Aufbau auf erster Ebene */ +----
-.nav-norm, .nav-cur, .nav-act { +
-  border-top: 1px solid #0055AA; +
-  margin: 0; +
-  padding: 0; +
-}+
  
-/* Aufbau auf zweiter Ebene */ 
-.sub2 .nav-first, .sub2 .nav-first-cur, .sub2 .nav-first-act { 
-  border-top: 1px solid #0055AA; 
-  margin: 0; 
-  padding-left: 10px; 
-  width: 170px; 
-} 
-.sub2 li { 
-  margin-left: 10px; 
-  width: 170px; 
-} 
  
-/* Aufbau auf dritter Ebene (neue Breite je neuer Ebene) */ 
-.sub3 li, .sub3 .nav-first, .sub3 .nav-first-cur, .sub3 .nav-first-act { 
-  width: 160px; 
-} 
- 
-/* Anker nur erste Ebene */ 
-.nav-first a, .nav-norm a { 
-  color: black; 
-  font-weight: bold; 
-} 
-.nav-first-cur a, .nav-cur a, .nav-first-act a, .nav-act a { 
-  background-color: #88BEFF; 
-  color: #0055AA; 
-  font-weight: bold; 
-} 
-.nav-first-cur a, .nav-cur a { 
-  background-color: #0055AA; 
-  color: white; 
-  font-weight: bold; 
-} 
-#submenu a:hover, #submenu a:active { 
-  background-color: #0055AA; 
-  color: white; 
-} 
- 
-/* Anker ab zweiter Ebene (vererbt sich auf alle weiteren Ebenen) */ 
-.sub2 a { 
-  font-weight: normal; 
-} 
-.sub2 .nav-first-cur a, .sub2 .nav-cur a, .sub2 .nav-first-act a, .sub2 .nav-act a { 
-  background-color: #88BEFF; 
-  color: #0055AA; 
-} 
-.sub2 .nav-first-cur a, .sub2 .nav-cur a { 
-  background-color: #0055AA; 
-  color: white; 
-  font-weight: bold;   
-} 
-</code> 
typo3/navigation.1404501543.txt.gz · Zuletzt geändert: 2015/12/03 19:29 (Externe Bearbeitung)