[Typo3] TMENU question

Joseph Mesterhazy jmesterh at iastate.edu
Fri Jul 29 18:44:01 CEST 2005


Hello,

I am somewhat confused about the wrap property of a TMENU.

I am trying to do something like this:

temp.menu.10 = HMENU
temp.menu.10.1 = TMENU
temp.menu.10.1 {
     ... blah blah
}

temp.menu.10.2 = TMENU
temp.menu.10.2 {
     wrap.dataWrap = <ul id="{field:pid}">|</ul>  // this isn't working
     NO = blah blah..
}

I am trying to mark the second level <ul> with the ID of its parent,  
for later use in javascript.

<ul>
    <li><a href="blah">category</a>      <-- temp.menu.10.1, the uid  
of this menu item is 4
      <ul id="4">                    <-- temp.menu.10.2, the pid of  
this menu item is 4, inserted here by dataWrap?
         <li><a href="item">item</a></li>
     </ul>
    </li>
</ul>

Reading back in the list, it appears that the wrap property of TMENU  
has the dataWrap property, but its not working for me..?

Thanks,

Joe

--
Joe Mesterhazy
ECpE UNIX Administrator
2101 Coover Hall, Iowa State University
Ames, IA 50011.  (515) 294-7359
http://www.mesterhazy.net




More information about the TYPO3-english mailing list