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

Oliver Hader oliver at typo3.org
Fri Sep 12 11:38:49 CEST 2008


Hi Georg,

Georg Ringer schrieb:
> To replace a space character it would look like
> stdWrap.parseFunc {
>  useAscii = 1
>  short {
>   32 = %20
>  }
> }

Wouldn't it be better to have this more global and not only as a special 
case in the short array - e.g. as a new stdWrap functionality to replace 
something?

Example:
10 = TEXT
10 {
   field = bodytext
   stdWrap.strReplace {
     search.char = 32
     replace = %20
   }
   parseFunc {
     ...
   }
}

20 = TEXT
20 {
   field = bodytext
   stdWrap.pregReplace {
     search = (cat|dog|tiger)
     replace = animal
     modifier = 1
   }
   parseFunc {
     ...
   }
}

What do you think?

olly
-- 
Oliver Hader
TYPO3 4.3 Release Manager


More information about the TYPO3-team-core mailing list