2008-09-05, 07:16 AM
I am wondering how I can have multiple instances of a plugin.
I am thinking that I can get the user to set the name of the plugin and that then will be used for the name that is displayed in the config applet and the menubutton off root, of course logging and config.xml settings can be set to the selected name, the only thing I am stuck at is how does the code get to know the name of the plugin if there are multiple instances?
I was wondering if there is a method I can call that when the plugin loads it will read the name of the button that the user selected from the main menu, is there such a method and is this the best way of doing this?
Cheers
I am thinking that I can get the user to set the name of the plugin and that then will be used for the name that is displayed in the config applet and the menubutton off root, of course logging and config.xml settings can be set to the selected name, the only thing I am stuck at is how does the code get to know the name of the plugin if there are multiple instances?
I was wondering if there is a method I can call that when the plugin loads it will read the name of the button that the user selected from the main menu, is there such a method and is this the best way of doing this?
Cheers