Project

General

Profile

Actions

Feature proposal #7828

closed

Implement support for nested substitutions

Added by krileon almost 5 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
29 January 2020
Due date:
% Done:

100%

Estimated time:

Description

This should allow for substitutions within substitution attributes. So for example the following could be allowed.

[cb:userfield field="avatar" user="[cb_mentor]" /]

This needs to ensure the resulting value from the nested substitution is substitution safe. Meaning doesn't contain substitutions itself to prevent large substitution loops and to prevent user content being passed through substitutions. So in this case the substitution result must be strict so it should be cast to int unless it's a valid string value for the user attribute (e.g. #me).

Actions

Also available in: Atom PDF