Answer the question
In order to leave comments, you need to log in
Bitrix. How to display DISPLAY_VALUE?
In general, I have a property in the element binding to the element, when I link a doctor to a clinic, this doctor is displayed on the clinic page, but how can I make the link to the clinic to which he is linked appear on the page of the doctor himself? print_r($arResult);
gives this
[EMPLOYER] => Array
(
[ID] => 74
[TIMESTAMP_X] => 2017-01-19 16:41:29
[IBLOCK_ID] => 13
[NAME] => Место работы
[ACTIVE] => Y
[SORT] => 500
[CODE] => EMPLOYER
[DEFAULT_VALUE] =>
[PROPERTY_TYPE] => E
[ROW_COUNT] => 1
[COL_COUNT] => 30
[LIST_TYPE] => L
[MULTIPLE] => N
[XML_ID] =>
[FILE_TYPE] =>
[MULTIPLE_CNT] => 5
[TMP_ID] =>
[LINK_IBLOCK_ID] => 13
[WITH_DESCRIPTION] => N
[SEARCHABLE] => N
[FILTRABLE] => N
[IS_REQUIRED] => N
[VERSION] => 1
[USER_TYPE] =>
[USER_TYPE_SETTINGS] =>
[HINT] =>
[PROPERTY_VALUE_ID] => 6427
[VALUE] => 199
[DESCRIPTION] =>
[VALUE_ENUM] =>
[VALUE_XML_ID] =>
[VALUE_SORT] =>
[~VALUE] => 199
[~DESCRIPTION] =>
[~NAME] => Место работы
[~DEFAULT_VALUE] =>
[DISPLAY_VALUE] =>
<a href="/clinics/chastnye/amikoestetik/">АмикоЭстетик</a>
[LINK_ELEMENT_VALUE] => Array
(
[199] => Array
(
[ID] => 199
[~ID] => 199
[IBLOCK_ID] => 13
[~IBLOCK_ID] => 13
[NAME] => АмикоЭстетик
[~NAME] => АмикоЭстетик
[DETAIL_PAGE_URL] => /clinics/chastnye/amikoestetik/
[~DETAIL_PAGE_URL] => /clinics/chastnye/amikoestetik/
[PREVIEW_PICTURE] =>
[~PREVIEW_PICTURE] =>
[DETAIL_PICTURE] =>
[~DETAIL_PICTURE] =>
[LANG_DIR] => /
[~LANG_DIR] => /
[CODE] => amikoestetik
[~CODE] => amikoestetik
[EXTERNAL_ID] => 199
[~EXTERNAL_ID] => 199
[IBLOCK_SECTION_ID] => 37
[~IBLOCK_SECTION_ID] => 37
[IBLOCK_TYPE_ID] => catalog
[~IBLOCK_TYPE_ID] => catalog
[IBLOCK_CODE] => clinics
[~IBLOCK_CODE] => clinics
[IBLOCK_EXTERNAL_ID] =>
[~IBLOCK_EXTERNAL_ID] =>
[LID] => s1
[~LID] => s1
)
)
)
Answer the question
In order to leave comments, you need to log in
Brought it out like this
but I don't think that's the correct answer, is it?
1. У вас большинство функций обернуты в само-вызываемые (self-invoking) выражения
Обычно это специально делается, чтоб снаружи к этой функции было сложнее достучаться. Вам придется либо разобраться зачем это сделано, и можно ли пересмотреть использование такого подхода, либо нагородить кучу костылей.
2. Скорее всего в процессе работы что-то идет не так, и в какой-то момент происходит попытка прочитать значение element.files[0]
у элемента, у которого вообще нет .files
. Проще всего посмотреть в отладчике, который встроен в DevTools браузера.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question