Answer the question
In order to leave comments, you need to log in
How to replace the path to the template in bitrix?
<?
require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/header.php");
$APPLICATION->SetPageProperty("title", "Каталог");
$APPLICATION->SetTitle("Каталог");
?>
Answer the question
In order to leave comments, you need to log in
If you place the template in the local folder, then Bitrix will pick it up by regular means, no manipulations with the paths are needed.
If you need to connect some other template in one place, then you need to specify in the site settings that another template should be connected for this place. For example, for a path or a specific constant, whatever.
https://dev.1c-bitrix.ru/learning/course/?COURSE_I...
<?=SITE_TEMPLATE_PATH;?>
Displays the full path to the template. Bitrix special constants https://dev.1c-bitrix.ru/api_help/main/general/con...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question