[[+content_image]]
A
A
Alexander Ivanov2015-08-11 17:55:56
MODX
Alexander Ivanov, 2015-08-11 17:55:56

How else can you specify the path to the files on modx revo?

I used to specify the path to the file like this:

<link href='assets/папка/css/style.css' rel='stylesheet'>

Once I saw a different approach:
<link href='[[какой-то вызов]]/css/style.css' rel='stylesheet'>

It’s just that if you specify the direct path assets/folder/styles, then when you change the path, for example www.sitename/catalog/product, then my version with assets does not roll because you need to substitute two more dots, for each path, redo the styles like this:
<link href='../assets/папка/css/style.css' rel='stylesheet'>

Has anyone experienced this?
So I want to know more about this option -
<link href='[[какой-то вызов]]/css/style.css' rel='stylesheet'>

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
V
Vladimir Rebrov, 2015-08-11
@cimonlebedev

/assets/
[[++assets_path]]
Similarly, there are tags for directories manager, connectors, core, processors.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question