O
O
olegmorales132018-03-09 14:28:36
1C-Bitrix
olegmorales13, 2018-03-09 14:28:36

How can I disable the display of categories on the main page?

There is a website - standart-opt.ru
There are categories on the main page:
5aa26f2b5cb67321518117.png
They are related to the properties of goods. But how to disable the display of two of the three properties on the main page?
Here is the output code:
5aa26f5ab58ff718266671.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gladyshev, 2018-03-10
@Resident234

$arResult["TABS"] - most likely generated in result_modifier.php if the component is not custom. If the property does not need to be disabled by itself, but you do not want it to be displayed, then find in the code section where $arResult["TABS"] is formed and add a condition by which this element will not be included in the array, for example, if the property code == [property code "sale"].
You can make it a little more universal: put the word "hidden" in some unused property field, for example HINT, and filter out all properties for which this field will have such a value.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question