[TYPO3-mvc] Form.select with uri as value

Jochen Rau jochen.rau at typoplanet.de
Thu Apr 29 09:11:39 CEST 2010


Hi Marc.

On 27.04.10 10:40, Marc Bastian Heinrichs wrote:
> Hej,
>
> what I'm trying to do is to create a select box, in which the option's
> value is a URI i can jump to via JS.
> I tried the following:
> <f:form.select name="filter" id="filterbox" options="{
> all:'{f:translate(key: \'dep.all\')}',
> {f:uri.action(action: 'index', arguments:{filter:
> 'health'})}:'{f:translate(key: \'dep.health\')}'
> }">
> <select>
> <option value="">###dummy###</option>
> </select>
> </f:form.select>
>
> The first option line is working. The second doesn't.
> I suppose the value-part of the options of the select helper doesn't
> allow to call uri.action or other view helpers. Correct?

Yes.

> So, do I have to write my own viewhelper for this?

I think so.

Regards
Jochen


More information about the TYPO3-project-typo3v4mvc mailing list