Hi all,
I want to list all direct child pages of a page. I tried to do this by using the “Subpages” template but as far as I see there are no paramters for “adjusting” the displayed subpage levels.
You could also use the {{#subpages}} parser function. It allows the parameter “kidsonly”. It’s not included as a content droplet, so it needs to go in a template or in the source of the page.
If you automatically want to display the subpages on all pages in a namespace, you can place the function in the header or footer area of the page content (functionality is provided by bundled extension HeaderFooter):
Hi Otti,
You are still using the template {{Subpages}} which is inserted by the content droplet for Subpages. There, the parameter kidsonly won’t apply.
Simply exchange it in the source of the page with the function {{#subpages:|kidsonly=yes}}. It’s a different mechanism, provided by a different extension.