Answer the question
In order to leave comments, you need to log in
Added a property, but it's not there?
Hello. It was necessary to add a new property to the infoblock. Added.
I displayed it in
the form settings (higher for convenience)
. NAME is displayed, but my property is not.
Then he deduced the $arService array, from which each entry is taken - there are no properties there either.
Then he deduced the array $arResult , from which all records are taken. Also no.
I also printed print_r($arResult) at the very beginning of the result_modifier.php file.
There is a lot of data, but my property never "comes" anywhere.
Tell me please, what's wrong?
Answer the question
In order to leave comments, you need to log in
It is not entirely clear in which component all this is happening.
Whatever it was, most likely the GetList method is used, which needs to be passed a list of properties that need to be requested. Or in the component settings, or in the component.php file (I don’t remember exactly, the fourth or fifth parameter in the CIBlockElement::GetList method, $arSelect or something like that. This is an array of fields to select)
And what zaicomponent outputs data? Surely in the settings of the object or component in the public part, you can select the properties that will be displayed in the template. And your new one is simply not selected there.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question