Details
-
Suggestion
-
Resolution: Unresolved
-
None
-
1
-
1
-
Description
NOTE: This suggestion is for Confluence Server. Using Confluence Cloud? See the corresponding suggestion.
Steps to reproduce
- Open the template editor
- Insert a code macro
- Insert a template variable into the code macro
- Save the template
- Create a page from the template
The user will not be prompted to insert a value for the variable.
In addition, if they attempt to edit the template, the variable will also have disappeared.
We should either allow the template variables to function inside code macros as they if they weren't inside the code macro. Or we should at least not allow template variables to be inserted into code macros.
Pre 4.3 (before we revamped page templates / template variables) template variables could be used in code macros but ONLY if the template variables was repeated somewhere else on the page outside a code macro. So even before this template variables in code macros did not work that great.
Attachments
Issue Links
- relates to
-
CONFCLOUD-29162 template variables cannot be used in code macros
- Gathering Interest