Demonstrating the use of ConfiForms ListView macro together with built-in Confluence macro called "Content by Label"
ConfiForms Form Definition |
---|
|
confluence-administratorsINLINE
labellabeltext |
...
data in the form
ConfiForms TableView |
---|
|
label |
Content by label (dynamic)
ConfiForms ListView |
---|
|
labellabel = "[entry.label]" |
...
You will need Storage format editor add-on to work with this code and to configure ContentByLabel macro (could not do it via UI)
Expand |
---|
|
Code Block |
---|
<ac:structured-macro ac:macro-id="31b1d8d1-ae8c-44e2-a0b3-c9703b5ca1c0" ac:name="confiform" ac:schema-version="1">
<ac:parameter ac:name="formName">f<>f1</ac:parameter>
<ac:rich-text-body>
<p>
<ac:structured-macro ac:macro-id="967df302-5311-40e2-89b8-9238c82197b8" ac:name="confiform-entry-register" ac:schema-version="1">
<ac:parameter ac:name="atlassian-macro-output-type">INLINE</ac:parameter>
<ac:rich-text-body>
<p> </p>
</ac:rich-text-body>
</ac:structured-macro>
<ac:structured-macro ac:macro-id="c3cfd7c4-171d-4ef9-ad48-e120db44e9d0" ac:name="confiform-field-definition" ac:schema-version="1">
<ac:parameter ac:name="fieldName">label</ac:parameter>
<ac:parameter ac:name="fieldLabel">label</ac:parameter>
<ac:parameter ac:name="type">text</ac:parameter>
</ac:structured-macro>
</p>
</ac:rich-text-body>
</ac:structured-macro>
<p> </p>
<p>Content by label (dynamic)</p>
<ac:structured-macro ac:macro-id="2b8229f8-db2f-43e4-9c75-a32dca15b246" ac:name="confiform-list" ac:schema-version="1">
<ac:parameter ac:name="formName">f<>f1</ac:parameter>
<ac:rich-text-body>
<h2>
<ac:structured-macro ac:macro-id="7561129d-fe01-4cbd-ad12-5b3e0f08e419" ac:name="confiform-field" ac:schema-version="1">
<ac:parameter ac:name="fieldName">label</ac:parameter>
</ac:structured-macro>
</h2>
<p>
<ac:structured-macro ac:macro-id="e896d359-d0cb-4231-9bb1-2a9e4c83e9f5" ac:name="contentbylabel" ac:schema-version="2">
<ac:parameter ac:name="cql">label = "[entry.label]"</ac:parameter>
</ac:structured-macro>
</p>
</ac:rich-text-body>
</ac:structured-macro>
|
|