Page 1 of 1

Days showing as 'object Object' in CGCalendar

Posted: Tue Jun 27, 2017 3:19 pm
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

Re: Days showing as 'object Object' in CGCalendar

Posted: Tue Jun 27, 2017 3:27 pm
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.

Re: Days showing as 'object Object' in CGCalendar

Posted: Tue Jun 27, 2017 3:31 pm
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

Re: Days showing as 'object Object' in CGCalendar

Posted: Tue Jun 27, 2017 6:15 pm
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

Re: Days showing as 'object Object' in CGCalendar

Posted: Tue Jun 27, 2017 6:18 pm
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.

Re: Days showing as 'object Object' in CGCalendar

Posted: Tue Jun 27, 2017 6:36 pm
by CapereSpiritum
Thanks.
I'll keep looking.
It'll probably come to me when I'm not thinking too hard.