...
ConfiForms Form Definition |
---|
|
sashRegister new
sometextfldMy text fieldtext zefileThe filefile |
Showing standard in TableView
ConfiForms TableView |
---|
|
sometextfld zefile |
Using Plain View
ConfiForms PlainView |
---|
|
<p>[entry.sometextfld]</p>
<p>
<ac:structured-macro ac:macro-id="a088e4c2-51c4-47bc-9c33-6f887947f9ac" ac:name="view-file" ac:schema-version="1">
<ac:parameter ac:name="name">
<ri:attachment ri:filename="[entry.zefile]"/>
</ac:parameter>
<ac:parameter ac:name="height">250</ac:parameter>
</ac:structured-macro>
</p> |
Using PlainView and HTML macro to render the table
HTML |
---|
<table class="confluenceTable">
<tr class="confluenceTr"><th class="confluenceTh">My text field</th><th class="confluenceTh">My file</th></tr> |
ConfiForms PlainView |
---|
|
<tr class="confluenceTr">
<td class="confluenceTd"><p>[entry.sometextfld]</p></td>
<td class="confluenceTd"><p>
<ac:structured-macro ac:macro-id="a088e4c2-51c4-47bc-9c33-6f887947f9ac" ac:name="view-file" ac:schema-version="1">
<ac:parameter ac:name="name">
<ri:attachment ri:filename="[entry.zefile]"/>
</ac:parameter>
<ac:parameter ac:name="height">250</ac:parameter>
</ac:structured-macro>
</p>
</td></tr> |
Info |
---|
Important! For Confluence versions later than 5.9.x we suggest to have the configuration in a UserMacro, as mixing the HTML macros and PlainView like in the demo will not output a good results, as Confluence strips off the tags which it finds invalid (like a "TR" without a corresponding "TABLE" around and so on) |
...
We suggest to have a user macro like this:
Code Block |
---|
<table class="confluenceTable">
<tr class="confluenceTr"><th class="confluenceTh">My text field</th><th class="confluenceTh">My file</th></tr>
<tr class="confluenceTr">
<td class="confluenceTd"><p>[entry.sometextfld]</p></td>
<td class="confluenceTd"><p>
<ac:structured-macro ac:macro-id="a088e4c2-51c4-47bc-9c33-6f887947f9ac" ac:name="view-file" ac:schema-version="1">
<ac:parameter ac:name="name">
<ri:attachment ri:filename="[entry.zefile]"/>
</ac:parameter>
<ac:parameter ac:name="height">250</ac:parameter>
</ac:structured-macro>
</p>
</td></tr>
</table> |
Info |
---|
In some case you will need to update the "view-file" macro parameters to be Code Block |
---|
<ac:parameter ac:name="page">
<ac:link>
<ri:page ri:content-title="[entry._page.title]"/>
</ac:link>
</ac:parameter> |
when you want to include an excel file from another page |