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

Also available in: Atom PDF