A
A
Anastasia Panfilova2017-02-12 20:47:00
1C-Bitrix
Anastasia Panfilova, 2017-02-12 20:47:00

How, loading a photo from the media library into a multiple property, pull out the file name?

The bottom line is that I have a plural type property for photos. When I add an element, I load the addon there. photo from the media library. I thought that I could easily pull out the image title in the template, but it turned out not to be the case. There is nothing in the array with properties that would be associated with the media library. I need the title of the photos. How to do it? I can't believe that this can't be "turned"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Burlaka, 2017-02-12
@AlexeyGfi

As far as I understand you are getting an id.
Take a look at these libraries:
https://dev.1c-bitrix.ru/api_help/main/reference/cfile/
CMediaLib (not in the documentation), example: https://dev.1c-bitrix.ru/community/webdev/ user/178...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question