mgd_get_page_by_name

(Midgard 1.4.2 'Bifrost')

mgd_get_page_by_name -- Get a page record by its name

Description

object mgd_get_page_by_name (int root, string name)

Minimum version: Midgard 1.4 (Bifrost)

Gets information about the page record with name name and parent page root.

Returns an object describing the record if successful. Returns FALSE on failure.


<?php
 $name = "about";
 $root = 17;
 $page = mgd_get_page_by_name( $root, $name );
 if($page) {
   echo $page->name;
 }