Project

General

Profile

Actions

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.

Status:
Closed
Priority:
Could have
Category:
Fluid
Target version:
Start date:
2015-03-20
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
medium
Is Regression:
No
Sprint Focus:

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.

Actions #1

Updated by Markus Klein about 9 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>

Actions #2

Updated by Olle Haerstedt about 9 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.

Actions #3

Updated by Gerrit Code Review about 9 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

Actions #4

Updated by Gerrit Code Review about 9 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

Actions #5

Updated by Gerrit Code Review about 9 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

Actions #6

Updated by Gerrit Code Review about 9 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

Actions #7

Updated by Benni Mack almost 9 years ago

  • Target version changed from 7.0 to 7.4 (Backend)
Actions #8

Updated by Susanne Moog over 8 years ago

  • Target version changed from 7.4 (Backend) to 7.5
Actions #9

Updated by Wouter Wolters over 8 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

Actions

Also available in: Atom PDF