Not sure exactly when this began. Seems the days of the week used to display ok. System info follows:
----------------------------------------------
Cms Version: 2.2.5
Installed Modules:
AdminSearch: 1.0.4
CGCalendar: 2.5
CGExtensions: 1.57.1
CGSimpleSmarty: 2.1.7
CMSContentManager: 1.1.6
CMSMailer: 6.2.14
Captcha: 0.5.5
CmsJobManager: 0.1.2
CustomContent: 1.10
DesignManager: 1.1.4
FileManager: 1.6.5
FilePicker: 1.0.2
FrontEndUsers: 2.7.1
Gallery: 2.3.2
JQueryTools: 1.4.0.3
LightBox: 1.0.1
MenuManager: 1.50.3
MicroTiny: 2.2.2
ModuleManager: 2.1.3
Navigator: 1.0.8
News: 2.51.3
Search: 1.51.2
SelfRegistration: 1.12
Showtime2: 3.5.4
ThemeManager: 1.1.8
TinyMCE: 3.2-beta3
Config Information:
php_memory_limit:
max_upload_size: 2048000000
url_rewriting: none
page_extension:
query_var: page
auto_alias_content: true
locale:
set_names: true
timezone: America/New_York
permissive_smarty: false
Php Information:
phpversion: 5.6.33
md5_function: On (True)
json_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_ALL: 22519
E_STRICT: 0
E_DEPRECATED: 0
test_file_timedifference: No time difference found
test_db_timedifference: No time difference found
create_dir_and_file: 1
memory_limit: 512M
max_execution_time: 60
register_globals: Off (False)
output_buffering: On
disable_functions:
open_basedir:
test_remote_url: Success
file_uploads: On (True)
post_max_size: 1024M
upload_max_filesize: 2048M
session_save_path: /tmp (1777)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)
check_ini_set: On (True)
curl: On
Performance Information:
allow_browser_cache: On (True)
browser_cache_expiry: 60
php_opcache: On (True)
smarty_cache: Off (False)
smarty_compilecheck: Off (False)
auto_clear_cache_age: On (True)
Server Information:
Server Software: Apache/2.4.29 (cPanel) OpenSSL/1.0.2m mod_bwlimited/1.4
Server Api: cgi-fcgi
Server Os: Linux 4.9.70-25.242.amzn1.x86_64 On x86_64
Server Db Type: MySQL (mysqli)
Server Db Version: 5.5.58
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable
Permission Information:
tmp: /home/fuusm/public_html/tmp (0755)
tmp_cache: /home/fuusm/public_html/tmp/cache (0755)
templates_c: /home/fuusm/public_html/tmp/templates_c (0755)
modules: /home/fuusm/public_html/modules (0755)
uploads: /home/fuusm/public_html/uploads (0755)
File Creation Mask (umask): /home/fuusm/public_html/tmp/cache (0755)
config_file: 0400
----------------------------------------------
Days are displaying as "object Object" in CGCalendar
- paulbaker
- Dev Team Member
- Posts: 1465
- Joined: Sat Apr 18, 2009 10:09 pm
- Location: Maidenhead, UK
- Contact:
Re: Days are displaying as "object Object" in CGCalendar
This was changed a while ago.
Take a look at
https://www.smarty.net/docsv2/en/langua ... format.tpl
e.g. {$yesterday|date_format:"%A, %B %e, %Y"} will display as Monday, December 1, 2021
You will need to update the CGCalendar templates that are in use on your site. Post again if you need further help.
Take a look at
https://www.smarty.net/docsv2/en/langua ... format.tpl
e.g. {$yesterday|date_format:"%A, %B %e, %Y"} will display as Monday, December 1, 2021
You will need to update the CGCalendar templates that are in use on your site. Post again if you need further help.
To copy System Information to the forum:
https://docs.cmsmadesimple.org/troubles ... nformation
CMS Made Simple Geekmoots attended:
Nottingham, UK 2012 | Ghent, Belgium 2015 | Leicester, UK 2016
https://docs.cmsmadesimple.org/troubles ... nformation
CMS Made Simple Geekmoots attended:
Nottingham, UK 2012 | Ghent, Belgium 2015 | Leicester, UK 2016
Re: Days are displaying as "object Object" in CGCalendar
Thank you for the quick reply. To be clear, I'm meaning the literals for the days of the week in the top row of the full calendar--that's all that's amiss in the functioning of the calendar. I'm using the most recent default templates that came with the module. Looking at the template "CGCalendarfull" which I assume controls this display, are the following lines that seem to have relevance to the day names:
dayNames: {$datestrings.dayNames},
dayNamesShort: {$datestrings.dayNamesShort},
firstDay: {$firstdayofweek},
columnFormat: {
month: 'ddd',
week: 'ddd d/w',
day: 'dddd d/M'
},
buttonText: {
today: '{$text_today|cms_escape}',
week: '{$text_week|cms_escape}',
month: '{$text_month|cms_escape}',
day: '{$text_day|cms_escape}'
},
If that's not where I should be looking, then where?
Forgive me if I'm not on the right track or misunderstand but I'm not a coder/programmer, just a user with enough knowledge to be dangerous.
dayNames: {$datestrings.dayNames},
dayNamesShort: {$datestrings.dayNamesShort},
firstDay: {$firstdayofweek},
columnFormat: {
month: 'ddd',
week: 'ddd d/w',
day: 'dddd d/M'
},
buttonText: {
today: '{$text_today|cms_escape}',
week: '{$text_week|cms_escape}',
month: '{$text_month|cms_escape}',
day: '{$text_day|cms_escape}'
},
If that's not where I should be looking, then where?
Forgive me if I'm not on the right track or misunderstand but I'm not a coder/programmer, just a user with enough knowledge to be dangerous.
Re: Days are displaying as "object Object" in CGCalendar
Are you using the default "CGCalendar FullCalendar View Sample" template in the layout list or have you created a new template from the options dropdown?
If not try to create a new "CGCalendar FullCalendar" template of type "CGCalendar::fullCalendar View".
Then you are sure your using the latest "CGCalendar FullCalendar" template.
If not try to create a new "CGCalendar FullCalendar" template of type "CGCalendar::fullCalendar View".
Then you are sure your using the latest "CGCalendar FullCalendar" template.
Days are displaying as "object Object" in CGCalendar[Solved]
I thought I had the default template (had not created or edited any) but fooled around , going into file with cpanel file manager, costing and wasting and , surprise! now getting the short day literals where they should be. Thanks. All is good.