[TYPO3-mvc] Viewhelper arguments in shorthands

Sebastian Fischer typo3 at fischer.im
Mon Oct 26 12:41:14 CET 2009


Hi everyone,

i like to point on something, that i think is inconsistent.

Playing around with shorthands i recognized that values as viewhelper 
arguments are wrapped in {} curly braces.
In shorthands they are used without curly braces.

<s:myviewhelper attribname="{somevalue}"/>

{s:myviewhelper(attribname: somevalue)}


This is somehow strange. To make it worth the following doesnt work.

{s:myviewhelper(attribname: "fixedvalue somevalue")}

Neither does:

{s:myviewhelper(attribname: "fixedvalue {somevalue}")}

So suppose the first example handing over an integervalue will work. But 
handing over strings like the combination doesnt work.
I'm i wrong or do i miss the solution?


In both cases additional braces would help i think/hope.

Greetings
Sebastian Fischer


More information about the TYPO3-project-typo3v4mvc mailing list