[TYPO3-german] Link Aktiv setzten

Ulrich Fischer ulrich-fischer at gmx.net
Fri Mar 7 08:29:52 CET 2008


Hallo Jochen,

ist das submenu aktiv, ist die Ebene oberhalb parent.

Siehe mein Beispiel

[TYPO3-german] Frage zu linksWraps  und wrapItemAndSub
vom:05.03.2008 06:00

     # 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"
     }

Ich hatte gehofft, das klar und verständlich rüber gebracht zu haben.
Das Beispiel beinhaltet eigentlich alles was man braucht,
um ein hierarchisches Menü XHTML-konform zu bauen.


Schöne Grüße

Ulrich

-- 
http://www.sunfish.de

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


More information about the TYPO3-german mailing list