Hello,
I would like to know if it's possible to use "Content by label" with a variable like picture below instead the name of the label (label1)
image2015-9-18 14:22:18.png
I tried to modify the macro "Content by label" like this:
## This is an example macro
## @param Name:title=Author|type=string|required=false|desc=Author name
## @param Title:title=Title|type=string|required=true|desc=Title of labelled page
## @param ShowLabel:title=Show label|type=string|required=true|desc=Show label or not (true, false)
## @param Label:title=Label|type=string|required=true|desc=Label name
#set ( $spaceKey = $space.getKey() )
<ac:structured-macro ac:name="contentbylabel">
<ac:parameter ac:name="spaces"/>
<ac:parameter ac:name="author">$paramName</ac:parameter>
<ac:parameter ac:name="title">$paramTitle</ac:parameter>
<ac:parameter ac:name="showLabels">$paramShowLabel</ac:parameter>
<ac:parameter ac:name="reverse">true</ac:parameter>
<ac:parameter ac:name="sort">creation</ac:parameter>
<ac:parameter ac:name="max">10</ac:parameter>
<ac:parameter ac:name="excerpt">true</ac:parameter>
<ac:parameter ac:name="labels">$paramVar1</ac:parameter>
<ac:parameter ac:name="showSpace">false</ac:parameter>
<ac:parameter ac:name="type">page</ac:parameter>
<ac:parameter ac:name="operator">AND</ac:parameter>
</ac:structured-macro>
But I can't to read the content of the page.
I tried this : $content.MyVariable instead $paramVar1...
Any ideas?
Thank you!