D
D
dennkon2020-01-10 08:28:29
1C-Bitrix
dennkon, 2020-01-10 08:28:29

How to change the template in Bitrix?

I have 2 templates. The main template should work everywhere, and another template for one page. I have set a condition for another template to apply to /main-landing/index.php, but it doesn't apply and it still works the same as the main template. Tell me, please, what is the problem.
5e180b0d0ea37727025789.jpeg

<?php require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php");?>
<p>CONTENT</p>
<?php require($_SERVER["DOCUMENT_ROOT"]."/bitrix/footer.php");?>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
mills, 2020-01-10
@mills

Is the path to the file correct? Maybe try using a php expression and write a condition, although it should work that way.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question