S
S
Shrapovyan2018-05-24 12:27:23
1C-Bitrix
Shrapovyan, 2018-05-24 12:27:23

How to not display section description on pagination pages?

Hello!
The section description is output by the bitrix:catalog component
Here is the code:
<?if($posSectionDescr=="BOTH"):?>
<?if($arSection[$section_pos_bottom]):?>
<?=$arSection[$section_pos_bottom]?>
<?endif;?>
<?elseif($posSectionDescr=="BOTTOM"):?>
<?if($arSection[$arParams["SECTION_PREVIEW_PROPERTY"]]):?>
<?=$arSection[$arParams[" SECTION_PREVIEW_PROPERTY"]]?>
<?elseif ($arSection["DESCRIPTION"]):?>
<?=$arSection['DESCRIPTION']?>
<?elseif($arSection["UF_SECTION_DESCR"]):?>
<? =$arSection["UF_SECTION_DESCR"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Skibin, 2018-05-24
@megafax

The simplest option is a crutch, check for the presence of a pagination variable and do not display if it exists

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question