doNotLinkIt wenn kein Content vorhanden
Armin Bartsch, Mittwoch, 11. März 2009
Nur Seiten mit Content (Inhalt) als Link darstellen, Seiten ohne Content unverlinkt anzeigen.
Eigentlich sollte man im Menü keine Punkte aufführen die noch keinen Inhalt haben. Allerdings kann es z.B. auch mal gewünscht sein den Besucher neugierig zu machen und zukünftige Menü-Punkte schon einblenden zu lassen.
temp.localNavigation = HMENU
temp.localNavigation {
special = directory
special.value = 309
excludeDoktypes = 6
1 = TMENU
1 {
expAll = 1
wrap = <ul>|</ul>
NO = 1
NO {
doNotLinkIt = 1
wrapItemAndSub = <li> | </li>
stdWrap.override.cObject =TEXT
stdWrap.override.cObject {
field = title
typolink.parameter.field = uid
if.isTrue.numRows {
table = tt_content
select.pidInList.field = uid
}
}
}
}
}
lib.menu_h < temp.localNavigationtemp.localNavigation = HMENU
temp.localNavigation {
special = directory
special.value = 309
excludeDoktypes = 6
1 = TMENU
1 {
expAll = 1
wrap = <ul>|</ul>
NO = 1
NO {
doNotLinkIt = 1
wrapItemAndSub = <li> | </li>
stdWrap.override.cObject =TEXT
stdWrap.override.cObject {
field = title
typolink.parameter.field = uid
if.isTrue.numRows {
table = tt_content
select.pidInList.field = uid
}
}
}
}
}
lib.menu_h < temp.localNavigation