So after several rounds of experimentation I finally came up with something that works. I decided to create extenders to house the filters, since it seemed (at 3am anyway) the easiest thing to get a handle on.
Basically the ultimate goal was to have a weekly listing of events, sorted by their unpublished date as well as show ongoing events for the appropriate day. These listings unpublished date returns a 0, but have a tv with the day attached to the entry template. The single events, however had nothing attached to the ongoingEvents tv so I created another default choice, "single" so I didn’t have to worry about it.
With this I had to set up 7 extenders (one for each day) to return the proper entries so my ditto call looks like this:
[!Ditto? &parents=`53,54,49,52,50,53,55` &display=`all` &sortDir=`ASC` &tpl=`eventEntry` &extenders=`eventListFilter` !]
and the eventListFIlter code is:
<?php
$filters["custom"]["eventListFilter"] = array(array("unpub_date","ongoingEventDay"),"eventListFilter");
if (!function_exists("eventListFilter")) {
function eventListFilter($resource) {
if ($resource['ongoingEventDay'] == ("single") && ($resource['unpub_date'] < strtotime("11:59 pm")) || ($resource['ongoingEventDay'] == strftime("%A", strtotime('now')))
){
return 1;
} else {
return 0;
}
}
}
?>
I had to tinker with it so I could use both the unpub_date & ongoingEventDay tvs to determine what to display. Getting that array right was my biggest hurdle (had to look at the exampel a few times) I am so not a php guy beyond the basics but this was the only way I could figure it out with my very limited mental toolbox.
So the question is, is there any downside to doing it this way? Like I said, I could have done it with multiple ditto calls or probably tagging like you suggested. There is simply so much flexibility I can’t really get my head around it, but I don’t know enough about the complete MODX/Ditto package to make anythng but the limited "Well it works..."
The result is here
http://beta.akronicity.com/events/this-week
you can bounce through the other things to do as well (although they may not have as many entries, still gotta do that, uugh)
and as always, thanks for all of your help-
P