Page 1 of 2

How To Use CGCalendar [Solved]

Posted: Sun Jan 05, 2014 3:36 am
by KitchM
I am using CMSMS 1.11.9 thru Virtualmin 4.04Pro on CentOS 6.5, and accessing it thru Firefix 26.0. MySQL is version 5.1.71-1.el6. PHP is version 5.3.3-27.el6_5. Apache is version 2.2.15.

I am trying to use CGCalendar 1.13.3 and have it and CGExtensions 1.38.1 installed without any problems.

However, I cannot figure how to make the calendar appear in a web page. I have added the suggested code of:
{cms_module module="CGCalendar"; action="default"; display="calendar"; use_session="false";}
but nothing shows up but a message:
Not Found

The requested URL was not found on this server.

Any ideas to help me would be appreciated.

Thanks.

Re: How To Use CGCalendar

Posted: Sun Jan 05, 2014 7:09 am
by staartmees
you don't have to specify 'action' and 'use_session' and 'display' as you use the default settings.
Did you put an event in your calendar?

{cms_module module="CGCalendar"} would do the trick.

Re: How To Use CGCalendar

Posted: Sun Jan 05, 2014 4:18 pm
by KitchM
Yes, I had one event for this month.

Re: How To Use CGCalendar

Posted: Sun Jan 05, 2014 4:58 pm
by staartmees
Also you don't need those ; in your code

Does it work with a simple {cms_module module="CGCalendar"}

Re: How To Use CGCalendar

Posted: Sun Jan 05, 2014 5:05 pm
by calguy1000
I just tested CGCalendar 1.13.3 in a virgin CMSMS install.

I just called {CGCalendar} in a content page, it worked as expected.

I had absolutely 0 events.

Re: How To Use CGCalendar

Posted: Sun Jan 05, 2014 6:10 pm
by KitchM
You are correct. I now see something by just using {CGCalendar} on the page.

However, it is not well displayed and does not fill the space provided. Please see attachment.

Re: How To Use CGCalendar

Posted: Sun Jan 05, 2014 6:13 pm
by KitchM
BTW, I also noticed that hover-over the event displays nothing and that clicking on it just gives an error message:
Not Found

The requested URL was not found on this server.

Re: How To Use CGCalendar

Posted: Sun Jan 05, 2014 6:21 pm
by KitchM
Okay, I found that after a couple reloads, the page finally allowed the event link to open in a new page to show details. Hover still did nothing. But at least I've got something. Now if I can just have the calendar fill the space and display like a regular calendar, that would be great. ;)

Re: How To Use CGCalendar

Posted: Sun Jan 05, 2014 6:28 pm
by Jo Morg
Most modules that generate some sort of content install a sample CSS sheet. You need to link it to the template of the page to see it in effect.

Re: How To Use CGCalendar

Posted: Sun Jan 05, 2014 6:36 pm
by KitchM
Jo, your English is fine. Actually quite good.

There was a style sheet that was installed with CGCalendar. I manually attached it to the correct template, as it failed to attach to the default one. That it appears in the correct layout seems to indicate that it is correctly done. However, the calendar just isn't the format and size it should be.

I must be missing something else.

Re: How To Use CGCalendar

Posted: Mon Jan 06, 2014 5:19 pm
by Dr.CSS
Look in the modules admin for the default template as it may be a table layout with a size call inline...

Re: How To Use CGCalendar

Posted: Mon Jan 06, 2014 5:45 pm
by KitchM
Sorry, but I can't find "modules admin" no matter where I look. Could you please direct me?

Thanks.

Re: How To Use CGCalendar

Posted: Mon Jan 06, 2014 5:51 pm
by Dr.CSS
The CGCalendar modules admin where you add events...

Re: How To Use CGCalendar

Posted: Mon Jan 06, 2014 5:55 pm
by Rolf
KitchM wrote:Sorry, but I can't find "modules admin" no matter where I look. Could you please direct me?

Thanks.
Clear cache will fix that probably...

Re: How To Use CGCalendar

Posted: Mon Jan 06, 2014 6:07 pm
by KitchM
@Dr.CSS, sorry but still can't find a place to change a default template.

@Rolf, where does one clear the cache?

Thanks all.