GetParentage

Fetches a list of a given page's parents.  This function is used in generating menus and breadcrumbs.

Prototype

function GetParentage($PageID)

Parameters

  • $PageID - a page in the CMS database

Return Values

Returns an array of integers representing the PageIDs of the page and each parent.  The array starts with the given page and ends with the site's homepage.