In the Bitrix Site Manager, both section and page properties are supported.
The section properties are stored in the file .section.php of the correspondent folder (site section).
The page properties are specified in the page body, or between the service and visual sections of the prologue.
The following functions are used to handle properties:
The page and section properties are used in meta tags. The system exposes the following functions to handle meta tags:
<? $APPLICATION->SetPageProperty("keywords", "web, development, programming"); ?>
<? $APPLICATION->SetDirProperty("keywords", "design, web, site"); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title><?$APPLICATION->ShowProperty("page_title")?></title> </head> <body link="#525252" alink="#F1555A" vlink="#939393" text="#000000"> ...
<? $keywords = $APPLICATION->GetProperty("keywords"); if (strlen($keywords)>0) echo $keywords; ?>
<? $keywords = $APPLICATION->GetPageProperty("keywords"); if (strlen($keywords)>0) echo $keywords; ?>
<? $arProp = $APPLICATION->GetPagePropertyList(); foreach($arProp as $key=>$value) echo '<meta name="'.$key.'" content="'.htmlspecialchars($value).'">'; ?>
<? $keywords = $APPLICATION->GetDirProperty("keywords"); if (strlen($keywords)>0) echo $keywords; ?>
<? $arProp = $APPLICATION->GetDirPropertyList(); foreach($arProp as $key=>$value) echo '<meta name="'.$key.'" content="'.htmlspecialchars($value).'">'; ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <?$APPLICATION->ShowMeta("keywords_prop", "keywords")?> <?$APPLICATION->ShowMeta("description_prop", "description")?> </head> <body link="#525252" alink="#F1555A" vlink="#939393" text="#000000"> ...
<? $meta_keywords = $APPLICATION->GetMeta("keywords_prop", "keywords"); if (strlen($meta_keywords)>0) echo $meta_keywords; ?>
© 2001-2005 Bitrix | Bitrix Site Manager - Content Management & Portal Solutions |