Days showing as 'object Object' in CGCalendar

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
CapereSpiritum
Forum Members
Forum Members
Posts: 223
Joined: Wed Dec 28, 2011 12:11 pm

Days showing as 'object Object' in CGCalendar

Post by CapereSpiritum »

I'm using CGCalendar 2.4.4 for the first time.
Calling the calendar was very straightforward and styling it looks simple too.

My problem is that it is displaying days of the week as 'object Object'.

Here is my page http://teessiders.artworknetwork.co.uk/ ... endar-Test
I've stripped out most items whilst I get to grips with the module.

{get_template_vars} shows up the

Code: Select all

.dayNamesShort (string) = ["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]
.

I've not yet modified the template, other than to copy and rename it.

I'm using:

Code: Select all

PHP Vn 5.6.30
CMSMS Version		2.1.6

Installed Modules
AdminSearch		1.0.2
Album		1.11
CGCalendar		2.4.4
CGExtensions		1.55.6
CGFeedback		1.8.3
CGGoogleMaps2		1.1.1
CGSimpleSmarty		2.1.6
CGSmartImage		1.21.9
CGStaticMaps		1.0.2
CMSContentManager		1.1.4
CMSMailer		6.2.14
Captcha		0.5.5
CompanyDirectory		1.23.5
DesignManager		1.1.1
FileManager		1.5.2
FormBuilder		0.8.1.6
JQueryTools		1.4.0.3
MicroTiny		2.0.3
ModuleManager		2.0.5
Navigator		1.0.3
News		2.50.6
Search		1.50.2
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Days showing as 'object Object' in CGCalendar

Post by calguy1000 »

This is fixed in the default templates...

but in your current template you can remove the columnFormat object, and it will resolve the issue.

Thanks for providing detail in your post. It helps.
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.
CapereSpiritum
Forum Members
Forum Members
Posts: 223
Joined: Wed Dec 28, 2011 12:11 pm

Re: Days showing as 'object Object' in CGCalendar

Post by CapereSpiritum »

Wow, that was quick.
Thanks CalGuy.
Looking forward to incorporating this into CoDir along with the CGGM2 (which you helped me with recently).

I have to say, very cool modules.
I'm learning, slowly. Head hurts sometimes, but each bit of 'pain' is a good lesson.

Thanks
Simon
CapereSpiritum
Forum Members
Forum Members
Posts: 223
Joined: Wed Dec 28, 2011 12:11 pm

Re: Days showing as 'object Object' in CGCalendar

Post by CapereSpiritum »

Quick question CalGuy
On the events displayed in the Main Calendar View, I am trying to locate or add a CSS class so that I can add a 'cursor:pointer' and 'hover' elements.

I've looked but cannot see it and as the calendar is not displayed in source code, it's proving elusive ::)

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

Re: Days showing as 'object Object' in CGCalendar

Post by calguy1000 »

it's a javascript generated calendar. Inspecting the element will get you close. I don't know what the identifier is off hand.
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.
CapereSpiritum
Forum Members
Forum Members
Posts: 223
Joined: Wed Dec 28, 2011 12:11 pm

Re: Days showing as 'object Object' in CGCalendar

Post by CapereSpiritum »

Thanks.
I'll keep looking.
It'll probably come to me when I'm not thinking too hard.
Post Reply

Return to “Modules/Add-Ons”