Posts Tagged ‘Brotkrümmel’
TYPO3: Brotkrümmelmenü // Breadcrumb
4 Comments | This entry was posted on Okt 14 2009
Jeder sucht ab und zu einen nette Lösung für ein Brotkrümmelmenü in Typo3. Meine Lösung für dieses Problem findet ihr wieder in der Codebox. Das nette an diesem Brotkrümmelmenü ist das man für die Homeseite ein Icon hat und dazu ist die aktuelle Seite nicht Aktiv als Link sondern nur ein reiner Text.
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 | lib.breadcrumb = HMENU lib.breadcrumb { special = rootline special.range = 1|-1 excludeUidList = 1 = TMENU # no unneccessary scripting. 1.noBlur = 1 # Current item should be unlinked 1.CUR = 1 1.target = _self 1.wrap = <div class="breadcrumb-class"><a href="/"><img title="Home" src="fileadmin/templates/img/home.gif" alt="Home" /></a> > |</div> 1.NO { stdWrap.field = title ATagTitle.field = nav_title // title linkWrap = ||*| > |*| } # Current menu item is unlinked 1.CUR { stdWrap.field = title linkWrap = ||*| > |*| doNotLinkIt = 1 } } } |
Update:
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 | # ** # * Breadcrumb-Funktion (Pfadanzeige, rootline) # ******************** lib.breadcrumb = COA lib.breadcrumb { 10 = TEXT 10.value = <a href="/" title="Home">Home</a><span class="breaker">»</span> 20 = HMENU 20 { special = rootline special.range = 1|-1 1 = TMENU 1.noBlur = 1 1.CUR = 1 1.target = _self 1.NO { stdWrap.field = nav_title // title ATagTitle.field = nav_title // title linkWrap = | |*| <span class="breaker">»</span> |*| } 1.CUR { stdWrap.field = nav_title // title linkWrap = | |*| <span class="breaker">»</span> |*| doNotLinkIt = 1 } } } |
