E
E
Eugene M.2020-01-10 10:48:48
1C-Bitrix
Eugene M., 2020-01-10 10:48:48

How to display Bitrix property by key?

I get the manufacturer like this:

<? if ($arResult["DISPLAY_PROPERTIES"]['CML2_MANUFACTURER']){?>
<?echo $arResult['DISPLAY_PROPERTIES']['CML2_MANUFACTURER']['DISPLAY_VALUE'];?>
<?}?>

<?
$cabeus = "<img src='/upload/medialibrary/b58/246258832b251dc19d4e237b15836e26.jpg'>";
echo $cabeus;
?>

In this case, I get the value "Cabeus".
How to make if the value of Cabeus then display such and such an image, how to write it correctly?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question