Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sidebar to show for sub pages for each page?
#16
Yes, already tried that.

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>';
        }
    }    
}
<º)))><
Reply


Messages In This Thread
Sidebar to show for sub pages for each page? - by uitdecom - 2012-10-03, 16:07:45



Users browsing this thread: 1 Guest(s)