Confluence Macro Plugin - Customise Input Parameters

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

Thanks a lot, it was very useful :)

David Simpson Community Champion Jul 13, 2011

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

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 Simpson Community Champion Jul 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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

805 views 23 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you