TypoScript-Beispiele für diverse Menüs
Hier finden Sie Beispiele für verschiedene mit Typo3 realisierte Menüs.
Breadcrumb Menü
lib.breadcrumb = HMENU
lib.breadcrumb.special = rootline lib.breadcrumb.1 = TMENU
lib.breadcrumb.1.NO {
ATagParams = class="internal_link"
ATagTitle.field = abstract // description // subtitle
stdWrap.htmlSpecialChars = 1
linkWrap = | <span> > </span>
}
lib.breadcrumb.1.CUR = 1
lib.breadcrumb.1.CUR {
doNotLinkIt = 1
linkWrap = <span>|</span>
stdWrap.htmlSpecialChars = 1
}
vertikales Menü - Metanavigation
lib.meta = HMENU
lib.meta.special = list
lib.meta.special.value = 35, 38, 40, 36
lib.meta.1 = TMENU
lib.meta.1.noBlur = 1
lib.meta.1.NO {
ATagParams =
linkWrap = |<span> | </span> |*| |<span> | </span> |*| |
}
lib.meta.stdWrap.wrap = <div class="metanavigation">|</div>
horizontales Menü 1
lib.subnavigation = COA
lib.subnavigation.wrap=<div>|</div>
lib.subnavigation.5 = HTML
lib.subnavigation.5.value=<div></div>
lib.subnavigation.10 = TEXT
lib.subnavigation.10 {
data = leveltitle : 1
wrap = <h2>|</h2>
htmlSpecialChars = 1
}
lib.subnavigation.20 = HMENU
lib.subnavigation.20.entryLevel = 1
lib.subnavigation.20.1 = TMENU
lib.subnavigation.20.1.noBlur = 1
lib.subnavigation.20.1 {
noBlur = 1
expAll = 1
wrap = <ul id="subnavigation">|</ul>
NO = 1
NO {
ATagTitle.field = abstract // description // subtitle
allWrap = <li>|</li>
stdWrap.htmlSpecialChars = 1
}
ACT = 1
ACT < .NO
ACT {
ATagParams =
stdWrap.htmlSpecialChars = 1
}
IFSUB = 1
IFSUB < .NO
IFSUB {
allWrap = <li>|
stdWrap.htmlSpecialChars = 1
}
ACTIFSUB = 1
ACTIFSUB < .ACT
ACTIFSUB {
allWrap = <li>|
stdWrap.htmlSpecialChars = 1
}
}
lib.subnavigation.20.2 = TMENU
lib.subnavigation.20.2.noBlur = 1
lib.subnavigation.20.2 {
wrap = <ul>|</ul></li>
NO = 1
NO {
ATagTitle.field = abstract // description // subtitle
allWrap = <li>|</li>
stdWrap.htmlSpecialChars = 1
}
ACT = 1
ACT < .NO
ACT {
ATagParams =
}
}
lib.subnavigation.25 = HTML
lib.subnavigation.25.value=<div></div>
horizontales Menü 2
lib.mainnavigation = HMENU
lib.mainnavigation.special = list
lib.mainnavigation.special.value = 8,7,6,5,4,3,94
lib.mainnavigation.1 = TMENU
lib.mainnavigation.1.noBlur = 1
lib.mainnavigation.1.wrap = <ul>|</ul>
lib.mainnavigation.1 {
expAll = 1
NO = 1
NO {
linkWrap = <li>| || <li>| || <li>| || <li>| || <li>|
ATagTitle.field = abstract // description // subtitle
stdWrap.htmlSpecialChars = 1
stdWrap.wrap= <span>|</span>
}
ACT < .NO
ACT = 1
ACT {
linkWrap = <li id="current">| || <li id="current">| || <li id="current">| || <li id="current">| || <li id="current">|
}
}
lib.mainnavigation.2 = TMENU
lib.mainnavigation.2.noBlur = 1
lib.mainnavigation.2.wrap = <ul>|</ul></li>
lib.mainnavigation.2 {
expAll = 1
NO = 1
NO {
ATagTitle.field = abstract // description // subtitle
linkWrap = <li>|</li>
stdWrap.htmlSpecialChars = 1
}
}
Guten Tag
Ich bin Anfänger und mir fehlt jeweils das Wissen, was in der Datei design.html (Vorlage) stehen muss, damit es zusammen mit dem Code im Setup funktioniert. Haben Sie mir ein Beispiel für ein horizontales Textmenü (3-stufig), also Code fürs Typo-Setup und den entsprechenden Code für die HTML-Datei?
Besten Dank zum Voraus
Markus Schmid