mgd_list_pages

(Midgard 1.4.2 'Bifrost')

mgd_list_pages -- List page records

Description

object mgd_list_pages (int id)

Minimum version: Midgard 1.2.5 (Mad King)

Lists the page records that have their up field set to id.

Returns an object traversable by calling fetch() if successful. Returns FALSE on failure.


<?php
 $id = 107;
 $list = mgd_list_pages( $id );
 if($list) {
   while( $list->fetch() ) {
     echo $list->name . " by " . $list->authorname . "<br>\n";
   }
 }
?>