[TYPO3-mvc] Fluid link ViewHelper - Dynamic array indexes

Thomas Allmer at at delusionworld.com
Wed May 11 21:31:59 CEST 2011


On 11.05.2011 17:10, Christian Kuhn wrote:
> I need to create a link that looks like this:
>
> index.php?id=23&tx_myext_pi1[42]=somevalue
>
> The '42' is not static, but an object id, thus dynamically generated.
> [...]

if possible you could just prepare the array in the controller

$this->view->assign('myParams', array('tx_myext_pi1' => array($id => 
'somevalue')) );

<f:link.page pageUid="{conf.targetPid}" 
additionalParams="{myParams}">page link</f:link.page>

-- 
+---------------------------------+-----------------------------------+
| Thomas Allmer                   |   http://www.delusionworld.com    |
| E-mail: at at delusionworld.com    |   phone: +43 699 16217064         |
+---------------------------------+-----------------------------------+


More information about the TYPO3-project-typo3v4mvc mailing list