S
S
sergemin2017-06-16 10:48:31
MODX
sergemin, 2017-06-16 10:48:31

How to get rid of duplication of downloaded files when multilingual in modx?

Good afternoon!
I'm making a modx revo shop and I'm having a problem with having to upload files twice for the same product. I understand that this is because of the /en/ prefix in the link.
That is, it turns out that:

example.com/img1.png
example.com/en/img1.png

For example, I need to add a gallery to each minishop2 product.
For a product in Russian, I add images, but for an associated product in English, this gallery is not displayed.
How to solve the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
Froggyweb, 2017-06-16
@sergemin

Не надо ничего дублировать. надо либо в настройках сервера перенаправлять запросы на картинки с основного раздела, либо написать сниппет который будет отдавать картинки с нужного адреса
https://bezumkin.ru/sections/tips_and_tricks/2439/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question