I'm trying to make a plugin that I need to be as simple as possible to use. If possible, I want the usage to be:
{exp:pluginname:anytext}
And the output to be:
anytext
Obviously there will be more to it than just that, but the essence is that I need the "anytext" bit to be any bit of text, not a hard-coded method.
I've seen plugins that make use of the 4th tagpart, eg. {exp:ce_img:make:anytext ... }
, where the anytext
bit gets used as a variable prefix. Unfortunately, when I try to do something similar, but using the 3rd tagpart instead, I get an error:
Error
The following tag cannot be processed:
{exp:pluginname:anytext}
Please check that the ‘pluginname’ module is installed
and that ‘anytext’ is an available method of the module