I previously had tvPrefix empty, after a tweet by @gallenkamp I changed it to `tv.` but no change - TVs are still wrong.
@mayhemchaos: requested resources are not hidden. I get them correct, only the TVs in the eventdescription TV are not processed as expected.
Here is my gR call:
[[!getResources?
&parents=`2`
&where=`{"template:=":2}`
&tvFilters=`eventpushtofb==0,eventdateend>>[[!currentTime? &strftime=`%Y-%m-%d %H:%M:%S`]]||eventpushtofb==1,eventfbid>=1,eventdateend>>[[!currentTime? &strftime=`%Y-%m-%d %H:%M:%S`]]`
&limit=`0`
&sortbyTV=`eventdate`
&sortdirTV=`ASC`
&hideContainers=`1`
&includeContent=`1`
&includeTVs=`1`
&processTVs=`1`
&tvPrefix=`tv.`
&tpl=`api-event`
]]
And my template "api-event":
{
"id":"[[+id]]"
,"pagetitle":"[[+pagetitle:prepareforjson]]"
,"longtitle":"[[+longtitle:prepareforjson]]"
,"link":"[[~[[+id]]:prepareforjson]]"
,"eventdate":"[[+tv.eventdate:strtotime:prepareforjson]]"
,"eventdateend":"[[+tv.eventdateend:strtotime:prepareforjson]]"
,"eventpushtofb":"[[+tv.eventpushtofb:prepareforjson]]"
,"eventdescription":"[[+tv.eventdescription:prepareforjson]]"
}
prepareforjson is just a snippet to escape some chars for json...
The default value of the TV "eventdescription" is something like:
This Event is on [[*eventdate]]. Please join us!
{{some custom text for each event}}
For each event-resource the {{some custom text for each event}} is replaced by some individual text.
When I call a resource with gR the TV is displayed with the custom text, only the TVs inside are not processed for the requested resource (they are actually empty or have the default value of the tv).