Smarty Modifiers

This page defines smarty modifiers which can be used in Aurora Commerce.

Standard modifiers

Aurora Commerce supports all standard smarty modifiers. The full list and documentation for each can be found here: http://www.smarty.net/docs/en/language.modifiers.tpl

Custom modifiers

strip_smarty_tags

This strips out smarty tags, basically anything between { and }.

Example

Usage:

{$page_content|strip_smarty_tags	}

Input:

This is a sample <b>blog</b> page. Related blogs are: {contentFind items_per_page="3" item="items" type="all" order_by="title" order_by_ascending="true" search="city"} {include file="content/content-find.tpl.html"} 

Output:

This is a sample <b>blog</b> page. Related blogs are:  

strip_all_tags

This strips out markup tags and smarty tags, basically anything between < and > and between { and }.

Example

Usage:

{$page_content|strip_all_tags}

Please note, that this code will produce exactly the same results:

{$page_content|strip_tags|strip_smarty_tags}

Input:

This is a sample <b>blog</b> page. Related blogs are: {contentFind items_per_page="3" item="items" type="all" order_by="title" order_by_ascending="true" search="city"} {include file="content/content-find.tpl.html"} 

Output:

This is a sample blog page. Related blogs are: