Last active
June 30, 2018 08:50
-
-
Save nafilimonov/8c9454b8cf41f096ec08e151db4c9a82 to your computer and use it in GitHub Desktop.
Bitrix. Iblock. Путь к файлу из свойства
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
foreach($arResult["ITEMS"] as $index => $arItem) | |
{ | |
if (!empty($arItem["PROPERTIES"]["PHOTO_MAIN"]["VALUE"])) | |
{ | |
$arResult["ITEMS"][$index]["PROPERTIES"]["PHOTO_MAIN"]["SRC"] = CFile::GetPath($arItem["PROPERTIES"]["PHOTO_MAIN"]["VALUE"]); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment