Clarify options for previewing macro body content

XMLWordPrintable

      The Atlassian documentation doesn't explain clearly how to retrieve the body content of a Confluence macro in preview mode. It says :

      "If you use the

      {macro.id}

      in your URL, the REST api will not return the macro body during a preview request, because the page has not been saved yet. You can use the

      {output.type}

      parameter to detect whether the macro is rendered in preview mode and adapt the response accordingly."

      But the tutorial doesn't explain how to adapt the response accordingly

      I asked this question on answers web site with some code example :
      https://answers.atlassian.com/questions/27330364/confluence-ondemand-cannot-display-macro-body-of-a-dynamiccontentmacros

      Thanks

      Xavier Arques

              Assignee:
              Unassigned
              Reporter:
              Xavier Arques
              Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: