Is it possible to replicate a master draw.io diagram from "source" page to "subordinate" pages?
Asked by Alexey Krivosar:

Hi there! I need your help, guys.

Given: a multiple-tab draw.io diagram (40 tabs with BPMN diagrams) embedded on a "source" page. Any changes are made in this file in editing mode within Confluence.

Question: can the specific tabs from this master file be replicated on other "subordinate" pages (e.g. in read-only mode)? Whenever we apply changes to the master file on the "source" page, the diagrams on the the "subordinate" pages get updated.

Would really appreciate your advice!


Answers:
author: Rilwan Ahmed
body: Hi [@Alexey Krivosar](/t5/user/viewprofilepage/user-id/5297480) ,

Welcome to the community !!

I have tagged draw.io in the question. In case you don't get any response, you can contact the plugin vendor directly here: [https://marketplace.atlassian.com/apps/1210933/draw-io-diagrams-whiteboards?tab=support\&hosting=cloud](https://marketplace.atlassian.com/apps/1210933/draw-io-diagrams-whiteboards?tab=support&hosting=cloud)

Please provide them all the steps to check and reproduce.


author: David Benson _draw_io_
body: Yes, you can use the "embed draw.io" macro and select the original diagram as the input diagram.

Then, edit the page, click the diagram and select "edit macro". In there you'll get the option to select a specific page to be displayed.

comments: author: Alexey Krivosar
body: Thanks for your reply, David. Seems that I have a problem importing an already existing diagram on the Confluence page from my hard drive. I am using the "embed draw.io" macro you mentioned, but I can't figure out how I can actually get the file into the system. Could you help me with that?


author: Alexey Krivosar
body: Hi [@David Benson _draw_io_](/t5/user/viewprofilepage/user-id/4259284) , would appreciate your help with my question above. I watched some tutorials on YouTube, but the problem is I don't have the Upload option in my "embed draw.io" macro. Is there a way I could add this option?


author: Bastian -drawio Diagrams-
body: [@Alexey Krivosar](/t5/user/viewprofilepage/user-id/5297480) Allow me to step in for David. The "embed draw.io" macro can only be used, if the diagram you like to refer to is already stored on a Confluence page. You have to import the diagram from your hard drive first. Just use the regular import option via *File \> Import from*or simply drag and drop the XML file on a blank draw.io canvas. Once the diagram is attached to a Confluence page, you can embed it on sub-pages.


author: Alexey Krivosar
body: Thanks [@Bastian -drawio Diagrams-](/t5/user/viewprofilepage/user-id/637202) would the option you described work for a draw.io with multiple tabs? This is exactly my case.


author: Bastian -drawio Diagrams-
body: [@Alexey Krivosar](/t5/user/viewprofilepage/user-id/5297480) Yes, this option works very well, as you can define, which tab you like to have visible by default once you embedded it (and if that tab contains layers, you can even configure, if there are layers you like to have invisible or visible by default).![Screen Shot 2023-09-04 at 14.22.24.png](https://community.atlassian.com/t5/image/serverpage/image-id/278712iD66A412C2A3D580B/image-size/large?v=v2&px=999 "Screen Shot 2023-09-04 at 14.22.24.png")


Tags: cloud

confluence-cloud

draw.io