mgd_list_page_elements

(Midgard 1.4.2 'Bifrost')

mgd_list_page_elements -- List page elements

Description

object mgd_list_page_elements (int id)

Minimum version: Midgard 1.2.5 (Mad King)

Lists the page elements that have their page field set to id.

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


<?php
 $page = 123;
 $list = mgd_list_page_elements( $id );
 if(! $list ) {
   echo "Can not list page elements.<br>";
 } else {
   while( $list->fetch() ) {
    echo $list->name . "<br>\n";
   }
 }
?>