N
N
nikita_falcon2020-09-27 17:40:21
1C-Bitrix
nikita_falcon, 2020-09-27 17:40:21

How to correctly pass to filter the output of sections by the value of a custom property?

It is necessary to transfer filtering by a custom property.

<?
foreach($arSub as $arItem) {
$SubsIds[$arItem['ID']] = $arItem['ID']; ? >
< li class = "submenu__item" > < a data - text = "<?=$arItem['NAME']?>"
                                  class = "submenu__link"
                                  href = "<?=$arItem['SECTION_PAGE_URL']?>" > <?=$arItem['NAME']?> < /a></li >
  < ?
 } ? >

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikita Mikhailov, 2020-09-27
@Psixodelik

While trying this

This does nothing to solve the problem. Try to add global $arFilterand check if this filter comes to the template. Check parameterUSE_FILTER

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question