N
N
Nikolay2018-04-11 05:21:15
1C-Bitrix
Nikolay, 2018-04-11 05:21:15

Bitrix how to make sure that the content from the section is not duplicated on the element pages?

Hello.
There is a page "Rooms and prices" of the hotel rooms (domain/rooms-and-rates ) on it there are elements (Single - domain/rooms-and-rates/single/single-room-business-class/ , Double - domain/rooms- and-rates/double/double-room-business-class-/ etc) .
Trying to place text only on the page (domain/rooms-and-rates) using a condition

<?
if (CSite::InDir('/rooms-and-rates/index.php'))
{?> мой контент <?}
?>

But the content is still duplicated on internal item pages (Single - domain/rooms-and-rates/single/single-room-business-class/ , Double - domain/rooms-and-rates/double/double-room-business-class -/ etc)
What else can I try so that it is displayed only on one page "Rooms and rates" of hotel rooms (domain/rooms-and-rates )

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Ainur Valiev, 2018-04-11
@vaajnur

display the section description in the catalog.section component template

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question