Hello,
I've done plugin in plugins dir... and it works in templates correctly... But is there any chance to run my smarty_cms_function_something() in module? - for examle if I want tu run cms_version "tag" witch is plugin in php of module...
Thank you!
How tu execute plug-in in module...
Re: How tu execute plug-in in module...
If you look under extensions > plugins page then hit the name of the plugin they will tell you how to use it most times...
Re: How tu execute plug-in in module...
Yes, usually there is help for each plugin... But it shows smarty tag usage only... And I want to use plugin-function in module - it means in PHP code of any module... something like
Thank you. Pavel
Code: Select all
$class_name->cms_version($params,...);
Thank you. Pavel
Re: How tu execute plug-in in module...
You can't, not like that. You may use smarty to evaluate a template, and for that you'd need to do something like:pjanda79 wrote:And I want to use plugin-function in module
Code: Select all
$result = $smarty->fetch('eval:{aSmartyTag}');
Code: Select all
global $CMS_VERSION;
return $CMS_VERSION;
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!