Hello.

It is necessary to display the data from the “Directory” type property (the name of the service and the link that leads from this name) on the detail page of the news. Now there is a property of type "List", it is correctly displayed like this: http://prntscr.com/a3xykc It is necessary that the services become clickable. It seems to me that the Directory will perform this task.

The output code for the properties in the news detail view template is:

<?foreach($arResult["DISPLAY_PROPERTIES"] as $pid=>$arProperty):?> <b><?=$arProperty["NAME"]?></b>:&nbsp; <?if(is_array($arProperty["DISPLAY_VALUE"])):?> <?=implode("&nbsp;/&nbsp;", $arProperty["DISPLAY_VALUE"]);?> <?else:?> <?=$arProperty["DISPLAY_VALUE"];?> <?endif?> <br /> <?endforeach?> 

But it does not allow to display the newly created field with the property of the type "Directory". Moreover, the remaining fields also disappear if this property is active.

Please help solve the problem. Maybe I'm wrong about the “Directory” and it’s worth trying a different type. What type will solve my problem and how to solve the issue with the code in other cases?

Thank.

  • what is stored in the directory, show part of the table, and print the array that contains the property now. hard to help blindly - Nikolaj Sarry
  • Here is the part of the news item description component responsible for displaying properties: <? Foreach ($ arResult ["DISPLAY_PROPERTIES"] as $ pid => $ arProperty):?> <B> <? = $ ArProperty ["NAME"]?> < / b>: & nbsp; <? if (is_array ($ arProperty ["DISPLAY_VALUE"])):?> <? = implode ("& nbsp; / & nbsp;", $ arProperty ["DISPLAY_VALUE"]);?> <? else:?> <? = $ arProperty ["DISPLAY_VALUE"];?> <? endif?> <br /> <? endforeach> The directory should have several options to choose from, for example Installation Print Delivery and, accordingly, links from these words: / montage / / print / / delivery / - maximrrrr

0