[TYPO3] How can we replace a | with TS

JoH info at cybercraft.de
Mon Apr 3 20:10:50 CEST 2006


>>> Thanks, but that's not what we are looking for, we know that. We
>>> want to replace a pipe/letter/symbol with TS.
>>
>> Try this one:
>>
>> 10 = TEXT
>> 10 {
>>     field = bodytext
>>     parseFunc {
>>         short {
>>             | = my replacement
>>         }
>>     }
>> }
>>
>> Not tested!

Tested it now - doesn't work.

But this one could do:

page.10 = TEXT
page.10 {
   field = bodytext
   split {
      token = |
      cObjNum = |*|1|*|2
      1.current = 1
      1.noTrimWrap = || my replacement |
      2.current = 1
   }
}

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your knob sometimes!)
Dieter Nuhr, German comedian
openBC: http://www.cybercraft.de





More information about the TYPO3-english mailing list