[solved] cms_date_format unknown modifier (1.11.3.)

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
urheat
Forum Members
Forum Members
Posts: 243
Joined: Sat Oct 17, 2009 6:50 am

[solved] cms_date_format unknown modifier (1.11.3.)

Post 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?
Last edited by urheat on Thu Nov 22, 2012 7:27 pm, edited 1 time in total.
Jos
Support Guru
Support Guru
Posts: 4020
Joined: Wed Sep 05, 2007 8:03 pm

Re: cms_date_format unknown modifier (1.11.3.)

Post by Jos »

You can use date_format in stead of cms_date_format
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: cms_date_format unknown modifier (1.11.3.)

Post 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.
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.
urheat
Forum Members
Forum Members
Posts: 243
Joined: Sat Oct 17, 2009 6:50 am

Re: cms_date_format unknown modifier (1.11.3.)

Post 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.
Post Reply

Return to “CMSMS Core”