-
Suggestion
-
Resolution: Unresolved
-
None
-
6
-
6
-
NOTE: This suggestion is for Confluence Server. Using Confluence Cloud? See the corresponding suggestion.
When using page templates, variables are not recognized when they are inside of wiki constructs (e.g. [@@],
{@@}).
Here is an example of a template page, with variables that work and variables that don't:
Variables where they do not work:
inside link | page title#@pageLink@ |
inside include macro | {include:@contentPageName@} |
Variables where they do work:
inside plain text | Some random text @variable@ |
- is duplicated by
-
CONFSERVER-1620 Templates fail to spot variables in links, mailtos, etc.
-
- Closed
-
-
CONFSERVER-26610 Add ability to use variables as the argument to macros in templates
- Closed
- is incorporated by
-
CONFSERVER-12761 Prompt for page template field values using a simple form rather than a rendered page.
- Gathering Interest
- is related to
-
CONFSERVER-1620 Templates fail to spot variables in links, mailtos, etc.
-
- Closed
-
- relates to
-
CONFCLOUD-3324 Support replacement of page template variables in wiki links and macro parameters
- Future Consideration
-
CONFSERVER-3999 Global variables
- Not Being Considered
Why has this ticket been languishing? The recommendation provided would actually make variables usable inside templates! I have innumerable use cases for dynamically populating macro parameters. One in particular, is the Jira macro that brings in a list of Jira issues based on a specified JQL statement. These cap out at 1000 issues, and they bog down the load times of pages to an almost unusable level. Being able to dynamically change the filter queries from a variable would be a tremendous difference.