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>
<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>
ConfiForms LiveView is rendered in the context of the source page. That was not the case with a BETA version of this macro, but has been changed long time ago
Meaning that it does not know anything about the attachments if the page that uses it, unless you pass the information using the parameters
https://wiki.vertuna.com/spaces/CONFIFORMS/pages/195264794/Using+ConfiForms+LiveView+macro
Alex
Thanks for the quick reply. Is there a way to pass information about attachments to the LiveView macro? Or should I just move the attachments from all viewing pages to the LiveView target page?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I cannot say much how these macros work and if they can take the contents from a different page. If they can for that, then there is a way to pass it via LiveView macro parameters
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks, I will investigate how that can be done.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.