Bitrix Site Manager

CMain::ShowProperty

CMain::ShowProperty(
 string property_id,
 mixed default_value = false
)

The method ShowProperty displays page properties, with respect to the section properties.

This method utilizes the delay function technology allowing to define page properties (e.g. inside a component) after the site prologue is emitted.

Parameters

ParameterDescription
property_id Property identifier.
default_value Default value of the property.
Optional; the default value is false which means no default value is assigned.

See Also

Example



<!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->ShowProperty("page_title")?></title>
<?$APPLICATION->ShowCSS();?>
</head>
<body link="#525252" alink="#F1555A" vlink="#939393" text="#000000">
...