Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save flayder/4111c109be9a74130348 to your computer and use it in GitHub Desktop.
Save flayder/4111c109be9a74130348 to your computer and use it in GitHub Desktop.
CMain::GetProperty - возвращает свойство страницы или свойство раздела.
<?
$keywords = $APPLICATION->GetProperty("keywords");
if (strlen($keywords)>0) echo $keywords;
?>
CMain::GetPageProperty - возвращает свойство страницы.
<?
$keywords = $APPLICATION->GetPageProperty("keywords");
if (strlen($keywords)>0) echo $keywords;
?>
CMain::GetPagePropertyList - возвращает массив всех свойств страницы.
<?
$arProp = $APPLICATION->GetPagePropertyList();
foreach($arProp as $key=>$value)
echo '';
?>
CMain::GetDirProperty - возвращает свойство раздела.
<?
$keywords = $APPLICATION->GetDirProperty("keywords");
if (strlen($keywords)>0) echo $keywords;
?>
CMain::GetDirPropertyList - возвращает массив свойств раздела, собранных рекурсивно до корня сайта.
<?
$arProp = $APPLICATION->GetDirPropertyList();
foreach($arProp as $key=>$value)
echo '';
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment