Page 1 of 1

Registering Smarty filters

Posted: Wed Feb 11, 2015 8:02 am
by kristoftorfs
Hi, I want to register a Smarty (pre)filter for my module. For regular Smarty plugins I just call RegisterSmartyPlugin in my module Install method, but this doesn't seem to work for filters.

Where would be the best place to (persistently) register the filter and how should I go about this?

Do note that I do not want to use the main plugins directory as I want to keep my filter with the module.

Re: Registering Smarty filters

Posted: Wed Feb 11, 2015 8:59 am
by kristoftorfs
Found a work-around by using the SmartyPreCompile event.

However, I would like to get some feedback to tell me if this is actually the right way to do this?