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

Georg Ringer mail-spam at ringerge.org
Fri Sep 12 11:17:12 CEST 2008


This is a SVN patch request.

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

Georg
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: parsefuncchr.patch
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20080912/bc81b0cf/attachment.txt 


More information about the TYPO3-team-core mailing list