Hello, I'm testing this new version and i'm having some problems. The user macros are not working anymore after the upgrade, i have this message: "There are user macros without any metadata configured in their template. They have been highlighted below."
Also, all the plugins that i have, it seems that i don't have them anymore.
Help, please... Thanks in advance.
Hello, this is what i'm trying to use:
## General variables needed for this user macro - do not change
#set ($remoteUser = $action.remoteUser)
#set ($staticResourcePrefix = $webResourceManager.getStaticResourcePrefix())
#set ($categCounter = 0)
##==============================================================================
## MODIFY - CUSTOMIZE TO YOUR NEEDS (only 2 variables)
## Enter category names, example: ["Categ 1", "Categ 2"]
#set ( $categoryNames = ["Public", "AESS Group", "Project", "Archive"] )
#*
Enter spacekeys for each category
-> the number of entries must be the same as the number of categories specified in the var $categoryNames
-> the keys of the map must be named the same as the category names in the $categoryNames variable
*#
#set ( $spaceCategories = {} )
$spaceCategories.put("Public", ["SPACE_KEY"])
$spaceCategories.put("AESS Group", ["SPACE_KEY"])
$spaceCategories.put("Project", ["SPACE_KEY"])
$spaceCategories.put("Archive", ["SPACE_KEY"])
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The meta data for user macros is that stuff at the top of the macro in comments. Without the metadata, Confluence 4 does not know how to display the macro parameters in the macro browser
The example macro below has 2 parameters, one of which is optional.
## Macro title: My Macro
## Macro has a body: N
## Body processing: Selected body processing option
## Output: Selected output option
##
## Developed by: My Name
## Date created: dd/mm/yyyy
## Installed by: My Name
## This is an example macro
## @param Name:title=Name|type=string|required=true|desc=Your name
## @param Colour:title=Favourite Colour|type=enum|enumValues=red,green,blue|default=red|desc=Choose your favourite colour
Hello, <font color="$paramColour">$paramName</font>!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
BTW: Don't use the font tag :(
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello, thanks for your help but it is not working. I've added those coments at the top of the macro and it's still showing the same message. What i'm doing wrong?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.