How To Use CGCalendar [Solved]

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
KitchM
Power Poster
Power Poster
Posts: 328
Joined: Mon Dec 02, 2013 3:26 am

How To Use CGCalendar [Solved]

Post 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.
Last edited by KitchM on Mon Jan 06, 2014 8:44 pm, edited 1 time in total.
staartmees
Power Poster
Power Poster
Posts: 1049
Joined: Wed Mar 19, 2008 4:54 pm

Re: How To Use CGCalendar

Post 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.
KitchM
Power Poster
Power Poster
Posts: 328
Joined: Mon Dec 02, 2013 3:26 am

Re: How To Use CGCalendar

Post by KitchM »

Yes, I had one event for this month.
staartmees
Power Poster
Power Poster
Posts: 1049
Joined: Wed Mar 19, 2008 4:54 pm

Re: How To Use CGCalendar

Post by staartmees »

Also you don't need those ; in your code

Does it work with a simple {cms_module module="CGCalendar"}
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: How To Use CGCalendar

Post 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.
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.
KitchM
Power Poster
Power Poster
Posts: 328
Joined: Mon Dec 02, 2013 3:26 am

Re: How To Use CGCalendar

Post 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.
Attachments
CGCalendar test example.png
KitchM
Power Poster
Power Poster
Posts: 328
Joined: Mon Dec 02, 2013 3:26 am

Re: How To Use CGCalendar

Post 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.
KitchM
Power Poster
Power Poster
Posts: 328
Joined: Mon Dec 02, 2013 3:26 am

Re: How To Use CGCalendar

Post 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. ;)
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1978
Joined: Mon Jan 29, 2007 4:47 pm

Re: How To Use CGCalendar

Post 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.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
KitchM
Power Poster
Power Poster
Posts: 328
Joined: Mon Dec 02, 2013 3:26 am

Re: How To Use CGCalendar

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

Re: How To Use CGCalendar

Post by Dr.CSS »

Look in the modules admin for the default template as it may be a table layout with a size call inline...
KitchM
Power Poster
Power Poster
Posts: 328
Joined: Mon Dec 02, 2013 3:26 am

Re: How To Use CGCalendar

Post by KitchM »

Sorry, but I can't find "modules admin" no matter where I look. Could you please direct me?

Thanks.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: How To Use CGCalendar

Post by Dr.CSS »

The CGCalendar modules admin where you add events...
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: How To Use CGCalendar

Post 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...
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
KitchM
Power Poster
Power Poster
Posts: 328
Joined: Mon Dec 02, 2013 3:26 am

Re: How To Use CGCalendar

Post 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.
Locked

Return to “Modules/Add-Ons”