[TYPO3] Probem with TMENU and wrap
Peter Gallagher
pgallagher at electricretina.com
Thu Sep 21 22:08:25 CEST 2006
I have spent some hours on the list trying to find out how to get the
TMENU level to wrap the menu items in a div tag that uses {field:uid}.
This is the result that I am looking for:
<div class="rootItem" ><a href="#"
onmouseover="showMenu('menu65',this);" onmouseout="btnTimer();">ABOUT US</a>
<div id="menu65" class="level2" >
<div class="second"><a href="#" onmouseover="menuOver();"
onmouseout="menuOut();">Vision</a></div>
<div class="second"><a href="#" onmouseover="menuOver();"
onmouseout="menuOut();">History</a></div>
<div class="second"><a href="#" onmouseover="menuOver();"
onmouseout="menuOut();">Leadership</a></div>
</div>
</div>
This is my typoscript:
...
lib.topmenu.2 = TMENU
lib.topmenu.2.subwrap = TEXT
lib.topmenu.2.subwrap.value = <div id="menu{field:uid}"
class="level2">|</div>
lib.topmenu.2.subwrap.insertData = 1
lib.topmenu.2.wrap < lib.topmenu.2.subwrap.value
lib.topmenu.2.NO{
linkWrap = <div class="second">|</div>
....
}
This particular typoscript will not parse the {..} it is just left as
text. I have tried to use: lib.topmenu.2.wrap.dataWrap and it outputs
nothing.
I am using v4.0.2 of typo3
Any suggestions or help will be appreciated.
Peter Gallagher
More information about the TYPO3-english
mailing list