Sort by event_start_datetime from current date


(Tony Kidman) #1

Hi all,

 

is anyone able to provide some insight for a keyword that would allow me to complete an asset listing sort by the keyword event_start_datetime_Y-m-d to only display assets from the current date in a listing.

 

What I would like to achieve is that this sort runs only from the current month so that Jan and Feb would not appear in the list when in the month of March.

 

I have a listing that groups the into months displaying the first 4 days of each.

 

These groups then sit in a carousel that users can scroll through.  For that reason I want the current month and future events only to show.  If they wish to see past events there is a calendar asset page for that.

 

Hope there is a way forward for this.

 

Many thanks.


(Nic Hubbard) #2

Have you looked into the various calendar listings? Perhaps the Rolling Calendar Page is what you are looking for?


(Tony Kidman) #3

Hi Nic,

 

I have been able to use an upcoming events listing to do this.  

 

The rolling calendar was difficult as the type formats, and page content are a little complex in layout.  

 

The other issue is that there is limited space in the page so I will need to have a css overflow:hidden as the event list sits in a well element that is a set dimension and scrolling does not align with the design.

 

There does not appear to be a way to restrict the number of items listed for each month and I think that is why I originally had gone with the asset listing.


(Nic Hubbard) #4

The other issue is that there is limited space in the page so I will need to have a css overflow:hidden as the event list sits in a well element that is a set dimension and scrolling does not align with the design.

 

Could you use a scrolling div like we do on puc.edu? We suppress the browsers scroll bars and show our own.


(Bart Banda) #5

Have you tried to use the calendar search page? https://manuals.matrix.squizsuite.net/calendar/chapters/calendar-events-search-page 


(Tony Kidman) #6

Thanks for you help Nic, as always your insight into this tool is fantastic!

 

I am going with the overflow: hidden option as I have been advised that a vertical scrolling element does not fit in with the current design.  

 

Like my mother always says "Don't aim up. Always aim sideways, less of a fall".  Inspirational!