Home Download Buy Blog Forum Support

Snippet not working in *.tpl (smarty) files

Snippet not working in *.tpl (smarty) files

Postby bbonora on Wed Oct 24, 2012 4:53 pm

I'm building a plugin for CMS Made Simple. It's a collection of snippets and auto completions related to the CMS. Everything works as expected when working with a php file but I can't seem to get my snippets to work within *.tpl(smarty) files. Below I've included an example of a snippet.

Code: Select all
<snippet>
   <content><![CDATA[
{foreach from=${1:\$items} key=${2:key} item=${3:entry} name=${4:name}}
   {${5:\$entry}->${6:item}}
   $0
{/foreach}
]]></content>
   <description>smarty foreach loop</description>
   <tabTrigger>smarty_foreach</tabTrigger>
</snippet>


Any help on this would be greatly appreciated.

Thanks,
Ben
bbonora
 
Posts: 1
Joined: Wed Oct 24, 2012 4:41 pm

Return to Plugin Development

Who is online

Users browsing this forum: Exabot [Bot] and 4 guests