GenerateMenuToParentUL
Outputs a menu showing a given page
within the site structure using UL tags substituting a given parent
page as the menu's root instead of the absolute site root.
Prototype
function GenerateMenuToParentUL($PageID, $UserID, $PageParentID, $ShowSiblings = false, $depth = 10000, $ShowSelf = true)
Parameters
- $PageID - a page in the CMS database (usually $CurrentPageID)
- $UserID - a user in the CMS database (usually $CurrentUserID)
- $PageParentID - the page in the CMS that should serve as the menu root in lieu of the absolute site root
- $ShowSiblings - when false, the root level of the menu will show only the page indicated in $PageParentID. When true, the root level of the menu will be comprised of the page indicated in $PageParentID and all of its siblings.
- $depth - the maximum number of levels in the menu
- $ShowSelf - when true, the root level of the menu will be
created in accrodance with the settings from $ShowSiblings. When
false, $ShowSiblings will be ignored and the root level of the menu
will be comprised of the children of $PageParentID
Return Values
This function does not return any data.