Page 1 of 1

CGCalendar upcoming events

Posted: Tue Sep 28, 2010 1:15 pm
by markovica
I am having a slight proble with the upcoming event list for events having the same name - I only get the next scheduled event in the list instead of all events...

I imeplemented Products/order as the basis of purchasing - event titles are taken from the Product module (just a small template hack in cgcal admin.addevent)

What I need now is to generate a drop down box (or whatever) from the calendar module to select the date for the product before adding it to the cart... this is where I'm stuck...

I wanted to generate a list of events having the same title as the selected product, but the upcominglist does not show duplicated titles - only the first sceduled event with that title is displayed...

please help...

I'm quite sure I can make it work with UDT, but I would prefer having CGCal display the list with a template...

Re: CGCalendar upcoming events

Posted: Tue Sep 28, 2010 1:35 pm
by markovica
i guess i should post my findings:
- the query is in souce code... so I'll have to modify it - the results are limited by query... I see no other way...
So, removing GROUP BY in the query solves my issue, until next module update...

Re: CGCalendar upcoming events

Posted: Tue Sep 28, 2010 1:42 pm
by markovica
too fast... too stupid... my mistake...
there is this param unique_only in the code that is supposed to be set... when set to whatever, it should display what I need

so
{cms_module module="CGCalendar" display="upcominglist" unique_only=1}
does the job

I just wonder... shouldn't it be the other way around - unique_only=0...

Re: CGCalendar upcoming events

Posted: Fri Mar 30, 2012 9:45 am
by blackrain
You are correct the tag for including a list of all the uplcoming events including all recursive should look something like this:

Code: Select all

{cms_module module="CGCalendar" display="upcominglist" upcominglisttemplate="latest-events" limit="5" unique_only=0}

Re: CGCalendar upcoming events

Posted: Fri Mar 30, 2012 8:36 pm
by Dr.CSS
@markovica

Doing this will render you unsupportable...

(just a small template hack in cgcal admin.addevent)

Re: CGCalendar upcoming events

Posted: Fri Mar 30, 2012 9:58 pm
by blackrain
This is a bit confusing doing what will render unsupportable?

The tag I suggested is for the template page not the module files, they should not be touched in this instance as the tag does all the work.

Re: CGCalendar upcoming events

Posted: Sat Mar 31, 2012 5:47 pm
by Dr.CSS
I was speaking of the hack that markovica did to the modules PHP file...

Re: CGCalendar upcoming events

Posted: Sat Mar 31, 2012 8:35 pm
by Rolf
New release CGCalendar is in the Forge