Cross referencing plug-ins.

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
Matt Jason H
Forum Members
Forum Members
Posts: 42
Joined: Wed Nov 10, 2004 10:17 pm

Cross referencing plug-ins.

Post 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?
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm
Location: Fairless Hills, Pa USA

Cross referencing plug-ins.

Post 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.
Post Reply

Return to “Developers Discussion”