Documentation

GetTitle

string
CMain::GetTitle(
 mixed property_name = false,
 bool strip_tags = false
)

The method returns the page title. Non-static method.

Parameters

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.
ParameterDescription Available from version
property_name If false: title page is returned, defined via the SetTitle method.
Otherwise, the page property ID is passed in the parameter, which value will be printed as the title (effective, for example, if this value is specified via the CMain::SetPageProperty method).
Optional parameter; false by default.
strip_tags If true, then all HTML tag will be deleted from the page title.
Optional parameter; false by default.

See Also



© «Bitrix24», 2001-2024