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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,455,528
Community Members
 
Community Events
175
Community Groups

Macro name in the macro browser

Edited

How do you change the way macro name shows up in the macro browser?

I want to change the Helloworld macro to show up as "Hello World" in the browser but want to be able to type { helloworld } in the page to insert it.

This is the way it works for the bundled plugins.

For example, bundled plugin { userlister } shows up as "User List" in the macro browser.

Is there a property that can be set to override the macro's display name in the macro browser?

 

Referring to the plugin's macro module. Not the User macro.

https://developer.atlassian.com/server/framework/atlassian-sdk/create-a-confluence-hello-world-macro/

3 answers

1 accepted

0 votes
Answer accepted

Solved by adding i18n-name-key to the macro element in atlassian-plugin.xml and the appropriate value in the plugin's properties file.

<xhtml-macro name="helloworld" class="com.atlassian.tutorial.macro.helloworld" key='helloworld-macro' i18n-name-key="helloworld.macro.name">
0 votes

Hi @Sean Kim ,

welcome to the Atlassian community!

When you try to enter macro through { you need to add Macro Title and not Macro Name.

Hope this helps,

Fabio

0 votes
Florian Bonniec Community Leader Dec 14, 2022

Hi @Sean Kim 

It should display the 'Macro Title' no ?

{helloworld} is the macro 'Macro name' as documented here.

 

Regards

Sorry I should have mentioned that it's for a plugin not the user macro.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
7.19.2
TAGS

Atlassian Community Events