Hi, we're documenting various physical parts in Confluence. Form our CAD system we're able to export images, which are added to one Confluence page as attachments. Each images is named according the page title.
For each part we have one Confluence page.
I wrote a user macro to show the matching image on each page.
## @noparams
## Short description
## Show most recent part image based on part number and name
##
## @noparams
#set ($title = $content.title)
#set ($title = $title.replace(" ","_"))
#set ($title = $title.toLowerCase())
#set ($title = "https://confluence.lan/download/attachments/104431729/"+$title + ".jpg?api=v2")
<img width=200px" src=$title></img>
##$title
So far so good.
However it would be nice to mimic the image macro, so that one can access the image in a larger resolution.
Any hints how to achieve this?