To allow seamless integration with content management systems or any system where diagrams are displayed in context, it would be desirable for users to be able to select links from a pre-defined list of links when editing a Gliffy diagram.
This could be achieved by making it possible to pass a list of URLs with titles as a parameter when creating or editing a Gliffy diagram. It would then be possible to display this list of titled URLs when creating or editing a link for a diagram element, whereby the user can select a pre-defined link from a drop-down list.
The API could for instance be adjusted to allow the passing of a list of link parameters:
or, it could allow the passing of an XML string with the parameters included:
- linkMap=<links><link url="http://www.mydomain.com/page1" title="Page 1"/><link url="http://www.mydomain.com/page2" title="Page 2" target="_blank"/></links>
Another possiblity would be to allow the passing of a URL to an external link editor which allows developers to define their own link popup dialogue for custom behaviour. The selected URL would be returned by script to the Gliffy editor.
Thanks for a great tool!