[[getResources? &parents=`[[*id]]` &tpl=`event_blog` &includeTVs=`1` &sortbyTV=`eventDate` &sortdirTV=`ASC` &sortby=``]]
This is my get resourses call, the chunk I used is complete, really the EventFilter snippet should call another chunk to format the data, but this is a quick and dirty way of doing it.
I am looking at trying to modify getResources to do this properly as this method doesn’t allow you to limit the number of items you get, as you can only limit before you filter. I will post when I have finished that method, but it could be some time before I get chance.
Tom
that’s weird, even using your exact code I can’t get it to work ... thanks anyway, maybe I can figure it out sometime soon ...
Woo-hoo, I got it to work: I had to call the snippet uncached, as my page is cacheable ...
As in (my adapted version):
[[!EventFilter? &date=`[[+tv.eventDate:strtotime]]`
&content=`<p class="event">[[+tv.eventPicture]]<a href="[[~[[+id]]]]" class="loud">[[+pagetitle]]</a> / [[+tv.eventDate:strtotime:date=`%d %b %Y`]] - [[+tv.eventEndDate:strtotime:date=`%d %b %Y`]]
[[+tv.eventSummary]] <hr class="clearer"/></p>`]]
btw my TV output is set to default.
Thanks for your help Tom! I didn’t try your specific fix yet - but I don’t really need it anymore, do I?
*EDIT*
oh that was a bit too early - all my current events are now shown twice -- when I eliminate the &sortby=`` in my call even three times ... - anybody happen to have an idea why that?
**SECOND EDIT**
’twas a bug, the getresources Update 1.2.2. fixed it!