V
V
viktorulyushev2017-01-20 10:50:36
1C-Bitrix
viktorulyushev, 2017-01-20 10:50:36

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] =&gt; Array
                        (
                            [199] =&gt; Array
                                (
                                    [ID] =&gt; 199
                                    [~ID] =&gt; 199
                                    [IBLOCK_ID] =&gt; 13
                                    [~IBLOCK_ID] =&gt; 13
                                    [NAME] =&gt; АмикоЭстетик
                                    [~NAME] =&gt; АмикоЭстетик
                                    [DETAIL_PAGE_URL] =&gt; /clinics/chastnye/amikoestetik/
                                    [~DETAIL_PAGE_URL] =&gt; /clinics/chastnye/amikoestetik/
                                    [PREVIEW_PICTURE] =&gt; 
                                    [~PREVIEW_PICTURE] =&gt; 
                                    [DETAIL_PICTURE] =&gt; 
                                    [~DETAIL_PICTURE] =&gt; 
                                    [LANG_DIR] =&gt; /
                                    [~LANG_DIR] =&gt; /
                                    [CODE] =&gt; amikoestetik
                                    [~CODE] =&gt; amikoestetik
                                    [EXTERNAL_ID] =&gt; 199
                                    [~EXTERNAL_ID] =&gt; 199
                                    [IBLOCK_SECTION_ID] =&gt; 37
                                    [~IBLOCK_SECTION_ID] =&gt; 37
                                    [IBLOCK_TYPE_ID] =&gt; catalog
                                    [~IBLOCK_TYPE_ID] =&gt; catalog
                                    [IBLOCK_CODE] =&gt; clinics
                                    [~IBLOCK_CODE] =&gt; clinics
                                    [IBLOCK_EXTERNAL_ID] =&gt; 
                                    [~IBLOCK_EXTERNAL_ID] =&gt; 
                                    [LID] =&gt; s1
                                    [~LID] =&gt; s1
                                )
                        )
                )

I need to display DETAIL_PAGE_URL
This is how I can display the link
<?print_r($arResult["DISPLAY_PROPERTIES"]["EMPLOYER"]["DISPLAY_VALUE"]);?>

but like this
<?print_r($arResult["DISPLAY_PROPERTIES"]["LINK_ELEMENT_VALUE"]["DETAIL_PAGE_URL"]);?>

why does it show empty

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2017-01-20
@viktorulyushev

Maybe stop asking one question and think a little?

A
Alexey Zakharov, 2017-01-20
@konratnox

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 question

Ask a Question

731 491 924 answers to any question