Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-29162

template variables cannot be used in code macros

    XMLWordPrintable

Details

    • 1
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      NOTE: This suggestion is for Confluence Cloud. Using Confluence Server? 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:
              26 Vote for this issue
              Watchers:
              20 Start watching this issue

              Dates

                Created:
                Updated: