Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Is there a special configuration to make plugin available to the dashboard?

Nathan Dunn September 23, 2012

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:

https://answers.atlassian.com/questions/89609/how-do-i-insert-my-custom-plugin-macro-into-the-dashboard-in-confluence-4-x?sort=-votes

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

4 votes
Answer accepted
Oli S
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 23, 2012

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?

Nathan Dunn September 27, 2012

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>

If the macro you downloaded does not have both of these in the Jar they you will have problems. That being said, if you are able to download the plugin jar, you should be able to change that manually, albeit it would be better to contact the vendor directly so that they can make the change and know what you are doing with their plugin.

TAGS
AUG Leaders

Atlassian Community Events