CMain::ShowMeta( string property_id, string meta_name = false )
The method ShowMeta emits the page property as the META tag.
If the page does not have the required property, the method searches for the one in parent sections recursively.
This method utilizes the delay function technology allowing to specify meta tags (using CMain::SetPageProperty or CMain::SetDirProperty) after the site prologue is emitted.
Parameter | Description |
---|---|
property_id | Identifier of the page or section property whose value will be rendered in the content attribute of the <meta> tag:
<meta content="value" ...>
|
meta_name | Contents of the name attribute of the <meta> tag:
<meta name="meta_name" ...>
Optional; by default, the property_id name is used. |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?=LANG_CHARSET?>"> <META NAME="ROBOTS" content="ALL"> <?$APPLICATION->ShowMeta("keywords")?> <?$APPLICATION->ShowMeta("description")?> <title><?$APPLICATION->ShowTitle()?></title> <?$APPLICATION->ShowCSS();?> </head> <body link="#525252" alink="#F1555A" vlink="#939393" text="#000000"> ...
© 2001-2005 Bitrix | Bitrix Site Manager - Content Management & Portal Solutions |