[Solved] The Complete List of Core Smarty Modifiers

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.
Locked
kendo451

[Solved] The Complete List of Core Smarty Modifiers

Post 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?
Last edited by kendo451 on Mon Oct 24, 2011 8:40 am, edited 1 time in total.
uniqu3

Re: Wanted: List of Core Smarty Modifiers

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

Re: Wanted: List of Core Smarty Modifiers

Post 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.]
kendo451

The Rest of the List

Post by kendo451 »

uniqu3

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

Post 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'
Recon
Forum Members
Forum Members
Posts: 200
Joined: Sat Oct 09, 2010 10:23 am

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

Post 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
Locked

Return to “CMSMS Core”