S
S
sasha2019-11-21 17:57:34
1C-Bitrix
sasha, 2019-11-21 17:57:34

How to change the template of one page in Bitrix?

Hello... the essence of the question is this... there are several template pages... they all have the same template, but with different content.. and on one of these template pages you need to add a new block and component... then there are several directories and only one of them needs to be changed.. how to do it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Valentin Simerenko, 2019-11-21
@volovetckoliya

In the editor, add what you need.

A
Anton, 2019-11-22
@anton99zel

/bitrix/templates/TEMPLATE NAME/components/bitrix/....
Look for your template along this path, most likely in the catalog.section folder, but it’s different for everyone, who created how))
Next, you need to find the template file in the component template. php
put in it

if (CSite::InDir('/papka/')){
        ?>ваш контент<?
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question