C
C
Cheizer2018-02-27 17:24:59
CMS
Cheizer, 2018-02-27 17:24:59

How to display pictures in MODX with its own source of files?

Hi friends! There is an absurd situation, but I don’t even believe that it should be like this, the situation: I
created a new source of files, for quick access to the images folder and restrictions for managers

baseUrl
site/images/

basePath
site/images/

when displaying a picture on a page from tv I get the path from the source:
products/s116228992.jpg
instead of
site/images/products/s116228992.jpg
QUESTION:
how to substitute the path from the root of the SOURCE specified in the "FILE SOURCES" settings, not resorting to manual specification in the template?
site/images/

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
Ruslan, 2018-02-27
@ruslan_aleev

Hello, this should not be a problem at all. If you create a source, bind TV to it, then the path is substituted for the desired one.
For example, I set up sources in this way and everything works, see the screenshot - https://clip2net.com/s/3SfiVVk
In your case, you can register the source directly to the final products folder and load pictures there, but generally strange behavior.
Do you have it <base href="http://askmeplz.com/" />in head? Or maybe something is wrong with MODX, have you tried updating / reinstalling?

Z
zooks, 2018-02-27
@zooks

If for pdoResources, then specify &processTVs.

V
Viktor Yanyshev, 2018-02-27
@villiwalla

Leave basePathRelative and baseUrlRelative set to ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question