[Typo3] Replace single whitespace character with other character in TS

Christopher bedlamhotel at gmail.com
Tue May 24 02:12:32 CEST 2005


Hi,

On 5/23/05, digitalfan at earthlink.net <digitalfan at earthlink.net> wrote:
> How can I use parseFunc.short to replace a whitespace character with a dash? I am trying to do this to get the RealURL extension working with a select box I created... I've tried replacing &nbsp;, %20, without luck. Seems that there is no way to show whitespace in TS because it strips it all.
> 
> Example:
>         before.parseFunc.short {
>                (single whitespace character) = -
>         }
> 


Do you mean something like this?:

temp.textObject = TEXT
temp.textObject {
  value = Some text goes here
  noTrimWrap = |  [Begin Wrap]     |     [End Wrap]   |
}

...this should output:

{2 spaces}[Begin Wrap]{5 spaces}Some text goes here{5 spaces}[End
Wrap]{2 spaces}


-Christopher



More information about the TYPO3-english mailing list