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";
}
}
?>
|