[TYPO3-mvc] Fluid: link.page additionalParams and multiArray

Stefan Frömken firma at sfroemken.de
Mon Aug 22 12:34:55 CEST 2011


Hello,

maybe you can help me:

This is the link I am expecting:
http://mySite/index.php?id=3&tx_kesearch_pi1[filter][3][243]=country_germany

And this is my try to realize this link in Fluid:

<f:for each="{data.user_ikcategorisation_countries}" as="countries" 
iteration="iterator">
	<f:link.page pageUid="3" 
additionalParams="{ke_search:{multi:'1',filter:{{countries.filterUid}:{{countries.optionUid}:'{countries.filterName}'}}}}">{countries.fieldName}</f:link.page>
</f:for>

but Fluid tells me something about wrong type:
#1237900529: The argument "additionalParams" was registered with type 
"array", but is of type "string" in view helper 
"Tx_Fluid_ViewHelpers_Link_PageViewHelper"

But when I replace my variables with fixed strings everything works:

<f:for each="{data.user_ikcategorisation_countries}" as="countries" 
iteration="iterator">
	<f:link.page pageUid="3" 
additionalParams="{ke_search:{multi:'1',filter:{3:{243:'{countries.filterName}'}}}}">{countries.fieldName}</f:link.page>
</f:for>

Any ideas?

Stefan


More information about the TYPO3-project-typo3v4mvc mailing list