General Introduction
Features
Settings
Email system
Date and Time
URL rewrite
Special constants
Special variables
Complex logic in filter
AddBufferContent
AddChainItem
AddHeadScript
AddHeadString
AddPanelButton
AddViewContent
AuthForm
CaptchaCheckCode
CaptchaGetCode
ConvertCharset
ConvertCharsetArray
CopyFileAccessPermission
GetCSS
GetCurDir
GetCurPage
GetCurPageParam
GetCurUri
GetDirProperty
GetDirPropertyList
GetException
GetFileAccessPermission
GetFileContent
GetFileRecursive
GetMenu
GetMenuHtml
GetMenuHtmlEx
GetMeta
GetNavChain
GetPageProperty
GetPagePropertyList
GetPanel
GetProperty
GetPublicShowMode
GetShowIncludeAreas
GetSiteByDir
GetTemplatePath
GetTitle
GetUserRight
GetUserRoles
IncludeAdminFile
IncludeComponent
IncludeFile
IncludeString
IsHTTPS
MoveJSToBody
RemoveFileAccessPermission
ResetException
SaveFileContent
SetAdditionalCSS
SetCurPage
SetDirProperty
SetFileAccessPermission
SetPageProperty
SetTemplateCSS
SetTitle
ShowBanner
ShowBodyScripts
ShowCSS
ShowHead
ShowHeadScripts
ShowHeadStrings
ShowMeta
ShowNavChain
ShowPanel
ShowProperty
ShowSpreadCookieHTML
ShowTitle
ShowViewContent
ThrowException
get_cookie
set_cookie
GetProperty
string CMain::GetProperty( string property_id, mixed default_value = false )
The method returns the property value of the current page or section. If the page does not have the required property, the method searches for the one in parent sections recursively.). Non-static method.
Parameters
Parameter | Description | Available from version. |
---|---|---|
property_id | Property ID. | |
default_value | Property value by default. Optional. False by default; the property value is not defined. |
See Also
- CMain::ShowProperty
- CMain::GetPageProperty
- CMain::GetDirProperty
- CMain::GetPagePropertyList
- CMain::GetDirPropertyList
- CMain::SetPageProperty
- CMain::SetDirProperty
Example of use
<? $keywords = $APPLICATION->GetProperty("keywords"); if (strlen($keywords)>0) echo $keywords; ?>
© «Bitrix24», 2001-2024
Up