[TYPO3-english] Typoscript split and TMENU
Stefan Isak
stefanisak at googlemail.com
Mon Dec 6 14:39:54 CET 2010
Hey,
using split on TMENU entries got me into the following problem.
I have links like <a ...>One & Two</a>
Now I want to split the inner html to get some code like <a ...><span>One &</span><span>Two</span></a>
What I did is:
...
10.1 = TMENU
10.1 {
NO.stdWrap.split {
token = &
cObjNum = 1
1.current = 1
1.wrap = <span> | </span>
}
NO.allWrap = <li class="first"> | </li> |*| <li> | </li> |*| <li class="last"> | </li>
}
...
This works well and I get an output like <a ...><span>One</span><span>Two</span></a>
Nevertheless I need the split token after the first element.
So I tried things like
...
token = &
cObjNum = 1
1.current = 1
1.wrap = <span> | &</span> || <span> | </span>
...
or
...
cObjNum = 1
1.current = 1
1.wrap = <span> | &</span>
cObjNum = 2
2.current = 1
2.wrap = <span> | </span>
...
But it seems that I am working on the wrong parts or with the wrong wrappers.
Has anybody an advice?
Thanks.
Stefan
More information about the TYPO3-english
mailing list