Feature #14630
closedstdWrap that dynamically processes the content
0%
Description
This is just a copy & paste from an interesting suggestion by Kasper on typo3-dev.
- michael
--- cut ---
Maybe it would be better to design a stdWrap property which will
dynamically process content. SOmething like:
stdWrap.proc = crop(listNum($$$VALUE$$$,0,"X"))
The "functions" will of course be a pre-defined list of functions we
implement. With a clever syntax it might even be fast (depends on how
quick the string can be parsed on the fly.
- kasper
--- cut ---
(issue imported from #M926)
Updated by Wolfgang Klinger almost 19 years ago
can you explain this a little bit further (I'm missing the context)?
Updated by Ingmar Schlecht almost 19 years ago
I would actually be very happy if stdWrap() would have a property .eval that is passed straight to the eval() function of PHP.
Of course one has to be very careful when using that, but if you know what you're doing, that would sometimes be incredibly handy...
cheers,
Ingmar
Updated by Michael Stucki almost 19 years ago
@Wolfgang Podbregar: See the original mail here: http://typo3.org/documentation/mailing-lists/dev-list-archive/thread/110116472/
Updated by Jo Hasenau over 13 years ago
- Target version deleted (
0)
IMHO something similiar has been introduced with 4.5.0
We now got something like "chained" stdWrap so that you can combine the results of different functions to get a result for a single TS-object:
10 = TEXT
10.field = someField
10.field.override = anotherField
10.field.override.if.isTrue.field.data = GP:dynamicTriggerField
So do we still need this one?
Updated by Benni Mack almost 10 years ago
- Description updated (diff)
- Status changed from New to Rejected
IMHO this is not needed anymore, as TypoScript with stdWrap everywhere and trim=1, replacement with regexp solves most of the cases needed.