Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Access to page's attachments on LiveView

Demolag
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 4, 2025

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
Screenshot 2025-11-04 113828.png
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
Screenshot 2025-11-04 114440.png
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

1 answer

1 accepted

2 votes
Answer accepted
Alex Medved _ConfiForms_
Community Champion
November 4, 2025

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

Demolag
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 4, 2025

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?

Alex Medved _ConfiForms_
Community Champion
November 4, 2025

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

 

Like Demolag likes this
Demolag
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 4, 2025

Thanks, I will investigate how that can be done.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events