Bitrix Site Manager

CMain::GetDirProperty

string
CMain::GetDirProperty(
 string property_id,
 mixed path = false,
 mixed default_value = false
)

The method GetDirProperty returns the specified property of the current section (folder).

Parameters

ParameterDescription
property_id The property ID whose value is to be returned.
path Path to the folder. In case of multiple sites, if the DOCUMENT_ROOT (specified in the field Path to the web server root folder in the site settings, System settings -> Sites -> the site) of the site of interest is different, pass an array in the following format:
array("Site ID", "Path")
Optional. False by default, which means the current folder.
default_value Default value of the property.
Optional. False by default, which means that the property has no default value.

See Also

Example



<?
$APPLICATION->GetDirProperty("keywords");
?>