You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, you have to manually define the namespace and image name in the syntax:
{{drawio>namespace:image-name}}
It would be really good if we can use dynamic values where
namespace = @ns@ and it refers to the namespace the page is on.
image-name = @file@ referring to the page id.
So let's say you have a chocolate cake recipe diagram, instead of writing out
{{drawio>food:chocolate_cake_diagram}}
You write:
{{drawio>@NS@:@FILE@_diagram}}
And it will get you the above. Having this dynamic naming scheme allows a lot of flexibility and easier copy and pasting to other pages to generate its own name.
Right now, you have to manually define the namespace and image name in the syntax:
{{drawio>namespace:image-name}}
It would be really good if we can use dynamic values where
namespace = @ns@ and it refers to the namespace the page is on.
image-name = @file@ referring to the page id.
So let's say you have a chocolate cake recipe diagram, instead of writing out
{{drawio>food:chocolate_cake_diagram}}
You write:
{{drawio>@NS@:@FILE@_diagram}}
And it will get you the above. Having this dynamic naming scheme allows a lot of flexibility and easier copy and pasting to other pages to generate its own name.
Here are more examples (https://www.dokuwiki.org/namespace_templates). Thank you!
The text was updated successfully, but these errors were encountered: