As I understand it, MODX is using smarty like syntax in manager templates.
Example: manager/assets/modext/widgets/core/modx.combo.js line 224
,tpl: new Ext.XTemplate(
'<tpl for=".">'
,' <div class="x-combo-list-item">'
,' <span style="font-weight: bold">{templatename}</span>'
,' <tpl if="category_name">'
,' - <span style="font-style:italic">{category_name}</span>'
,' </tpl>'
,' <br />{description}'
,' </div>'
,'</tpl>'
)
Now I want to apply some changes to the template combobox.
Stripping tags from the content of {description} would be a good start. The usual smarty syntax (v2+) to do this would look like this:
{$description|strip_tags:true} or {$description|strip_tags}
This doesn't work. Removing the dollar sign doesn't help as well.
Two Questions:
1. I couldn't find any documentation giving advice how to build templates using smarty syntax in MODX. If anyone has a good link for further reading, I would be very happy to learn about it.
2. Can somebody point me to the file where the db is queried for the templates or how I can modify the content of description before it is used by modx.combo.js?
Regards,
pepebe
[ed. note: pepebe last edited this post 12 years, 7 months ago.]