[TYPO3-core] RFC: #9336 Enable ascii for parsefunc-short replacement

Martin Holtz typo3ng_2008 at martinholtz.de
Fri Sep 12 18:07:56 CEST 2008


Hi,

> Problem:
> The parsefunc is very nice, e.g. to replace a string with another. A
> problem is that it is not possible to replace e.g. a space character
> because TS would be like this
> stdWrap.parseFunc {
>  short {
>    = abc
>  }
> }
> 
> 
> Solution:
> Introtuce a new TS key to be able to set the character which needs to be
> replaced by the ascii number.
> 
> To replace a space character it would look like
> stdWrap.parseFunc {
>  useAscii = 1
>  short {
>   32 = %20
>  }
> }
> 
> Comments:
> - I needed this function to replace spaces to images which open in a
> lightbox.
> - The name is maybe not the best, but can be replaced ;)
> 
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=9336
> 
> Branches: Trunk RFC
i would think stdWrap.rawUrlEncode should help?

gruss,
martin


More information about the TYPO3-team-core mailing list