Answer the question
In order to leave comments, you need to log in
Bitrix. How to display DETAIL_PAGE_URL?
through print_r output the contents
[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
)
)
)
<?print_r($arResult["DISPLAY_PROPERTIES"]["EMPLOYER"]["DISPLAY_VALUE"]);?>
<?print_r($arResult["DISPLAY_PROPERTIES"]["LINK_ELEMENT_VALUE"]["DETAIL_PAGE_URL"]);?>
Answer the question
In order to leave comments, you need to log in
so in display_value you display a link to the element, but in general, when displaying <?print_r($arResult["DISPLAY_PROPERTIES"]["LINK_ELEMENT_VALUE"]["DETAIL_PAGE_URL"]);?> you skip take.ms/wqXZc
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question