Answer the question
In order to leave comments, you need to log in
How to get the number of elements in a Bitrix section without subsections?
Hello!
The standard template has this way of counting elements
$arItemFilter = CAllCorp::GetCurrentSectionElementFilter($arResult["VARIABLES"], $arParams);
$itemsCnt = CCache::CIblockElement_GetList(array("CACHE" => array("TAG" => CCache::GetIBlockCacheTag($arParams["IBLOCK_ID"]))), $arItemFilter, array());
CIBlockSection::GetSectionElementsCount($SectionID);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question