[TYPO3] where is "wrapItemAndSub" coded in PHP
Jo Schneider
typo3listmember at typo3cms.info
Mon Jan 2 17:03:07 CET 2006
Peter Klein wrote:
>Hi Jo.
>
>You'll find it in the file "tslib/class.tslib_menu.php" in the function
>"extProc_afterLinking"
>But you don't usually need stdWrap on "wrapItemAndSub", as you can perform
>the same operations, by combining the "wrapItemAndSub" with "allWrap"
>Then you use "allWrap" to wrap the 1st part of the tag (It's usually here
>you need stdWrap to place IDs or CLASSes on the tag)
>And then you just use "wrapItemAndSub" to add the closing tag..
>
Thanks a lot - that was a good tip!
Here is the working solution:
temp.nav.1 {
wrap = <ul id="nav"> | </ul>
NO.subst_elementUid=1
NO.allWrap= {elementUid}">|
NO.wrapItemAndSub= <li class="nav_ |</li>
}
temp.nav.2 {
wrap = <ul> | </ul>
NO.allWrap=
NO.wrapItemAndSub= <li> | </li>
}
Great Mailinglist!
Jo
More information about the TYPO3-english
mailing list