Bug #65870
closedAllow quoted keys in Fluids short-hand syntax, like `additionalParam="{'key': 'value'}"
0%
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.
Updated by Markus Klein almost 10 years ago
- 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>
Updated by Olle Haerstedt almost 10 years ago
It is possible like Markus wrote. But I think this syntax is rather stretched, and not something you could guess on your own.
Updated by Gerrit Code Review almost 10 years ago
- 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
Updated by Gerrit Code Review almost 10 years ago
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
Updated by Gerrit Code Review almost 10 years ago
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
Updated by Gerrit Code Review almost 10 years ago
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
Updated by Benni Mack over 9 years ago
- Target version changed from 7.0 to 7.4 (Backend)
Updated by Susanne Moog over 9 years ago
- Target version changed from 7.4 (Backend) to 7.5
Updated by Wouter Wolters over 9 years ago
- Status changed from Under Review to Closed
Will be part of the standalone Fluid intergration. Closing it here now. See https://github.com/TYPO3Fluid/Fluid/commit/2f1e815e4e5b734bb0e3739a722f94a111a29e9e