R
R
Roman Golubev2018-10-10 14:35:30
1C-Bitrix
Roman Golubev, 2018-10-10 14:35:30

Displaying a picture of a custom field of the file data type in Bitrix. How?

All good.
I understand that this request has already been, but it has not been resolved.
The task is to make a template with the output of different blocks. Displayed the title, description through custom properties without problems.
5bbde3cceccc6670973685.png
The problem arose when displaying the custom property File, since I uploaded the image, but I don’t know how to display it, because the path to the image does not come in the array (only a number comes in the value):
5bbde3dd741d1456024295.png
I tried many different options, many queries in the search looked through.
Question: how to display an image through a custom field?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Goncharov, 2018-10-10
@gromniki

In the array you get value - this is the id of the desired image, the path to the image is displayed through:
<?=CFile::GetPath(ID_ФАЙЛА);?>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question