GetDirProperty
string CMain::GetDirProperty( string property_id, mixed path = false, mixed default_value = false )
The method returns the specified property of the current section (folder). Non-static method.
Parameters
Parameter | Description | Available from version |
---|---|---|
property_id | Property ID. | |
path | ath 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 parameter; false by default, which means the current folder. | |
default_value | Property value by default. Optional parameter; false by default, which means that property value is not specified. |
See Also
Example of use
<? $APPLICATION->GetDirProperty("keywords"); ?>
© «Bitrix24», 2001-2024