CMain::ShowTitle( string property_name = "title", bool strip_tags = true )
The method ShowTitle displays the page title.
This method utilizes the delay function technology allowing to define page title (e.g. inside a component) after the site prologue is emitted.
Parameter | Description |
---|---|
property_name | Identifier of the page property whose value is to be printed as the title (effective if the property had been previously set by CMain::SetPageProperty). Optional; title by default. |
strip_tags | If true, deletes all HTML tags from the title. Optional; true by default. |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?= LANG_CHARSET;?>"> <META NAME="ROBOTS" content="ALL"> <?$APPLICATION->ShowMeta("keywords")?> <?$APPLICATION->ShowMeta("description")?> <title><?$APPLICATION->ShowTitle()?></title> <?$APPLICATION->ShowCSS();?> </head> <body link="#525252" alink="#F1555A" vlink="#939393" text="#000000"> ...
© 2001-2005 Bitrix | Bitrix Site Manager - Content Management & Portal Solutions |