Answer the question
In order to leave comments, you need to log in
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.
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
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 questionAsk a Question
731 491 924 answers to any question