@Synacs-U
Html, CSS, Js, Jquery, PHP, Mysql

Как в modx создавать tv поля из статичного файла?

Добрый день,
понятно как привязывать сниппеты, чанки и тд к с татичным файлам.
Но как это делается для tv полей? (не смог найти документации)
5c9f0e83c79c4357959025.png
  • Вопрос задан
  • 127 просмотров
Пригласить эксперта
Ответы на вопрос 1
@Froggyweb
не понятно чего ты хочешь добиться
BobRay Reply #3, 3 years, 1 month ago
I tried creating a fairly complex static TV and I can tell you that its file contains nothing but the default value of the TV. The files for static elements are meant to hold only the 'content' of the element (e.g., the text of a chunks and templates, and the code of a snippets or plugins).

Given that only the default value of the TV is saved, there's usually no point in having a TV be a static element unless its default value is a fair amount of text.

I don't think the static nature of your TVs is the problem. More likely it's a nesting/cache issue. For example, if your TV tag is inside a snippet tag that's inside a chunk and the chunk tag is in a template or another chunk, MODX can have trouble with it since the TV tag may not be parsed at the point that it's used.

Also, if the TV tag is unparsed (with a !), that delays its processing so that its value may not be available when the tag it's in is parsed.

Feel free to post a TV tag that your having trouble with.


почитай здесь
https://forums.modx.com/thread/99536/tvs-using-sta...
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы