J
J
jakiro71201202021-05-04 11:17:47
1C-Bitrix
jakiro7120120, 2021-05-04 11:17:47

Bitrix how not to display the element you are in (remove the cyclic element)?

There is a GetList that displays all the elements:

$arFilter = array(
    'IBLOCK_ID' => 1,
    'ACTIVE' => 'Y',
);

// Получение вакансий
$elements = CIBlockElement::GetList(
    array('SORT' => 'ASC', 'ID' => 'DESC'),
    $arFilter
);

How to make the element in which the user is located not displayed? (remove the cyclic element)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya, 2021-05-04
@jakiro7120120

$arFilter['!=ID'] = $currentElementId;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question