Confluence Macro Plugin - Customise Input Parameters

diego diego July 12, 2011

Hi,

I tried set label and description of input parameter element in atlassian-plugin.xml, see example:

....
<parameters>
<parameter name="param_name" type="boolean" default="false">
<label>Some label (asdasd)</label>
<description>... some description...</description>
</parameter>
</parameters>
....


But this dont work... is any way to set label and description for input macro parameters?

Second question: Is possible disable input field (parameter) with name "Body Text" in macro inserting?

Thanks for answers

2 answers

1 accepted

9 votes
Answer accepted
David at David Simpson Apps
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
July 12, 2011
diego diego July 12, 2011

Thanks a lot, it was very useful :)

David at David Simpson Apps
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
July 13, 2011

@Diego Elos: If it helped, up-vote it or mark as answered. Thanks!

0 votes
diego diego July 13, 2011

new question:

<parameter name="draw" type="enum" required="true">
<value name="line" />
<value name="fill" />
</parameter>

How I can set different string of name element value? Because I want use string "line" only as code name, not display string.

David at David Simpson Apps
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
July 13, 2011

I would guess at...

com.example.confluence.plugin.macroname.param.paramname.value.valuename.label=XXX

So in your case, perhaps...

com.example.confluence.plugin.macroname.param.draw.value.line.label=Lin
com.example.confluence.plugin.macroname.param.draw.value.fill.label=Fill

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events