[TYPO3-german] Frage zu linksWraps und wrapItemAndSub

Ulrich Fischer ulrich-fischer at gmx.net
Wed Mar 5 05:59:50 CET 2008


Hallo Jochen,

auf die Schnelle finde ich kein gutes Beispiel im Netz.
Hier daher ein Menü, das unter Verwendung der Tipps
aus dem TYPO3 KOCHBUCH entstanden ist. joH hat dort sehr
klar und verständlich die Geheimnisse der typo3 Menüs
erklärt:

temp.nav = HMENU
temp.nav {
   # the menu object itself, starting off: home - root
   entryLevel = 0
   # do not show page 100 and 200 in the menu
   excludeUidList = 100,200

   # Level1 entries are simple text menu entries,
   # (formatted via CSS to run down the left side of the page)
   1 = TMENU
   1 {
     noBlur = 1
     wrap = <ul class="u1">|</ul>

     # Base formatting of menu entries as list items.
     NO {
       allWrap = <li>|</li>
     }
     # Is used, if at least one sub site exists
     # wrapItemAndSub: <li></li> includes the sub list
     IFSUB = 1
     IFSUB {
       wrapItemAndSub = <li>|</li>
     }

     # Active items are current or current in the rootline of the item
     # <- parent items, CUR will overwrite
     ACT = 1		
     ACT {
       wrapItemAndSub = <li>|</li>
       ATagParams =  class="parent"
     }     		

     # Current menu item is unlinked and marked
     # for easyer css formating <span> is used instead of <a>
     CUR = 1		
     CUR {
       # linkWrap wraps only the text
       linkWrap = <span class="current">|</span>	
       #  wrapItemAndSub wraps text and sub <ul></ul>
       wrapItemAndSub = <li>|</li> 	
       doNotLinkIt = 1	
     }
   } # 1			

  2 > .1
  2.wrap = <ul class="u2">|</ul>	

  3 < .2
  3.wrap = <ul class="u3">|</ul>				

  } # end temp.nav


Es gibt noch ein CURIFSUB, wenn eine Seite aktiv ist,
die mindestens eine Unterseite hat. CURIFSUB und CUR
können also nur einmal im Menü auftauchen.

Verwendet bei:
http://www.planet-diversity.org/

Schöne Grüße

Ulrich

-- 
http://www.sunfish.de


More information about the TYPO3-german mailing list