I’m trying to change the name of ‘helloworld’ macro . I’ve changed name field for this xml tag from "<xhtml-macro name=“helloworld” to "<xhtml-macro name=“ABCmacro” in atlassian-plugin.xml file. On confluence , I’m able to search macro using ABCmacro name but on selecting it , it is giving error saying "unknown macro: ‘abcmacro’ ".
I’ve customized macro editor window using below code snippet. So i have tried by changing the name in below script as well from helloworld to ‘abcmacro’.
The name attribute of the <xhtml-macro /> is case-sensitive and only supports lowercase. If you change the value of <xhtml-macro name=“ABCmacro in atlassian-plugin.xml to <xhtml-macro name=“abcmacro it will work.
If you want the label of the macro to have uppercase or a more descriptive value, you can do this using a properties file. Add the following to your atlassian-plugin.xml:
@remie
Thanks for the answer.
What is the value of Appkey ? Do you mean appkey is the value of key tag in below xhtml macro config i.e. helloworld-macro?
I tried to configure the name of macro but while installing the macro on confluence I’m getting error as “Invalid anti-XSRF token provided. The valid token should be retrieved transparently, but you may want to perform a hard refresh in your browser and try again before creating a support issue.” .