A
A
Alexander Ivanov2016-08-16 17:13:42
PHP
Alexander Ivanov, 2016-08-16 17:13:42

How to display a list of infoblock element properties?

https://camouf.ru/blog-note/421/
In the article, the author shows how to display various selected properties of infoblocks.

<select> 
     <option>Выберите</option> 
     <?$i=0;foreach($arResult["PROPERTIES"]["СВОЙСТВО"]["VALUE"] as $arRazmer):?> 
 <option><?=$arRazmer?></option> 
<?endforeach;?> 
</select>

This method will work on active properties.
But how can I be if on the detailed one, I want to display all the properties with the selected ones.
["PROPERTIES"]["PROPERTIES"]["VALUE_ENUM"]
there is such a thing but some kind of not obvious CIBlockProperty::GetByID

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg Mifle, 2016-08-16
@OlegMifle

The $arResult["PROPERTIES"] array just contains all the properties. But $arResult["DISPLAY_PROPERTIES"] is only selected in the component settings.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question