[TYPO3-mvc] Fluid inline Array notation?
Tim Schoch | GSTALTIG
tim.schoch at gstaltig.ch
Fri Dec 10 18:32:10 CET 2010
G'evening
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.
I know, it would be possible to add every single value as an own argument
{ optionsButtonDelete: 0, optionsButtonAdd: 1, optionsXY: Z }
But that isn't very practical, if you have sub-sub partials you want to set the options for as you had to pass every single possible option to the child partial. And if you add a new options later on, have fun checking every single render statement...
Is this in the core already and I missed it?
More information about the TYPO3-project-typo3v4mvc
mailing list