Pass shape property to URL? #2775
Replies: 5 comments 4 replies
-
Some other ideas for similar need: (1) Lookup (external to drawio, since it seems a bit involved to get a plugin going) of components, fill clipboard with drawio shape for the looked up component and paste it into editor. (2) Generate diagram skeleton, choosing components to add and then opening up in drawio to work on layout... |
Beta Was this translation helpful? Give feedback.
-
I'd suggest to break these down into individual, distinct, well described feature requests, one per feature. Put them in issues, rather than discussion. I under the idea of discussing high level ideas here, but it needs specifics in issues in order to progress. Worse case is I say no :). I know they might be inter-related, but in this form of discussion it's rather large and vague, which means a low change of implementation. Specific use cases with pictures also helps. |
Beta Was this translation helpful? Give feedback.
-
I've spent the last two weeks automating 3 level diagram (example in my repo) - the whole thing is naively written, but works very well. To synthesize what I think would be useful:
EDIT: the fact I'm now generating everything programmatically kind of does away with this feature, might still be useful for casual users if they have a service they could hook this up to. Then again, many casual users won't be building custom links. PS: drawio is absolutely fantastic :) |
Beta Was this translation helpful? Give feedback.
-
So a simple feature would be. I have a shape that defines a property, say "c4Name". Make it referrable in the URL field say "http://myconfluence/%c4Name%" - which would get replace on click. |
Beta Was this translation helpful? Give feedback.
-
@GanizaniSitara - sorry, I dont quite get your "simple feature" suggestion.
What do you mean with "the URL field" - would this action replace the standard link for a shape? What is expected to be in the URL? A json file with exact same property/ies as the properties of the object? What click would trigger a replace? Also, how would you populate the shape with URLs? By hand? I am curious here, I have some ideas in this area. |
Beta Was this translation helpful? Give feedback.
-
As the title says, is there any way we could pass shape property to URL?
What I'd like to achieve - imagine a large enterprise (upwards of 50K Draw.IO diagrams in a single confluence instance), adopting C4. Naming convention/application catalogue not always consistent. If I can take shape property and pass it to a linked URL I could have a resolution service running that would always pass the clicker to the "knowledge repository" that knows the most wherever that lives.
So if my C4 shape says "Application A" in a description I can resolve "Application A" to "Official name for A" and pass them to wherever they needo go. Equally "Bob" which is another name for "Application A" would also in my service resolve to "Official name for A" and pass people wherever they need to go to.
The idea is we encode colloquial knowledge and still enable entity resolution and seamlessly link from diagrams.
Too ambitious?
Beta Was this translation helpful? Give feedback.
All reactions