GeneratePageControls

This function which should be included immediately after the body tag on all template pages creates a floating menu that allows a logged-in user to access editing and site controls while browsing the site.  This function should always be called using $CurrentPageID and $CurrentUserID.

Prototype

function GeneratePageControls($PageID, $UserID, $ShowSiteControls = true)

Parameters

  • $PageID - a page in the CMS database
  • $UserID - a user in the CMS database
  • $ShowSiteControls - when false, the user will only see controls related to editing the current page

Return Values

This function does not return any data.