I would like to make a user makro that allows me to set the options of a dropdown menu as all the pages in a space with the label "inventory" (for example).
This is my code to set the options to the parents of the labels:
## @param Option:title=Label|type=string|required=true|desc=Pages that contain this label should be displayed.
#foreach ($paramOption)
#if ($label.name == $paramOption)
#set ($options = contentLink2($Label.name)
#end
#end
Doesn't work however...
Can anyone help please?