[TYPO3] Get "alias" name in TypoScript menu.
Jérôme Picard
j.picard at vivacances.fr
Tue Nov 14 11:43:28 CET 2006
Hello,
I created a TypoScript to display a menu. But I would like to get the "alias" name of each page to apply some specific behaviour like "add onclick method or set CSS class". So, I would like to know, if it is possible to get the information and if you have an example?
Here is my TypoScript to generate the menu.
Thanks,
Jerome.
page.8 {
subparts.navbar = HMENU
subparts.navbar.entryLevel = 0
subparts.navbar.wrap (
<ul> | </ul>
)
####NIV 1#
subparts.navbar.1 = TMENU
subparts.navbar.1 {
noBlur = 1
expAll = 1
NO.linkWrap = <li> | </li>
IFSUB = 1
IFSUB.linkWrap = <li> |
CUR = 1
CUR.linkWrap = <li class="current"> | </li>
CURIFSUB = 1
CURIFSUB.linkWrap = <li class="current"> |
ACTIFSUB = 1
ACTIFSUB.linkWrap = <li class="current"> |
}
####NIV 2#
subparts.navbar.2 = TMENU
subparts.navbar.2 {
wrap (
<!--<![endif]--><table><tr><td><ul> | </ul></td></tr></table><!--[if lte IE 6]></a><![endif]--></li>
)
noBlur = 1
NO.ATagParams = |*| |*| class="bgnone"
NO.linkWrap = <li> | </li>
CUR = 1
CUR.ATagParams = style="font-weight:bold;" |*| style="font-weight:bold;" ||*| class="bgnone" style="font-weight:bold;"
CUR.linkWrap = <li> | </li>
}
##################################################################
marks.TOP_MENU = HMENU
marks.TOP_MENU {
special = directory
special.value = {$root_top_menu}
1 = TMENU
1.noBlur = 1
1.NO {
linkWrap = | | |*| | | ||*| |
}
}
}
More information about the TYPO3-english
mailing list