Looking at the parameters for CGCalendar, I can't see a way to display a list of all events. There are options for listing past events, upcoming events, or events for a given year, but no option to simply display all events.
Any suggestions?
CGCalendar: possible to display all events?
Re: CGCalendar: possible to display all events?
2 calls on one page? Past events, and then upcoming events.Cerulean wrote:Any suggestions?
To copy System Information to the forum:
https://docs.cmsmadesimple.org/troubles ... nformation
CMS Made Simple Geekmoots attended:
Nottingham, UK 2012 | Ghent, Belgium 2015 | Leicester, UK 2016
https://docs.cmsmadesimple.org/troubles ... nformation
CMS Made Simple Geekmoots attended:
Nottingham, UK 2012 | Ghent, Belgium 2015 | Leicester, UK 2016
Re: CGCalendar: possible to display all events?
Thanks for the reply.
Thinking that it would be good to merge the event arrays from the two module calls so a single foreach loop can be used, I came up with the following...
In the CGCalendar template for the first module call (pastlist):
In the CGCalendar template for the second module call (upcominglist):
There might be better ways to do this, but this method worked okay for me.
Yes, I think that will be the only way.paulbaker wrote:2 calls on one page?
Thinking that it would be good to merge the event arrays from the two module calls so a single foreach loop can be used, I came up with the following...
In the CGCalendar template for the first module call (pastlist):
Code: Select all
{$merged_events = $events}
Code: Select all
{foreach $merged_events|@array_merge:$events as $key=>$event}
...
{/foreach}


