[TYPO3-english] Removing HTML tags from Cooluri paths
Žiga Dolhar
ziga at dolhar.si
Mon Dec 27 12:52:05 CET 2010
Hello list,
I'm using ttnews and cooluri. I have the following in CoolUriConf.xml
under <uriparts> key:
<part>
<parameter>tx_ttnews[tt_news]</parameter>
<lookindb>
<to>SELECT title FROM tt_news WHERE uid=$1</to>
<t3conv>1</t3conv>
</lookindb>
</part>
This works well. However, when I happen to have a HTML tag in "title",
for instance "<i>Test</i>" (just an example - I don't do header
formatting in title :)), the cooluri generated path will look like
"itesti" - which works flawlessly, but is not pretty :P.
Therefore, I would like to strip html tags alltogether. I tried adding
<userfunc>strip_tags</userfunc>, but to no avail. The closest I got
playing with it resulted in "i-test-i" (with t3conv disabled, if I am
not mistaken). If I tried putting that userfunc one node higher (under
"part" instead of "lookindb" node), the generation failed and resulted
in manj spaces.
How should I do it?
Thanks, Ziga
More information about the TYPO3-english
mailing list