Page 1 of 1

[Solved] The Complete List of Core Smarty Modifiers

Posted: Sun Oct 23, 2011 10:21 pm
by kendo451
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?

Re: Wanted: List of Core Smarty Modifiers

Posted: Mon Oct 24, 2011 6:09 am
by uniqu3
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.

Re: Wanted: List of Core Smarty Modifiers

Posted: Mon Oct 24, 2011 8:37 am
by kendo451
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.]

The Rest of the List

Posted: Mon Oct 24, 2011 8:38 am
by kendo451

Re: [Solved] The Complete List of Core Smarty Modifiers

Posted: Mon Oct 24, 2011 8:55 am
by uniqu3
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'

Re: [Solved] The Complete List of Core Smarty Modifiers

Posted: Sat Jun 30, 2012 2:48 pm
by Recon
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