Scroll ImageMap Documentation
Hello, i will use your plugin on my company Confluence server and i want to know where I can find the documentation and/or examples on how to use this macro via POST. The last topic I've found about this is from 2013.
<ac:macro ac:name="imagemap">
<ac:parameter ac:name="name">MP900403440.JPG</ac:parameter>
<ac:macro ac:name="map">
<ac:parameter ac:name="title">title teest</ac:parameter>
<ac:parameter ac:name="coords">114,100,1243,720</ac:parameter>
<ac:parameter ac:name="link">http://www.google.de</ac:parameter>
</ac:macro> </p>
</ac:rich-text-body>
</ac:macro>
Is this the right way?
In the 'name' parameter, can i use a file on the Confluence server? Or do i have to upload the image?
-
Hi,
Thanks for the question.
Just to clarify – do you want to add a macro to an existing page using the REST API?
For your information: from your post, it looks like that example you quoted from the 2013 documentation is for ImageMap 1.x. If you are using Scroll ImageMap 2.x, then the old 1.x documentation will be irrelevant as the 2.x release featured a major overhaul that totally changed the way that the add-on worked.
You can find the new 2.x documentation at https://help.k15t.com/scroll-imagemap/server/scroll-imagemap-documentation-114102020.html
Cheers, Tom
-
Hi Tulio.
Am I correct that you need an example of the storage format of an ImageMap macro? I have inserted a simple macro on my local Confluence page and here is what I got:
<p><ac:structured-macro ac:name="scroll-imagemap-macro" ac:schema-version="1" ac:macro-id="b9a215d7-e7bd-404e-902a-946554e7756e"><ac:parameter ac:name="data">{"dataVersion":2,"shapes":[{"shape":"rect","coordinates":"45,15,153,104","properties":{"title":"square shape tooltip","resource":{"id":"","type":""},"target":"_blank"}},{"shape":"circle","coordinates":"290,38,197,197","properties":{"title":"circle shape tultip","resource":{"id":"","type":""},"target":"_blank"}},{"shape":"polygon","coordinates":"119.83,273.44,201.62,249,259,377,80,336.72","properties":{"title":"polygon shape tooltip","resource":{"id":"","type":""},"target":"_blank"}}],"viewSize":734,"image":{"resource":{"id":"att13664427","type":"attachment-link"},"width":734,"height":388}}</ac:parameter></ac:structured-macro></p>
Does this help?
Cheers,
Roman.
Please sign in to leave a comment.
Comments
4 comments