Bitrix Site Manager

CPostingTemplate::GetByID

CPostingTemplate::GetByID(
    string path = ""
);

The method GetByID returns a template by its ID (which is the relative path).

Parameters

ParameterDescription
pathRelative path to the template folder.

Return Values

Returns an array from the file description.php. In addition, the array contains a key path set to the relative path to the template folder.

Example

The following is an example of description.php.


<?
$arTemplate =
    Array(
    "NAME"=>"News digest",
    "DESCRIPTION"=>"News digest template."
    );
?>