L
L
LB7772015-01-16 10:22:29
1C-Bitrix
LB777, 2015-01-16 10:22:29

How to fix image path in Bitrix?

For some reason, all my photos in the news start with "/images/?w=141&h=105&zc=1&src=" and look like this: "/images/?w=141&h=105&zc=1&src=/upload/iblock/... ../.....png"
How to remove this extra code so that the path to the image looks like this: /upload/iblock/...../.....png
?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Timofey, 2015-01-16
@mr_T

You have some kind of script, most likely in the /images/index.php file, which, judging by the request, resizes the image and displays it. First, you need to understand whether it is worth changing something at all, and if it is, then either resize the image in the result_modifier of the component and write the path to it in arResult, or, if the resize is not needed, simply insert a direct path (for example, via CFile::GetPath).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question