[TYPO3-english] Cleaner Typoscript dataWrap solution?
Loek Hilgersom
loek at netcoop.nl
Thu Sep 25 09:30:42 CEST 2014
Found a slightly cleaner way to do this:
10 = TEXT
10 {
field = title
stdWrap {
wrap = <h3>|</h3>
typolink < temp.contentList.single_typolink
htmlSpecialChars = 1
}
addParams.title = 1
addParams.title {
field = title
htmlSpecialChars = 1
}
}
The addParams.title = 1 is weird, but - looking at the source - you have to put
something there to make the addParams property values read the stdWrap.
addParams by default adds a property to the first tag it finds, h3 in this case.
Loek
On 24-09-14 16:16, Loek Hilgersom wrote:
> The solution below works, just as long as nobody enters ##12345&& in a title:
>
> 10 = TEXT
> 10 {
> field = title
> wrap {
> cObject = TEXT
> cObject {
> field = title
> htmlSpecialChars = 1
> wrap = <h3 title="|">##12345&&</h3>
> }
> splitChar = ##12345&&
> }
> typolink < temp.typolink
> htmlSpecialChars = 1
> }
>
> Anyone with a bright idea?
>
> Loek
More information about the TYPO3-english
mailing list