Access Keys:
Skip to content (Access Key - 0)
Home (Access Key - 1)
All spaces... (Access Key - 3)
Log in (Access Key - 5)
Sign up (Access Key - 6)
Development

Mambo Manual is part of the documentation project for the Mambo open source content management system

Toggle Sidebar

setPageTitle


This function alters the page title using the input parameter. Use it whenever you need to change the page title from within a component or module.
Note:
Appends to $mosConfig_sitename in version <=4.5.4
Prepends to $mosConfig_sitename in version >= 4.6.0

Usage

*void setPageTitle(string)*type php class methodclass mosMainFrame

Example

global $mainframe;
$title = "My Custom Component";
$mainframe->setPageTitle($title);

Files

  • Definition: /includes/mambo.php (Mambo version <=4.5.4)
  • Definition: /includes/core.classes.php (Mambo version >=4.6.0)
Toggle Sidebar
Space Navigation
Added by Lynne Pope on 28 Dec, 2007 10:20, last edited by Lynne Pope on 28 Dec, 2007 10:20

Adaptavist Theme Builder Powered by Atlassian Confluence
Free theme builder license