A
A
Alexander2019-03-23 11:27:02
1C-Bitrix
Alexander, 2019-03-23 11:27:02

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
5c95eb35d7a85473315877.png
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?
5c95ebb6c2a3c461461942.png
5c95ec9375545747416337.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Andrey, 2019-03-23
@PUNK_199

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)

A
Alexey Bespalov, 2019-03-23
@FreeArcher

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.

A
Anton, 2019-03-25
@anton99zel

The property must be enabled in the component settings,
then inserted into the template
If not a component, but a getlist, then before the output, you need to specify the property in the arraylect

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question