Bitrix Site Manager

CMain::GetDirPropertyList

array
CMain::GetDirPropertyList(
 string path = false
)

The method GetDirPropertyList returns an array of the section properties, collected recursively up to the site root.

Parameters

ParameterDescription
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.

Return Values

Array of the section properties.

See Also

Example



<?
$props = $APPLICATION->GetDirPropertyList();
foreach($props as $key=>$val)
	echo '<meta name="'.$key.'" content="'.htmlspecialchars($val).'">';
?>