[TYPO3-50-general] [TYPO3-team-core-v5] Templating Engine

Christopher Hlubek bruno.bolzano at gmail.com
Fri Oct 24 13:06:06 CEST 2008


2008/10/23 Martin Ficzel <martin.ficzel at gmx.de>:
> Ernesto Baschny [cron IT] schrieb:
>> Maybe some shorter version of Sebastian G's suggestion, with the benefit
>> that we can also "preview" it in a regular browser (a browser will not
>> understand the <f3:link:to> as a link):
>>
>> <a href="#">
>>       <f3:link controller="posts" action="editPost">
>>               <f3:parameter name="postId">{post.id}</f3:parameter>
>>       </f3:link>
>>       Edit post
>> </a>
>
> I do'nt like the solution to pass parameters as child-tags. The dtd can easily define that
> the f3:link tag needs the parameter "postID" but it's hard to define that f3:link needs a
> child with a "name" attribute wich has the value "postID". So parameters for viewHelpers
> should be passed as attributes as in the first example.

Me neither! I think array parameters should be passed as - well -
arrays. I talked with Sebastian about that two days ago and I proposed
some syntax like:

<f3:link controller="posts" action="editPost"
requestParameters="{postId: post.id, blogId: blog.id}">Edit
post</f3:link>

So basically it should be possible to define an array / associative
array in braces. I think this is intuitive and very powerful for
dynamic parameter passing to view helpers.

Greetings,
Christopher


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