how to call one extention in another
Posted: Thu Nov 08, 2007 10:54 am
Hi all,
I have an extension A (which includes a component and a mambot) that does a number of things and works very well for me, except one part of its functionality. For that functionality I have a plugin B which does things how I like it. However, for reasons of layout and of where the extension and plugin appear, I would like to put that plugin B in the place where extension A produces similar functionlity.
I had a look at the php files of both, and saw that both basically have functions which lead to one or another output of html. Since plugin B is a mambot I thought I would simply do a php echo of the mambot name in curly brackets, i.e. {pluginb}, in the php file that prodiuces the html output of extension A. I do not know why this did not work, but my guess was that perhaps there is some special code a mambot has to have to be called in the {mosplugin} way?
Then I just copied the html output of plugin B into the php file that prodiuces the output of extension A. Expectedly that gave me the appearance but not the functionality of plugin B, because the php functions of plugin B were not available in the php of extension A.
Is there a simple way in which I can do this? What I was really hoping for is that I would be able to call plugin B from within the extension A html output in the same way as one would call a plugin in content text by using curly brackets, like {mosimage}.
Any help is appreciated!
I have an extension A (which includes a component and a mambot) that does a number of things and works very well for me, except one part of its functionality. For that functionality I have a plugin B which does things how I like it. However, for reasons of layout and of where the extension and plugin appear, I would like to put that plugin B in the place where extension A produces similar functionlity.
I had a look at the php files of both, and saw that both basically have functions which lead to one or another output of html. Since plugin B is a mambot I thought I would simply do a php echo of the mambot name in curly brackets, i.e. {pluginb}, in the php file that prodiuces the html output of extension A. I do not know why this did not work, but my guess was that perhaps there is some special code a mambot has to have to be called in the {mosplugin} way?
Then I just copied the html output of plugin B into the php file that prodiuces the output of extension A. Expectedly that gave me the appearance but not the functionality of plugin B, because the php functions of plugin B were not available in the php of extension A.
Is there a simple way in which I can do this? What I was really hoping for is that I would be able to call plugin B from within the extension A html output in the same way as one would call a plugin in content text by using curly brackets, like {mosimage}.
Any help is appreciated!