Forums

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

How can i have multiple attachment macros on one page without creating multiple child pages?

Lisa Perry February 6, 2022

I am trying to create a page to store letters for Operational use. The letters need to be stored in categories and sub-categories due to the letter volume of over 400. I would like to create a page for each category but within that page create a file list for each sub-category. When i create mulitple attachment macros in a page the file lists mirror each other.

Is there a way to stop the macros from mirroring each other?

 

2022-02-07_11-10-22.jpg

2 answers

1 accepted

0 votes
Answer accepted
Brant Schroeder
Community Champion
February 6, 2022

@Lisa Perry Welcome to the Atlassian Community

You can do this one of two ways.  Add an additional page (This would be the easiest in my opinion) or add labels to the attachment to filter on if you would like to have them all on one page.  The reason I would suggest an additional page is I believe it will be easier to manage.  Having to add labels each time could easily be forgotten and then the attachment would not show up on your macro.  https://confluence.atlassian.com/doc/attachments-macro-97911315.html

Screenshot 2022-02-06 164653.jpg

James Knarr May 29, 2025

I am to solve this same problem. But I don't think either of these suggestions are doable in my case. I'd need to have 25 separate sub pages in my page and some of those sub pages would only have 2 or 3 attachments. Having all 25 sections in one page is a lot of doable. Im just not sure how to accomplish this without the use of folders or something similar. I was hoping sections would solve that but if each section cant have their own attachments, it doesn't seem doable in confluence. Any suggestions?

0 votes
Roma Bubyakin _Wombats Corp_
Contributor
June 2, 2025

Hi @James Knarr 

It might be solved with User Macro. But to create it, I need to better understand the logic of attachment' separation/grouping. And the structure of your pages and attachments.

Regards, Roman

James Knarr June 2, 2025

I pretty much want to have an attachment list for attachments in a section, not in the page. I mainly want to use them like expanded folders.

Roma Bubyakin _Wombats Corp_
Contributor
June 2, 2025

Okay, but how do they get categorized in a folder/tree structure?
Manually or by some rule which could be described as a code?

James Knarr June 2, 2025

So it's part of like a book, when we used a normal file repository, we would use folders. So it'd be like book is top level folder and then it would break into 25 folders for each of those 25 chapters. Each of those folders/chapters would have multiple attachments in them. Pages are a lot extra clicking around, so if I could display all of the chapters in one area, that be great. The attachments for the chapters are dropped in by a person, no rules used for that.

Roma Bubyakin _Wombats Corp_
Contributor
June 3, 2025

I have tried to build you something suitable with User Macro functionality, but failed with accessing $pageManager (seems it's not possible anymore CONFSERVER-9838 ) 😔

At this point, I can recommend that you go through the marketplace and find the most suitable solution: marketplace>confluence+server+attachments 

James Knarr June 3, 2025

Unfortunately, I am not able to use the marketplace. It is restricted by admin. :(

I have a excel sheet appearing on the page and it shows two files under the attachments for that macro. And I dont seem to have a way to hide them or anything :(

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events