Just like to know what part of the code to edit to have the Calendar Plugin display the full year instead of '11.
Thanks
Display full year in Calendar Plugin?
Re: Display full year in Calendar Plugin?
plugin_calendar.tpl
|formatTime:"%B '%y"
to
|formatTime:"%B '%Y"
|formatTime:"%B '%y"
to
|formatTime:"%B '%Y"
Regards,
Ian
Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
Ian
Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
Re: Display full year in Calendar Plugin?
The code you posted:
|formatTime:"%B '%y"
to
|formatTime:"%B '%Y"
Could not be found in the plugin_calendar.tpl
A similar line regarding the formatTime in this file goes like this:
$ts_title = serendipity_formatTime("%B %Y", $ts, false);
|formatTime:"%B '%y"
to
|formatTime:"%B '%Y"
Could not be found in the plugin_calendar.tpl
A similar line regarding the formatTime in this file goes like this:
$ts_title = serendipity_formatTime("%B %Y", $ts, false);
Re: Display full year in Calendar Plugin?
That is most definitely not from the plugin_calendar.tpl. (Or you're using a really weird template.)allLED wrote:$ts_title = serendipity_formatTime("%B %Y", $ts, false);
The file you're supposed to edit is the one in /templates/YOUR_TEMPLATE/. If your template does not have a plugin_calendar.tpl, copy the one from /templates/default/ to /templates/YOUR_TEMPLATE/ and edit the copied file.
YL