Naveen Gavini wrote:
We are trying to experiment with the new Plugin API and have come across several questions.
We are trying to have our plugin act as its own task and have its own page with a button in the taskbar. I was reading through the mailing list to figure out how to do this, and could not find anything substantial.
I found an email stating:
this->add_button(..., 'taskbar'); or client side with rcmail.add_element('<a href...', 'taskbar');
I added this-> add_button('asd', 'taskbar'); to the init function of the new plugin but it did not add anything to the taskbar.
This should work with the default skin. If you're using your own skin, you have to apply some changes to your templates. Search the default skin templates for <roundcube:container ... />.
For example in includes/taskbar.html you have to add <roundcube:container name="taskbar" id="taskbar" /> within the <div id="taskbar"> block.
This tag gives a hint to the application where the taskbar is and it acts as a placeholder for server-side button inclusion.
Secondly how would we create the page for this new task?
Currently it's not possible to define a new "task" per se. You can only define new "actions" within one if the existing tasks (mail|addressbook|settings). Read http://trac.roundcube.net/wiki/Doc_Plugins#Customactions for more details.
~Thomas _______________________________________________ List info: http://lists.roundcube.net/dev/