I've scoured this site's documentation and forum for a list of CMS Made Simple's Smarty Modifiers that ship with the core.
No joy.
I've noticed that some of the Smarty Modifiers included in Smarty are not included in CMS Made Simple, and we also have endemic species that are only found in CMS Made Simple.
Can anyone point me to a place to find the comprehensive list of Smarty Modifiers in CMS Made Simple?
[Solved] The Complete List of Core Smarty Modifiers
[Solved] The Complete List of Core Smarty Modifiers
Last edited by kendo451 on Mon Oct 24, 2011 8:40 am, edited 1 time in total.
Re: Wanted: List of Core Smarty Modifiers
Could it be that you have read Smarty3 documentation, as this might be a reason that you found out some modifiers are not included.
I think Smarty2 documentation applies very well to current CMSMS.
http://www.smarty.net/docsv2/en/language.modifiers.tpl
You can see what is included in lib/Smarty/plugins folder, it's same as downloading Smarty2 package.
I think Smarty2 documentation applies very well to current CMSMS.
http://www.smarty.net/docsv2/en/language.modifiers.tpl
You can see what is included in lib/Smarty/plugins folder, it's same as downloading Smarty2 package.
Re: Wanted: List of Core Smarty Modifiers
True, Goran, but we also have some additional ones like:
cms_date_format
cms_escape
My goal was to put a comprehensive list in a place in the forums where it can be found more easily.
So here is the Smarty 2 List plus the 2 Core CMS Made Simple Modifiers. [Have to continue it into the next reply because of the BB limit on number of links per post.]
cms_date_format
cms_escape
My goal was to put a comprehensive list in a place in the forums where it can be found more easily.
So here is the Smarty 2 List plus the 2 Core CMS Made Simple Modifiers. [Have to continue it into the next reply because of the BB limit on number of links per post.]
The Rest of the List
- replace
- spacify
- string_format
- strip
- strip_tags
- truncate
- upper
- wordwrap
- cms_escape (see help in your Tags list)
- cms_date_format (see help in your Tags list)
Re: [Solved] The Complete List of Core Smarty Modifiers
Thats nice idea, maybe adding it to WIKI would be nice to.
for cms_date_format is there because it uses Dateformat from global settings but you can still use simply date_format if it should be custom like |date_format:'%Y'
for cms_date_format is there because it uses Dateformat from global settings but you can still use simply date_format if it should be custom like |date_format:'%Y'
Re: [Solved] The Complete List of Core Smarty Modifiers
Hi,
I tried to generate blog summary from CGBlog's content using wordwrap, but it won't work.
This works fine: {eval var=$entry->content|count_words}
But this not: {eval var=$entry->content|wordwrap:10}
-R
I tried to generate blog summary from CGBlog's content using wordwrap, but it won't work.
This works fine: {eval var=$entry->content|count_words}
But this not: {eval var=$entry->content|wordwrap:10}
-R