CGCalendar - Display: calendar

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
User avatar
AccentAvondschool
Forum Members
Forum Members
Posts: 41
Joined: Sun May 08, 2016 5:36 am
Location: Rotterdam NL

CGCalendar - Display: calendar

Post by AccentAvondschool »

Hi Robert (calguy1000),

Does CGCalendar 2.6 still support the following view?

Display: "calendar" - displays events for the current month in a traditional grid.

Containing some of the code:

Code: Select all

{foreach from=$day_names item=day key=key}...{/foreach}
{foreach from=$days item=day key=key}...{/foreach}
The reason I am asking this is that I have already put some click-events on certain days on the old site and I would like to take/use this to/in the new site.

Working example : https://www.accentavondschool.nl/agenda ... er/2019/04
For example, click on 2nd of April for details in popup

Of course I have already tried to use the old code but nothing happens.

Code: Select all

{$day_names|print_r} : 1
{$days|print_r} : 1
Regards,
Accent Avondschool
René

PS: I just realized that the template name doesn't matter, it's the code that is in it. But I think you understand what I mean ;)
Regards,

Accent Avondonderwijs
René
User avatar
AccentAvondschool
Forum Members
Forum Members
Posts: 41
Joined: Sun May 08, 2016 5:36 am
Location: Rotterdam NL

Re: CGCalendar - Display: calendar

Post by AccentAvondschool »

Hi all,

I am trying to get the following dated CGCalendar v1.16.1 code working with v2.6 so that I don't have to change the rest of my code. But so far the arrays remain empty ;(

Code: Select all

{foreach from=$day_names item=day key=key}
    ...
{/foreach}

{* iterate over the days of this month *}
{assign var=weekday value=$first_of_month_weekday_number}
{foreach from=$days item=day key=key}
    ...
{/foreach}
Does anyone have an idea?

Regards,
Accent Avondschool
René
Regards,

Accent Avondonderwijs
René
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: CGCalendar - Display: calendar

Post by calguy1000 »

CGCalendar 2.x does not support those variables.

The old statically built month display had many problems. it was replaced with fullcalendar that is dynamic and ajax based.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
AccentAvondschool
Forum Members
Forum Members
Posts: 41
Joined: Sun May 08, 2016 5:36 am
Location: Rotterdam NL

Re: CGCalendar - Display: calendar

Post by AccentAvondschool »

Calguy, thank you for your response.

I had hoped that I could easily take over the old calendar as it is now constructed.
But on closer inspection, the new dynamic design is actually very promising. I'm only going to fine-tune a few things, such as the events in a popup instead of a full screen (as made in our old situation).

May be said anyway ...
Thanks for all of the work on this new calendar module and other fantastic modules / plugins that you have developed.
Regards,

Accent Avondonderwijs
René
Locked

Return to “Modules/Add-Ons”