I
I
IvanRobot2016-04-18 13:48:43
PHP
IvanRobot, 2016-04-18 13:48:43

How to replace the path to the template in bitrix?

<?
require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/header.php");
$APPLICATION->SetPageProperty("title", "Каталог");
$APPLICATION->SetTitle("Каталог");
?>

Default:
/www /bitrix/templates/header.php
How to do it?
/www/ local/ templates/ dir_name/ header.php

Answer the question

In order to leave comments, you need to log in

3 answer(s)
O
Oleg Mifle, 2016-04-18
@IvanRobot

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.

M
Misha Vasilyev, 2016-04-18
@vasilyev

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...

M
Mikhail Zakharov, 2016-04-18
@werwolf87

<?=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 question

Ask a Question

731 491 924 answers to any question