Documentation

GetProperty

string
CMain::GetProperty(
 string property_id,
 mixed default_value = false
)

The method returns the property value of the current page or section. If the page does not have the required property, the method searches for the one in parent sections recursively.). Non-static method.

Parameters

ParameterDescription Available from version.
property_id Property ID.
default_value Property value by default.
Optional. False by default; the property value is not defined.

See Also

Example of use

<?
$keywords = $APPLICATION->GetProperty("keywords");
if (strlen($keywords)>0) echo $keywords;
?>


© «Bitrix24», 2001-2022
Up