Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


In this demo we demonstrate how to use ConfiForms data as parameters for Atlassian Include page macro

You can see a complete configuration for you to import on the bottom of the page

Here is how it looks like in the editor 

Image Added

The tricky part is the set up of the "Include Page"  macro and you need to do it using Confluence source editor, as otherwise it does not accept dynamic parameters

The configuration for this macro should loom like this (assuming your information about what page to include is stored in "pageToInclude" ConfiForms Field of "Page/Blogpost" type)

Code Block
<ac:structured-macro ac:macro-id="b728042f-5210-47ca-a201-0927375638a9" ac:name="include" ac:schema-version="1"> 
  <ac:parameter ac:name=""> <ac:link> <ri:page ri:content-title="[entry.pageToInclude.title]" ri:space-key="[entry.pageToInclude.spaceKey]"/> </ac:link> </ac:parameter> 
</ac:structured-macro>

You can see we use "pageToInclude" objects properties to get the values for page title and space key.

See Accessing page properties for more details on which properties are available for each field type in ConfiForms


ConfiForms Form Definition
formNamemyform
myformsashINLINE


pageToIncludePage to includeTESTpage

...