2018-07-25, 01:20:59
Insert this in your sidebar template or component:
Code:
<?php
$subpages = getChildren(return_page_slug());
if (count($subpages) > 0) {
?>
<h3>Subpages:</h3>
<ul>
<?php
foreach ($subpages as $subpage)
if (returnPageField($subpage, 'private') != 'Y')
echo '<li><a href="',find_url($subpage, returnPageField($subpage, 'parent')),'">', returnPageField($subpage, 'title'),'</a></li>',"\n";
?>
</ul>
<?php } ?>