I have written a plugin and it is "not found" when I reference it in the dashboard (when editing Global Layout).
I've searched the doc, but can't find anything specific (and get no particular error).
This is how I reference it in the global layout:
#set ($helper = $params.get("helper"))
$helper.renderConfluenceMacro("{mymacro}")
The "web-resource" I have refers to alt.general and alt.admin . . . anything else you can think of?
FYI, I realized that I asked the wrong question, earlier:
Community moderators have prevented the ability to post new answers.
You have to register your macro in "old style" in your atlassian-plugin.xml.
I supose you have defined your macro as <xhtml-macro/> and not as <macro/> too.
could this be?
I am using Plugin SDK 4, with Confluence 4.3 (part of the newer plugin). So this is the answer. Here is the recipe:
#set ($helper = $params.get("helper"))
$helper.renderConfluenceMacro("{mymacro}")
In the defined macro you should have both defined (in atlassian-plugins.xml), but with different keys:
<xhtml-macro name="mymacro" class="com.mymacro.MyMacro" key="key1">
....
</xhtml-macro>
AND
<macro name="mymacro" class="com.mymacro.MyMacro" key="key2">
....
</macro>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.