Bug #65870
closed
Allow quoted keys in Fluids short-hand syntax, like `additionalParam="{'key': 'value'}"
Added by Olle Haerstedt about 9 years ago.
Updated over 8 years ago.
Description
When creating a link to a powermail form page you might want to populate some fields using additionalParams. Example:
<f:link.page pageUid="8" additionalParams="{'tx_powermail_pi1[field][name]': 'Foo Barsson'}">My link</f:link.page>
This is not possible today, which is unintuitive, since this syntax is perfectly legal in e.g. Javascript, which Fluid short-hand syntax is said to imitate.
I propose a small fix for this, extending the regex to include quoted keys.
- Status changed from New to Needs Feedback
Should work:
<f:link.page pageUid="8" additionalParams="{tx_powermail_pi1: {field: {name: 'Foo Barsson'}}}">My link</f:link.page>
It is possible like Markus wrote. But I think this syntax is rather stretched, and not something you could guess on your own.
- Status changed from Needs Feedback to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/37975
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/37975
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/37975
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/37975
- Target version changed from 7.0 to 7.4 (Backend)
- Target version changed from 7.4 (Backend) to 7.5
- Status changed from Under Review to Closed
Also available in: Atom
PDF