Confluence Image Macro Placeholders

177 views
Skip to first unread message

Ryan Thomas

unread,
Dec 7, 2011, 9:19:25 PM12/7/11
to atlassian-re...@googlegroups.com
I've committed changes that allow a remote Confluence macro to render themselves with an image placeholder in the editor, some details on how to use this can be found here: https://remoteapps.jira.com/wiki/display/ARA/Confluence+Image+Macro+Placeholders

Cheers,

ryan

Michael

unread,
Sep 17, 2014, 5:38:47 AM9/17/14
to atlassian-...@googlegroups.com, atlassian-re...@googlegroups.com, rth...@atlassian.com
Hi Ryan,

I'm currently working on a Connect Confluence add-on which makes use of your image placeholder feature for macros. One thing I miss there is the possibility to use a "uri-template" instead of an ordinary "uri" type:

"imagePlaceholder": { 
 "width": 100, 
 "height": 25, 
 "url": "/preview?pageId={page.id}&pageVersion={page.version}&macroHash={macro.hash}", 
 "applyChrome": true
}

I need this in order to get the macro content to render a preview of it. This would allow a better user experience because the user would not need to go into the macro browser or click preview in the editor, but instead would always see the rendered macro while editing.

Is there a particular reason why "url" for "imagePlaceholder" just allows an ordinary URL without templates?

Or is there any other way to get the macro content in an imageplaceholder callback?

Thanks,
Michael

P.S.: I also opened a ticket for this: https://jira.atlassian.com/browse/CONF-34940

Patrick Streule

unread,
Sep 17, 2014, 6:00:30 PM9/17/14
to atlassian-...@googlegroups.com, atlassian-re...@googlegroups.com, rth...@atlassian.com
Michael,

Image placeholders were originally seen as static placeholders without a need for parameters (and signatures). But there is a request to change this already:

Regards,
Patrick
Reply all
Reply to author
Forward
0 new messages