[TYPO3-english] override (rewrite) href attribute for specific tmenu item link
Darko Jr. Gonzalez
jkokino at gmail.com
Wed May 6 23:08:28 CEST 2009
Hey!
I have the following menu, and I hope someone give me a hint where to look
for the right TS code. The menu item for uid=7 is going to be:
<a href="index.php?id=7" id="Name2" onClick="javascript:hideul()">LINK
7</a>
1. How do I make just this menu item with "#" rather than the actual link:
<a href="#" id="Name2" onClick="javascript:hideul()">INSTITUTEN</a>
The TS code:
Menutest = HMENU
Menutest.special = directory
Menutest.special.value = 8
Menutest.entryLevel = 1
Menutest.excludeUidList = 116
##Menutest.wrap = <ul class="menu1">|</ul>
Menutest.1 = TMENU
Menutest.1.expAll = 1
Menutest.1.noBlur = 1
Menutest.1.NO {
wrapItemAndSub = <li>|</li>
ATagParams =
ATagParams {
append = TEXT
append.value = id="Name2" onClick="javascript:hideul()"
append.if{
value.field = uid
equals = 7
}
}
}
Menutest.2 = TMENU
Menutest.2.expAll = 1
Menutest.2.noBlur = 1
Menutest.2.wrap = <ul id="hideul">|</ul>
Menutest.2.NO {
wrapItemAndSub = <li>|</li>
}
Thanks for looking!
//Darko
More information about the TYPO3-english
mailing list