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?
[solved] cms_date_format unknown modifier (1.11.3.)
[solved] cms_date_format unknown modifier (1.11.3.)
Last edited by urheat on Thu Nov 22, 2012 7:27 pm, edited 1 time in total.
Re: cms_date_format unknown modifier (1.11.3.)
You can use date_format in stead of cms_date_format
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: cms_date_format unknown modifier (1.11.3.)
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.
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.
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.
Re: cms_date_format unknown modifier (1.11.3.)
Thanks!Jos wrote:You can use date_format in stead of cms_date_format
Using "date_format" instead of "cms_date_format" worked.