So I finally got the Calendar events works with my install (although it seems my phx is competing but different topic). I was wondering if it is possible to group events by day. Similar to the way ditto retrieves it templates. For instance:
I have multiple events on the same day.
Id like to output something like:
<h1> Event Day </h1>
event 1
event 2
event 3
<h1>Event Day 2</h1>
event 1
event 2
I understand that the TPL parses an entire event (where, when etc...)
but can I somehow adjust it (or template it) similar to ditto?
Im think the logic would work like this:
get feeds
parse appropriate information from the feeds
sort them into groups by date
return the date (s)
return individual entry block
I’m not overly familiar with creating plug-ins, and this deals really only within the list calendar type
but I would think it could work. By adding another layer to the template similar to ditto.
I’ll try and play around with it but maybe someone has a better and easier Idea than me whacking away at it or if someone can point me in the right direction.
Heres kind of what Im working on to give you an idea:
http://beta.pack3153.org
thanks much-
P
Update:
update:
the outer template would be something like this:
<h3>[+startDateCombined+]</h3>
[+eventEntries+]
and the inner template would look something like this:
<div class="event-entry">
<h3><span class="event-title">[+title+] <span class="toggler">[+]</span></span></h3>
<div class="event-info">
<p ><span class="event-notes bold">Notes:</span>[+content+]</p>
<p><span class="event-time bold">Time:</span> [+startTime+]</p>
<p><span class="event-location bold"> Location:</span> [+where+]</p>
</div>
Something like that anyway. I guess it boils down to getting the grouping logic solved...