S
S
Skrolea2017-04-19 14:36:25
1C-Bitrix
Skrolea, 2017-04-19 14:36:25

What is an include area?

Is it possible to include a separate file only for the main page, but include it in the header? Those. for the whole template, but to display it only on the main one?
In order not to make several templates - for the main and internal pages

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Goncharov, 2017-04-19
@Skrolea

<? if(CSite::InDir('/index.php')) :?>
  сюда включаемая область
<? endif; ?>

---
edited

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question