Greetings,
In my user macro I am trying to list all pages through my confluence for defined label and then manipulate them (for example, sort by name).
I was searching through pageManager, but was not able to find what method can do it. Any ideas?
Thanks!
Here is an user macro which shows 10 pages of the label "test".
You get an list of ContentEntityObjects. You can try to sort the list.
#set( $label = $action.getLabelManager())
#set( $pageList = $label.getContentForLabel(0,10,$label.getLabel("test")).getList())
<table>
<tr>
<th>Name</th>
<th>Bearbeiter</th>
</tr>
#foreach( $page in $pageList )
<tr>
<td>$page.getDisplayTitle()</td>
<td>$page.getLastModifierName()</td>
</tr>
#end
</table>
Hope this helps you
Regards, Dominic
Thanks @Dominic Lagger !
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.