[TYPO3-mvc] RFC: #7533: form.select: building option keys with viewhelper not possible
Oliver Klee
typo3-german-01 at oliverklee.de
Mon Nov 22 17:04:03 CET 2010
Hi,
This is an SVN patch request.
Type: bugfix/inconsistency (feature?)
Bugtracker reference:
http://forge.typo3.org/issues/7533
Branches:
trunk, 1.3 (?)
Problem:
The fluid parser doesn't support using viewhelpers as array keys, so
the following would not get parsed
<f:form.select name="filter" id="filterbox" options="{
{f:uri.action(action: 'index', arguments:{filter:
'health'})}:'{f:translate(key: \'dep.health\')}'
}">
<select>
<option value="">###dummy###</option>
</select>
</f:form.select>
Solution:
Introduce an new argument optionsValuesArray to map the options array
keys to other values.
Example:
<f:form.select name="filter" id="filterbox" options="{
health: '{f:translate(key: \'dep.health\')}'
}" optionsValuesArray ="{
health: '{f:uri.action(action: \'index\', arguments: {filter:
\'health\'})}'
}">
<select>
<option value="">###dummy###</option>
</select>
Note: This patch is by Marc Bastian Heinrichs. I'm just posting it to
the list.
--
Certified TYPO3 Integrator | TYPO3 Security Team Member
More information about the TYPO3-project-typo3v4mvc
mailing list