F
F
FlexStat2019-01-23 17:11:15
1C-Bitrix
FlexStat, 2019-01-23 17:11:15

How to withdraw additional section property to catalog page?

I'm trying to do this:

<? 
$db_list = CIBlockSection::GetList(Array($by=>$order), $arFilter = Array("IBLOCK_ID"=>"12", "ID"=>$arResult["ID"]), true,$arSelect=Array("UF_OPISANIE")); 
while($ar_result = $db_list->GetNext()):   
?> 
<?=$ar_result["UF_OPISANIE"] ?> 
<?endwhile?>

but in this case the only completed Add. section property, for different sections where this property is not filled.
That is, I need the section properties to be displayed on the section page only if it has been filled.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya, 2019-01-23
@jasper-blondin

$db_list = CIBlockSection::GetList(Array($by=>$order), $arFilter = Array("IBLOCK_ID"=>"12", "ID"=>$arResult["ID"]), true,$arSelect=Array("UF_OPISANIE"));

You either assign values ​​or pass parameters. Only one thing.
$db_list = CIBlockSection::GetList(Array("SORT"=>"­­ASC"), Array("IBLOCK_ID"=>"12", "ID"=>$arResult["ID"]), false, Array("UF_OPISANIE"));

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question