Y
Y
Yana Mitrofanova2017-11-17 12:14:38
MODX
Yana Mitrofanova, 2017-11-17 12:14:38

TVs with an image in a different context are not displayed, what's the problem?

Hello! I did multilingualism according to this instruction - https://www.modx.cc/video-uroki/1455-18.-nastrojka... . Problem with displaying TV field in English context. For images, a source of files has been created with basePath settings, baseUrl of the following form: "assets/img/".
In the settings of the TV field itself, I chose the same source of files for the context en - "Images". But the picture does not want to be displayed in any way, it adds the prefix /en/ before the image. It turns out a path like this "/en/assets/img/". How to remove this attachment? I tried to change the path in the source of the files to this "/assets/img/", and put / before the TV field, nothing helps, the path becomes like this "/en//assets/img/". I've already broken my head, I ask for help on this issue

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yana Mitrofanova, 2017-11-17
@Raina97

The answer was given here: https://modx.ru/vopros-answer/info/5198/
Maybe someone will come in handy.
Also, the http_host key was not set correctly in the en context
. It was: site.ru/en/
It should have been: site.ru

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question