CGCalendar upcoming events

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
markovica
Forum Members
Forum Members
Posts: 23
Joined: Mon Sep 13, 2010 11:17 am

CGCalendar upcoming events

Post 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...
markovica
Forum Members
Forum Members
Posts: 23
Joined: Mon Sep 13, 2010 11:17 am

Re: CGCalendar upcoming events

Post 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...
markovica
Forum Members
Forum Members
Posts: 23
Joined: Mon Sep 13, 2010 11:17 am

Re: CGCalendar upcoming events

Post 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...
blackrain
Forum Members
Forum Members
Posts: 98
Joined: Wed Feb 20, 2008 4:33 pm

Re: CGCalendar upcoming events

Post 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}
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: CGCalendar upcoming events

Post by Dr.CSS »

@markovica

Doing this will render you unsupportable...

(just a small template hack in cgcal admin.addevent)
blackrain
Forum Members
Forum Members
Posts: 98
Joined: Wed Feb 20, 2008 4:33 pm

Re: CGCalendar upcoming events

Post 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.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: CGCalendar upcoming events

Post by Dr.CSS »

I was speaking of the hack that markovica did to the modules PHP file...
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: CGCalendar upcoming events

Post by Rolf »

New release CGCalendar is in the Forge
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Post Reply

Return to “Modules/Add-Ons”