Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-29162

template variables cannot be used in code macros

    XMLWordPrintable

Details

    • 1
    • 1
    • We collect Confluence feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

      NOTE: This suggestion is for Confluence Server. Using Confluence Cloud? See the corresponding suggestion.

      Steps to reproduce

      1. Open the template editor
      2. Insert a code macro
      3. Insert a template variable into the code macro
      4. Save the template
      5. 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

          Activity

            People

              Unassigned Unassigned
              jcorea JoeyA
              Votes:
              36 Vote for this issue
              Watchers:
              23 Start watching this issue

              Dates

                Created:
                Updated: