Use the "Create from template" macro to create a blank io.draw page?

Eamon Donovan June 20, 2018

Hi! We're on Confluence Server version 6.8.1 (7701) and draw.io version 7.4.1. If we go to create a new page from a template, we have two draw.io options:

1. Create a draw.io diagram - Creates root page for draw.io custom templates

2. Create a draw.io diagram - Creates an empty page initialized with Draw.io diagram

We're not doing much with custom templates yet, so we prefer the second option. This automatically creates a new, blank page and loads up the draw.io template selector for us.

If we use the "Create from template" macro, there is one menu option for "Create a draw.io diagram". It creates a new page using option 1, above. We'd like to be able to use this macro to create an in-page shortcut for option 2, instead. Is there a way to do this with the "Create from template" macro, or could another one do what we're looking for? Maybe a custom macro would be needed here?

Thanks!

1 answer

0 votes
Boris
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.
August 14, 2018

If I understood your question correctly, you want to create a page template with a diagram in it.

You can create a global page template in Confluence. Once in the template editor, you can add existing draw.io diagrams or draw.io diagram templates to it.

Then select it as you did for options 1 and 2 and you will presented with the page editor loaded with your template.

Keep in mind that all the diagrams in the page template will be copied over to the resulting page. So changing the diagrams in the actual page made from the template will not change the original diagrams.

image.png

I hope this answers your question.

Eamon Donovan August 15, 2018

Thanks for the reply, Boris, but that's not exactly it. When I go to create a new page from a template, there are two options called "Create a draw.io diagram":

2018-08-15 13_32_09-Drawings - Business Analytics - Datafield Documentation.png

"Creates root page for draw.io custom templates"

2018-08-15 13_32_21-Drawings - Business Analytics - Datafield Documentation.png

and "Creates an empty page initialized with draw.io diagram"

We prefer the second option, which lets the user pick an existing draw.io template for use on a new page. If we use the "Create from template" macro, only one of the draw.io template options appears - this one is the "root page" one, but we want the "empty page" one.

2018-08-15 13_34_09-Drawings - Business Analytics - Datafield Documentation.png

Not a major issue, since there's a very simple workaround - just click ... next to Create at the top of the page and choose the "empty page" version of the draw.io template. Still, one of our managers would prefer to have a button right on the page for that.

My guess is that the built-in "Create from template" macro won't tolerate having two "Create a draw.io diagram" options in the dropdown because they have the same name. Is there any workaround for this? Or perhaps draw.io could change the name on one of the template options?

Thanks!

Boris
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.
August 16, 2018

Ah, ok. Now it makes sense. 

We will rename our blueprints and have the "Create from template" macro pick them up both.

I will post in this thread once it's done.

Eamon Donovan August 16, 2018

Much obliged, thank you!

Boris
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.
August 20, 2018

8.0.10 is out. You should now see both blueprints listed in the dropdown.

Eamon Donovan August 20, 2018

Boris, this is perfect - our issue is resolved. Thanks!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events