2012-10-03, 16:07:45
Yes, already tried that.
Here's my full code:
Here's my full code:
Code:
function getChildPages($page){
$children=getChildren($page);
$pagesSorted = subval_sort($children, 'pubDate');
foreach ($pagesSorted as $subpage) {
if (returnPageField($subpage, 'private') != 'Y') {
$title=returnPageField($subpage,'title');
$url=returnPageField($subpage,'slug');
$md=returnPageField($subpage, 'metad');
echo '<h2 class="m700 red">'.$title.'</h2>';
echo '<p class="m500">'.$md.'</p>';
echo '<a href="index.php?id='.$url.'#m2" class="readon m700">» lees meer</a>';
// or use below if you have fancy urls on
//echo '<li><a href="/'.$url.'">'.$title.'</a></li>';
}
}
}
<º)))><