CGCalendar: Show both past and upcoming events on same list?

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Evoken
Forum Members
Forum Members
Posts: 17
Joined: Thu Mar 03, 2011 6:06 pm

CGCalendar: Show both past and upcoming events on same list?

Post by Evoken »

Just wondering how this can be done. I want to show a list of events that brings up all events with pagination sorted by date irrespective of they being past or upcoming.

As far as I see, the module only gives you the option to show either upcoming events or past events (or show a day, month or year) when you call it, but that isn't really feasible for me right now nor is the option to have upcoming events in one page and past events in another, they need to be all on the same list.

As it is right now, if I use past events, it won't show upcoming and if I use upcoming events it won't show the past events because the module automatically hides past events in that mode.

Any help is appreciated.

I'm using CMSMS 1.11.5 and CGCalendar 1.10.4.

Thanks in advance.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: CGCalendar: Show both past and upcoming events on same l

Post by Dr.CSS »

Use 2 calls for it, past events above new events..?
Evoken
Forum Members
Forum Members
Posts: 17
Joined: Thu Mar 03, 2011 6:06 pm

Re: CGCalendar: Show both past and upcoming events on same l

Post by Evoken »

Dr.CSS wrote:Use 2 calls for it, past events above new events..?
I could do that but then I would have issues with the pagination as I would have to place limits to both calls, it would lead to each call having their own pagination on the same page.

It would also be a problem in other areas of the site where I am calling, for example, a single event (the most recent one). Using two calls would create issues.

Thanks for your input Dr.CSS.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: CGCalendar: Show both past and upcoming events on same l

Post by velden »

Pagination could be implemented with some javascript. However, all events would need to be loaded into the browser.

Looking at the code of CGCalendar, I *think* it would be a small effort to implement a 'listall' parameter. So maybe you could contact the developer (Robert Campbell, calguy1000) for a (paid) modification or file a feature request.

Not being a developer I might be wrong about the 'small effort' as I know I often overlook the important details :-X
Post Reply

Return to “Modules/Add-Ons”