K
K
ksenia_strakhova2019-07-15 15:00:02
1C-Bitrix
ksenia_strakhova, 2019-07-15 15:00:02

How to display the description of the section of the Bitrix catalog?

The site doesn't display a description of the catalog sections, the standard example that everyone recommends $arResult["DESCRIPTION"] doesn't work.
When checking with <? echo ""; print_r($arResult); echo "";?> produces the following code:

Array
(
    [FOLDER] => /uslugi/
    [URL_TEMPLATES] => Array
        (
            [sections] => 
            [section] => #SECTION_CODE#/
            [element] => #SECTION_CODE#/#ELEMENT_CODE#/
            [compare] => compare.php?action=#ACTION_CODE#
            [smart_filter] => #SECTION_ID#/filter/#SMART_FILTER_PATH#/apply/
        )

    [VARIABLES] => Array
        (
            [SECTION_CODE] => vyzov-ritualnogo-agenta
        )

    [ALIASES] => Array
        (
            [compare] => Array
                (
                    [ACTION_CODE] => action
                )

        )

)

I edit in /templates/name/components/bitrix/catalog/uslugi/section.php

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Emelyanov, 2019-07-15
@ksenia_strakhova

In this file

/templates/name/components/bitrix/catalog/uslugi/section.php
there is no information about the section yet, only the catalog.smart.filter and bitrix:catalog.section components (and other offal) are connected here.
You need to edit the template of the bitrix:catalog.section component, it contains a description of the section.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question