U
U
uprocket2017-04-05 11:09:09
1C-Bitrix
uprocket, 2017-04-05 11:09:09

Can I make one block in different sections of the site on Bitrix?

In Bitrix, there is editing of the included area and the file with the code of the included area falls exactly into the directory of the site in which I add this area.
brCEhQshI_Y.jpg
If I need the same area in different sections of the site and I do not want to produce copies of files and then change them in many places. Can this be implemented somehow?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
I'm Yoda, 2017-04-05
@Anadi

You can add a condition before the included area.

<? if ($APPLICATION->GetCurDir() == '/') { ?>
код включаемой области...
<?}?>

In this case, it will only show on the main page of the site.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question