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.
[[!pdoPage?
&tpl=`ru.item.cataloug`
&includeTVs=`img, collection, article, c.f.o`
&sortby=`c.f.o`
&sortdir=`ASC`
&parents=`[[~id]]`
&ajaxMode=`scroll` ]]
[[!pdoPage?
&tpl=`ru.item.cataloug`
&includeTVs=`img, collection, article, c.f.o`
&sortby=`{"c.f.o":"ASC"}`
&parents=`[[~id]]`
&ajaxMode=`scroll` ]]
synacs.json[3] = {};
synacs.json[3].id = '222';
synacs.json[3].date = '20:50';
synacs.json[3].datem = '1539453040269';
synacs.json[3].num = '552';
synacs.json[3].comment = 'fuck off';
synacs.json[3].active = '1';
synacs.json.push({
id: '222',
date: '20:50',
//....
});
putty.exe -load 10.1.1.1 -P 1234 -ssh -pw ALEX1977 root@10.1.1.1
-P — port connect to specified port
-pw — passw login with specified password
-load — sessname Load settings from saved session