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.
-
- Forum Members
- Posts: 42
- Joined: Wed Nov 10, 2004 10:17 pm
Cross referencing plug-ins.
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:
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.
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}