W
W
Web_makaka20202021-02-09 14:22:07
1C-Bitrix
Web_makaka2020, 2021-02-09 14:22:07

How to remove content that is not related to this component from the detailed page of the news?

Hello, for example, there is a page /news/index.php
structure:
<? news component ?>
some other blocks

When going to the detailed news page, for some reason other blocks are displayed, which should be displayed only in /news/index.php, how can I remove them from there? because they shouldn't be there

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
Jupiter Max, 2021-02-09
@vardoLP

well, maybe they need to be dragged into the component_epilog of the news.list template

A
Anton, 2021-02-09
@anton99zel

<? if ($APPLICATION->GetCurPage() == "/news/index.php"){?>какие-то другие блоки<?}?>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question