K
K
Kirill Gorelov2020-07-30 09:48:54
1C-Bitrix
Kirill Gorelov, 2020-07-30 09:48:54

Directory structure on 1s Bitrix?

Hi guys.

The question is, how do you output the directory structure?
I initially did everything through a complex component. And everything seemed to work well.
But then they asked me to turn off some categories and as a result I had to make some changes.

Namely, in the directory section (on the server), create the same directory structure as in Bitrix. And in each section, I have included the output component of the current section and the menu file.
5f226d05e9845171940004.png

I don't understand how normal this is and how can I fix it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Romanov, 2020-07-30
@fibit

If I understand your task correctly, then it is enough to exclude unnecessary categories using a filter.
Try something like this:

<?
global $arFilter;
$arFilter = array(
  "!SECTION_ID" => array(*категория-1*, *категория-2*, ..)
);

$APPLICATION->IncludeComponent(
  "bitrix:catalog", 
  ".default", 
  array(
    ...
    "FILTER_NAME" => "arFilter",
    ...
  ),
  false
);
?>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question