Page 1 of 1

CGCalendar - Display: calendar

Posted: Sun Jun 02, 2019 7:17 am
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 ;)

Re: CGCalendar - Display: calendar

Posted: Fri Jun 07, 2019 9:51 am
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é

Re: CGCalendar - Display: calendar

Posted: Fri Jun 07, 2019 12:21 pm
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.

Re: CGCalendar - Display: calendar

Posted: Sat Jun 08, 2019 8:15 am
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.