Date: Thu, 28 Mar 2024 18:42:45 +0200 (EET) Message-ID: <634395902.1039.1711644165517@wiki.vertuna.com> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_1038_943838632.1711644165401" ------=_Part_1038_943838632.1711644165401 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
In this demo we will show how to embed the Excel file into the c= ustom view (ConfiForms PlainView macro)
This works for Confluence up to 5.9.x. In order to make this work for la= ter versions of Confluence the part with HTML and PlainView macro should be= moved to a user macro. See below for details
Showing standard in TableView
My text field |
The file |
---|---|
demo file |
Using Plain View
demo file
Using PlainView and HTML macro to render the table
My text field | My file |
---|---|
demo file |
Important!
For Confluence versions later than 5.9.x we suggest to have the configur= ation in a UserMacro, as mixing the HTML macros and PlainView like in the d= emo 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 s= o on)
We suggest to have a user macro like this:
<tab= le class=3D"confluenceTable"> <tr class=3D"confluenceTr"><th class=3D"confluenceTh">My text f= ield</th><th class=3D"confluenceTh">My file</th></tr&g= t; <tr class=3D"confluenceTr"> <td class=3D"confluenceTd"><p>[entry.sometextfld]</p><= /td> <td class=3D"confluenceTd"><p> <ac:structured-macro ac:macro-id=3D"a088e4c2-51c4-47bc-9c33-6f887947f9= ac" ac:name=3D"view-file" ac:schema-version=3D"1"> <ac:parameter ac:name=3D"name"> <ri:attachment ri:filename=3D"[entry.zefile]"/> </ac:parameter> <ac:parameter ac:name=3D"height">250</ac:parameter> </ac:structured-macro> </p> </td></tr> </table>