Page 1 of 1

[solved] cms_date_format unknown modifier (1.11.3.)

Posted: Wed Nov 21, 2012 7:55 pm
by urheat
After upgrading to 1.11.3, I get an error message of my page template. The problem is with following code:

{if $smarty.now|cms_date_format:"%H" < '18' && $smarty.now|cms_date_format:"%H" > '6' && $smarty.now|cms_date_format:"%w" < '6' && $smarty.now|cms_date_format:"%w" != '0'}

It says that "unknown modifier cms_date_format"...

The code has worked in previous version. Any ideas?

Re: cms_date_format unknown modifier (1.11.3.)

Posted: Wed Nov 21, 2012 9:27 pm
by Jos
You can use date_format in stead of cms_date_format

Re: cms_date_format unknown modifier (1.11.3.)

Posted: Wed Nov 21, 2012 11:02 pm
by calguy1000
cms_date_format is a modifier that is distributed with CMSMS.
For that particular use, it is not really necessary and you can as Jos specified use the stock smarty date_format modifier.

However, I think you should do a site verification to make sure that all of the files made it to your system intact.

the problem with no content blocks defined in the template may go away after you resolve the first problem... However if it does not it is well answered in this forum.

Re: cms_date_format unknown modifier (1.11.3.)

Posted: Thu Nov 22, 2012 7:27 pm
by urheat
Jos wrote:You can use date_format in stead of cms_date_format
Thanks!

Using "date_format" instead of "cms_date_format" worked.