Upcoming events separated by months


(Drew Nixon) #1

Hi,

 

I am trying to group events by which month they are scheduled to run in. I have tried the following assets:

 

  • Calendar page - probably the closest with the "Year view" but shows past events as well
  • Calendar events search page - able to filter "This month" and "Next month" which would most likely be enough upcoming events yet I don't know how to nest the search result rather than the search page
  • Asset listing - using the %asset_attribute_start_date% as a keyword to sort the assets and group the assets I thought I could achieve this but it doesn't display the assets in the right date
  • Restricted-period calendar page - have to select a fixed date which either would have to be updated daily or would show past events, duplicate listing for events that span over more than 1 day
  • Rolling calendar page - close although it shows duplicates of events that span over more than 1 day
  • What's new - cannot specify date range using the event start date

Perhaps I've missed something obvious and someone knows an easy way to accomplish this?

 

Any help is appreciated.

Thanks, Drew

 


(Tony Kidman) #2

Hi Drew,

 

with regard to the asset listing I had tried a similar thing and found that by using a metadata field for the date value I was able to better sort the dates.  With the metadata values you then have a little more flexibility with default date structure.

 

The other option is to use %asset_attribute_start_date^date_format_Ymd% to better sort the dates using raw value as presentation value does not always return desired results unless results are text or numeric.

 

I hope this is of some assistance to you

 

Kind Regard

Tony


(Drew Nixon) #3

Hi Tony,

 

Thanks for your response. The only issue with the metadata field replacing the start and end date is that Upcoming Events Lists would not automatically be removed from the lists. I understand we could set up a trigger to set the events as Up for Review a day after the date entered in the metadata field but it is probably not worth doing so.

 

It's not hugely important but it would be a welcome way to split up our events.

 

Regards,

Drew


(Tbaatar) #4

There is an option to disable showing past month/year events with calendar page asset. or you can set asset future status with trigger so that when the event has passed the asset would change to under contruction, and it will no longer show up on the calendar.


(Drew Nixon) #5

Hi tbaatar,

 

On the calendar page asset I can't seem to find the option to disable showing past month/year events. I have put 0 years backwards, 0 months backwards and 0 days backwards yet in year view (which is the only view that separates the events by months) I still see it from January - December.

 

Regards, Drew


(Anthony) #6

I have a page where I display a series of "tabs" for the months, and when clicked use AJAX to dynamically load the events in that month. The tabs are generated by a rolling calendar asset, but could equally be hardcoded or generated in JS. The AJAX calls out ot a regular calendar asset, but passes in the specific querystring parameters that Squiz expects to return just the month you want... for example

 

?SQ_CALENDAR_VIEW=month&SQ_CALENDAR_DATE=2014-11-01

 

Would anything like that help you? In my case I only want to see one month at a time, but you could of course dispense with the tabs and simply load in as many months as you want on page load and append them all together with an appropriate month header. A simple loop in JS could make the calls and format up the results.

 

Anthony