Documentation

GetByID

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

Method returns template by ID (relative path). Static method.

Parameters

ParameterDescriptionAvailable from version
pathRelative path to template catalog.

Returned value

Returns array generated in the file description.php, with added "path" element equal to relative path to template catalog.

Example of file for description.php

<?
$arTemplate =
	Array(
	"NAME"=>"New digest",
	"DESCRIPTION"=>"Template for generating new digest."
	);
?>


© «Bitrix24», 2001-2024
Up