Quote from: mopox at Jan 17, 2013, 03:36 PMdid u set getResources to uncached?
And here we have the winner: NO, I did not. I just used the uncached TV, which did not work. BUT: Calling getResources uncached made the pig fly! YES! BAMM! THX SOOO MUCH!!! Also to Mark Hamstra who tweeted something similar.
Here's the full code for my movie distributor website:
The "dateToday" snippet:
gR call for the NEW movies:
[[!getResources?
&parents=`2`
&tvFilters=`cinemaReleaseDate<=[[!dateToday]]%,cinemaRepertoire!=1`
&sortbyTV=`cinemaReleaseDate` &sortdirTV=`DESC`
&includeTVs=`1`
&tpl=`movieListCinema`
&tpl_n4=`movieListCinemaBR`
]]
The "%" in tvFilter is important because I only compare the date and NOT the time. Since the date TV autosets the current time when only a date is picked (bad widget!) the comparison needs to be reduced so that the time is not evaluated.
gR call for the UPCOMING movies:
[[!getResources?
...
&tvFilters=`cinemaReleaseDate>>[[!dateToday]]%,cinemaRepertoire!=1`
&sortbyTV=`cinemaReleaseDate` &sortdirTV=`ASC`
...
]]
gR call for the REPERTOIRE movies:
[[!getResources?
...
&tvFilters=`cinemaReleaseDate<=[[!dateToday]]%,cinemaRepertoire==1`
&sortbyTV=`cinemaReleaseDate` &sortdirTV=`DESC`
...
]]
I hope, someone finds this usefull.
cheers
Oliver
[ed. note: mindeffects last edited this post 11 years, 3 months ago.]