I'm attempting to write a user macro that creates a table of children pages limited by a label parameter. Here's the outline that I have so far:
## @param Label:title=Label|type=string|desc=Label|required=true
<table>
#foreach (CHID OF THE CURRENT PAGE)
#if ($child.label == $parmlabel)
<tr>
<td>
$child.TITLE
</td>
<td>
$child.AUTHOR
</td>
<td>
$child.DATEMODIFIED
</td>
</tr>
#end
#end
</table>
The stuff in caps are just placeholders, as I can't find any documentation on confluence methods that might help me loop through each child of the current page. Additionally, I'm not sure of the exact terminology to access the information for those children. I'm new to coding, so I'm excited to kind of figure it out myself... Could someone point me in the right direction?
Thanks,
Alana