Feature #40081

Allow assigned variables as keys in arrays

Added by Viktor Livakivskyi about 9 years ago. Updated almost 8 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2012-08-23
Due date:
% Done:

0%

Estimated time:
Has patch:
No

Description

It was asked couple of times in mailing lists, e.g. here: http://lists.typo3.org/pipermail/typo3-project-typo3v4mvc/2012-January/011389.html

is something like this possible with fluid?

Controller:

$this->view->assign('value', $value);
$this->view->assign('keyName', $keyName);

View:

arguments="{{keyName} : value, foo: bar}" 

IIRC This does not work. Any workarounds?

This is especially needed, when creating links, like index.php?id=5?tx_myext8[edit]=3, because I need to pass dynamically plugin instance id to GET via 'additionalParams' of 'f:link.page' Fluid viewHelper.


Related issues

Related to TYPO3.Fluid - Feature #33215: RFC: Dynamic values in ObjectAccess pathsNew2012-01-16

Actions

No data to display

Also available in: Atom PDF