Thomas Bruederli wrote:
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.
In my initial email we were attempting this with the default theme, but aren't seeing it work.
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.
The features we are trying to implement are not really a subset any of these current tasks and we would like to have a separate page for them. Is creating tasks a planned feature to eventually be added to the plugin API or is there another way we could achieve this?
Is it possible to achieve this via creating a separate file within the plugin directory and pointing to it (similar to squirrelmail)?
Thanks!
~Thomas