<![CDATA[ getResources doesn't display/update custom TVs - My Forums]]> https://forums.modx.com/thread/?thread=102123 <![CDATA[getResources doesn't display/update custom TVs]]> https://forums.modx.com/thread/102123/getresources-doesn-t-display-update-custom-tvs#dis-post-550360
Need your help - can't figure out what to do.

The thing is there is a website that have worked quite perfectly for many months until recently. Last week I noticed that browsers don't display images and texts from resources, lines with code are just left blank. The problem is only with custom TVs; *pagetitle, *alias, *content, etc. work correctly.

First I thought there must be a problem with caching, but then I tried to create a new resource by duplicating an existing one and find out that the system can't really update info for custom TVs (with *pagetitle, *alias, *content again there is no problem, information was updated and displayed). So now I think the problem has something to do with database, but can't really figure out where to start.

Please advise me smiley]]>
mickyff Apr 29, 2017, 05:45 PM https://forums.modx.com/thread/102123/getresources-doesn-t-display-update-custom-tvs#dis-post-550360
<![CDATA[Re: getResources doesn't display/update custom TVs]]> https://forums.modx.com/thread/102123/getresources-doesn-t-display-update-custom-tvs#dis-post-550425
This article is about Resources, but some of it could relate to TVs: https://bobsguides.com/blog.html/2017/03/08/why-some-resources-cant-be-saved/.

Is there anything useful in the MODX error log?]]>
BobRay May 02, 2017, 11:45 PM https://forums.modx.com/thread/102123/getresources-doesn-t-display-update-custom-tvs#dis-post-550425
<![CDATA[Re: getResources doesn't display/update custom TVs]]> https://forums.modx.com/thread/102123/getresources-doesn-t-display-update-custom-tvs#dis-post-550400 Quote from: BobRay at May 01, 2017, 06:26 AM
Try logging out, manually deleting all files in the core/cache directory, and logging back in.

What version of MODX are you running?

Version: 2.3.3-pl traditional

Logging out, manually deleting didn't help sad
]]>
mickyff May 01, 2017, 12:17 PM https://forums.modx.com/thread/102123/getresources-doesn-t-display-update-custom-tvs#dis-post-550400
<![CDATA[Re: getResources doesn't display/update custom TVs]]> https://forums.modx.com/thread/102123/getresources-doesn-t-display-update-custom-tvs#dis-post-550395
What version of MODX are you running?
]]>
BobRay May 01, 2017, 06:26 AM https://forums.modx.com/thread/102123/getresources-doesn-t-display-update-custom-tvs#dis-post-550395
<![CDATA[Re: getResources doesn't display/update custom TVs]]> https://forums.modx.com/thread/102123/getresources-doesn-t-display-update-custom-tvs#dis-post-550382 mickyff Apr 30, 2017, 01:44 PM https://forums.modx.com/thread/102123/getresources-doesn-t-display-update-custom-tvs#dis-post-550382 <![CDATA[Re: getResources doesn't display/update custom TVs]]> https://forums.modx.com/thread/102123/getresources-doesn-t-display-update-custom-tvs#dis-post-550379 Quote from: BobRay at Apr 30, 2017, 04:01 AM
*pagetitle, *alias, *content are not TVs, they are Resource Content fields, though Resource Content fields and TVs are shown with the same kind of tag. It's not clear from your post, but I kind of suspect that by "custom TVs" you mean regular TVs, not custom TVs (which take a fair amount of effort to create).

In addition to LK's note, getResources also assumes that your TVs are prefixed with 'tv.' unless you add this property:

&tvPrefix=``

Sure then, by custom TVs I mean regular TVs then. tvPrefix was set to `` long long time ago. Guys, the point is the system have worked quite perfectly until recently, then all of a sudden there is a problem with TVs throughout the entire website, that's why I think the problem should be somewhere with caching or interaction with database]]>
mickyff Apr 30, 2017, 10:51 AM https://forums.modx.com/thread/102123/getresources-doesn-t-display-update-custom-tvs#dis-post-550379
<![CDATA[Re: getResources doesn't display/update custom TVs]]> https://forums.modx.com/thread/102123/getresources-doesn-t-display-update-custom-tvs#dis-post-550378 Quote from: lkfranklin at Apr 29, 2017, 08:44 PM
Have you set your call to includetvs and processestvs?

Yes, both are set to `1`]]>
mickyff Apr 30, 2017, 10:41 AM https://forums.modx.com/thread/102123/getresources-doesn-t-display-update-custom-tvs#dis-post-550378
<![CDATA[Re: getResources doesn't display/update custom TVs]]> https://forums.modx.com/thread/102123/getresources-doesn-t-display-update-custom-tvs#dis-post-550368 custom TVs (which take a fair amount of effort to create).

In addition to LK's note, getResources also assumes that your TVs are prefixed with 'tv.' unless you add this property:

&tvPrefix=``
]]>
BobRay Apr 30, 2017, 04:01 AM https://forums.modx.com/thread/102123/getresources-doesn-t-display-update-custom-tvs#dis-post-550368
<![CDATA[Re: getResources doesn't display/update custom TVs]]> https://forums.modx.com/thread/102123/getresources-doesn-t-display-update-custom-tvs#dis-post-550361 lkfranklin Apr 29, 2017, 08:44 PM https://forums.modx.com/thread/102123/getresources-doesn-t-display-update-custom-tvs#dis-post-550361