Answer the question
In order to leave comments, you need to log in
How to get the id value in the list infoblock type?
Good afternoon, there is an infoblock type a list with a multiple value,
I output it like this
<DIV>
<?php if ($arItem["PROPERTIES"]["SERVICES"]["VALUE"]) {?>
<strong>Сервис:</strong>
<? if(is_array($arItem["PROPERTIES"]["SERVICES"]["VALUE"]))
echo implode(" / ", $arItem["PROPERTIES"]["SERVICES"]["VALUE"]);
else
echo $arItem["PROPERTIES"]["SERVICES"]["VALUE"];?><br />
<?php }
else { ?>
<?php }?>
</DIV>
Answer the question
In order to leave comments, you need to log in
print var_dump
($arItem["PROPERTIES"]["SERVICES"])
and you should see id/xmlid in this array
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question