Using another plugin only when it is installed
Hi together,
i would like to use another plugin, if the user installed it. If not, my plugin just should just have less functionality but throw no exceptions. If i add a <depends>-Tag to the plugin.xml File, my plugin would only work if the other plugin is installed, right? So what can i do to achieve this behaviour?
Best regards,
Moritz
请先登录再写评论。
Is it possible to get version/other information of another plugin in this way?
Just use PluginManager.getPlugin("<<pluginId>>").getVersion()
There's an attribute called "optional" that does exactly what you want. In that case, the extensions specified in "other_plugin.xml" will only be registered when users of your plugin have the dependant plugin installed.