[TYPO3-mvc] Fluid inline Array notation?
Franz Koch
typo3.RemoveForMessage at elements-net.de
Fri Dec 10 19:05:49 CET 2010
Hey,
> Is there a way to create an array within fluid? I'd like to set some options for the partial sort of like jquery does it with the plugin options:
>
> <f:render partial="projectList" arguments="{
> project: project,
> options: {
> buttons: {
> delete: 0,
> add: 1
> }
> }
> }" />
>
> This would come in handy in Partials that are used under different circumstances. One could simply check with
> <f:if condition="{options.buttons.add}" /> if a certain piece should be displayed or not.
it should work for up to three levels if you qoute the nested arrays:
<f:render partial="projectList" arguments="{
project: project,
options: '{
buttons: \'{
delete: 0,
add: 1
}\'
}'
}" />
--
kind regards,
Franz Koch
More information about the TYPO3-project-typo3v4mvc
mailing list