[TYPO3] Splitting and wrapping "keywords" with TS

Bert Hiddink hiddink at bendoo.com
Thu Sep 11 11:03:52 CEST 2008


Hello,

I would like to add some format to the field 'keywords'.

Let's say that 'keywords' contains: aaa, bbb, ccc

Now I would like to get
<a href="http://www.t3site.org/searchpage/aaa/">aaa</a>, <a 
href="http://www.t3site.org/searchpage/bbb/">bbb</a>, <a 
href="http://www.t3site.org/searchpage/ccc/">ccc</a>


This is what I got:
...
       linksItem_stdWrap.field =  keywords
       linksItem_stdWrap.trim =  1
       linksItem_stdWrap.split.token = ,
       linksItem_stdWrap.split.wrap = <a 
href="http://www.t3site.org/searchpage/|/">searchword</a>
       linksItem_stdWrap.wrap = <br />Search by keyword:&nbsp;|
...

The 'keywords' get split and I can wrap them but in fact I need a double 
wrap, something like:

linksItem_stdWrap.split.wrap = <a href="http://www.t3site.org/searchpage 
/| /"> | </a>

...since "searchword" needs to be replaced by the keyword as well. Hope 
you get what I mean. Any ideas?


A second issue is that:
...
       linksItem_stdWrap.trim =  1

...does not trim whitespaces from the field 'keywords'.


Thanks in advance!

grt,
Bert

-- 


Vriendelijke groeten,
Bert Hiddink

---------------------
BENDOO e-work solutions
Harterinkdijk 8
7065 AR SINDEREN
The Netherlands
Tel. 0315 244525
http://www.bendoo.nl
hiddink at bendoo.nl
---------------------


More information about the TYPO3-english mailing list