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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

1,263 views 23 10
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