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
{foreach from=${1:\$items} key=${2:key} item=${3:entry} name=${4:name}}
   <description>smarty foreach loop</description>

Any help on this would be greatly appreciated.

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

Return to Plugin Development

Who is online

Users browsing this forum: No registered users and 4 guests