I have a plugin that supports a wide range of Confluence versions. In the plugin I have a status updates-macro (a function no longer available in confluence 5.9) that I want to configure so that it's only available for certain confluence version. So if I install the plugin on Confluence 5.7 the macro will be available, but if I install it on Confluence 5.9 it won't be. Is there any way to configure a macro this way, maybe similar to adding conditions to web-items.
Community moderators have prevented the ability to post new answers.
Hi Dennis,
no, I think, you can't. But...
You can use a component or a BundleActivator (if you are firm with OSGi) to disable the module if you are on confluence 5.9 or higher.
Then the module is listed as disabled in the upm and you can't chosse it from the macro browser.
Regards
Steve
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.