Hi,
After updating the confiforms plugin on our datacenter, we found out that LiveView macros stopped having access to attachments on the viewing pages.
For example, we have a drawio macro inside the LiveView that used to show a diagram from the viewing page's attachments like this:
<ac:structured-macro ac:macro-id="aef6e052-9ddb-42ab-bf65-21cfa26003e1" ac:name="drawio" ac:schema-version="1">
<ac:parameter ac:name="border">true</ac:parameter>
<ac:parameter ac:name="diagramName">[entry.diagramname]</ac:parameter>
<ac:parameter ac:name="simpleViewer">false</ac:parameter>
<ac:parameter ac:name="links">auto</ac:parameter>
<ac:parameter ac:name="tbstyle">top</ac:parameter>
<ac:parameter ac:name="lbox">true</ac:parameter>
<ac:parameter ac:name=""/>
</ac:structured-macro>
but now, we get the following error when trying to view that Drawio
Trying to use the same macro inside the viewing page (instead of in the LiveView's target page), show the diagram fine.
When trying to view the same attachment using the Attachment macro:
<ac:structured-macro ac:macro-id="0a084f57-81c4-40fd-84a0-10157557d8a7" ac:name="view-file" ac:schema-version="1">
<ac:parameter ac:name="name">
<ri:attachment ri:filename="[entry.diagramname]"/>
</ac:parameter>
<ac:parameter ac:name="height">250</ac:parameter>
</ac:structured-macro>
I get the following error
While doing the same on the Viewing page, it shows the file's thumbnail fine.
To make sure the filename is passed right, I also put [entry.diagramname] on the section's text, and it seems the file's name is passed fine. Is there an option/setting to let the LiveView access to the viewing page's attachments like it used to be on previous versions?
Thanks in advance