[TYPO3-50-general] RFC: Improved Shorthand Syntax

Jochen Rau jochen.rau at typoplanet.de
Tue Oct 27 22:10:59 CET 2009


Hi Bastian.

Bastian Waidelich wrote:
> So I recap and suggest to adjust the following four view helpers:
>
> uri.resource:
> from
> {foo -> f:uri.resource()}
> to
> {f:uri.resource(path: foo)}
>
> cObject (v4 only):
> from
> {foo -> f:cObject(typoscriptObjectPath: 'lib.myCustomCObject')}
> to
> {f:cObject(data: foo, typoscriptObjectPath: 'lib.myCustomCObject')}
>
>
> format.date:
> from
> {foo -> f:format.date(format: 'Y')}
> to
> {f:format.date(date: foo, format: 'Y')}
>
>
> format.translate:
> from
> {foo -> f:format.translate(key: 'bar')} // here, {foo} would be the
> fallback - not very intuitive
> to
> {f:format.translate(default: foo, key: 'bar')}
>
> comments?

I really like the latter solution best. It's intuitive and clean.

Regards
Jochen

-- 
Every nit picked is a bug fixed



More information about the TYPO3-project-5_0-general mailing list