[TYPO3] Typo deleting html template content

Jody Cleveland Cleveland at winnefox.org
Wed Feb 1 20:26:02 CET 2006


Thank you so much, all of you, for taking the time to help me with this.
I really appreciate it!

- jody

> Just noticed that the last "trim" didn't work as expected (It 
> trims the 
> string BEFORE splitting, and not after.)
> 
> This updated code should fix that problem..
> 
> -- cut --
> NO.stdWrap.cObject = TEXT
> NO.stdWrap.cObject.cObject = TEXT
> NO.stdWrap.cObject.cObject.value = This is on the left of the 
> split | This 
> is on the right of the split
> NO.stdWrap.cObject.cObject.split {
>     # Split the string at the "|" char
>     token = |
>     cObjNum = 1
>     1.current = 1
>     # Trim away any leading/trailing spaces
>     1.trim = 1
>     # Wrap each part with a space at the end.
>     1.noTrimWrap = || |
>   }
>   # Trim away the final trailing spaces
> NO.stdWrap.cObject.trim = 1
> -- cut --
> 
> -- 
> Peter Klein/Umloud Untd



More information about the TYPO3-english mailing list