Issue Bug Closed

#65870Allow quoted keys in Fluids short-hand syntax, like `additionalParam="{'key': 'value'}"

Olle Haerstedt 03/20/15, 15:55 updated 09/23/15, 21:54

Description

When creating a link to a powermail form page you might want to populate some fields using additionalParams. Example:

<f:link pageuid="8" additionalparams="{'tx_powermail_pi1[field][name]': 'Foo Barsson'}">My link <p>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.</p> <p>I propose a small fix for this, extending the regex to include quoted keys.</p></f:link>

Reviews 1