Page 1 of 1

Cross referencing plug-ins.

Posted: Sat Nov 13, 2004 4:27 pm
by Matt Jason H
Any chance we could see this in later versions?

So you could use the {plugin} tag of a plug in in another plug in?

Cross referencing plug-ins.

Posted: Sun Nov 21, 2004 3:02 am
by Ted
This is possible now, though it's sort of a hack. Smarty is pretty, well, smart.

Say you want to, I dunno, take the output from News and feed it into a custom plugin you wrote. You can do something like this:

Code: Select all

{capture assign=myoutput}{cms_module module='news'}{/capture}
{myplugin param=$myoutput}
Basically, this takes everything between the capture tags and puts it into the $myoutput variable. Then, you just feed this into your plugin as a parameter. Pretty simple, though sometimes it doesn't work right. We haven't tracked down why yet.