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

Forge Macro not being rendered when using layout: 'inline' in manifest.yml

XMLWordPrintable

      Issue Summary

      When embedding a Forge macro in a place that renders the macro that uses inline layout we see

      instead of the macro. When viewing the HTML for the error we see

      ”Unhandled adf-node when trying to transform from storage to view format. Node is ac:adf-node” 

      When exporting the page to PDF, the export function is also not triggered, resulting in empty pages.

      This also occurs when viewing Page Templates.

      In summary this is affecting:

      • rendering in exported files
      • rendering in page history
      • rendering inside of a page properties report
      • rendering inside a Page Template

      Steps to Reproduce

      For the Page Template example

      1. Create a Forge Confluence Hello, World macro
      2. Add layout: 'inline' to the manifest.yml
        modules: 
           macro: 
            - key: hello-world-app
              function: main
              title: Forge Hello World app
              description: Inserts Hello world!
              layout: 'inline'
          function: 
            - key: main
              handler: index.run
        
      1. In Confluence, go to COG -> Global Templates and Blueprints and click Add global page template
      2. Add the Hello, World macro: it will appear as expected
      3. Save the template
      4. Click on the template name to view the template

      Expected Results

      Macro or macro placeholder displays as expected.

      Actual Results

      The below exception is thrown:

      ”Unhandled adf-node when trying to transform from storage to view format. Node is ac:adf-node”  

      and we see this in its place

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

            Unassigned Unassigned
            d6427b6fb657 Guilherme Bueno
            Votes:
            8 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated: