Roundcube Community Forum

Miscellaneous => Roundcube Discussion => Topic started by: pratik_1712 on February 07, 2011, 05:16:53 AM

Title: Add priority option in compose..
Post by: pratik_1712 on February 07, 2011, 05:16:53 AM
I want to add another mandatory option to set the priority in the compose window along with the subject and Recipient..

I need 5 option buttons with different priority levels..

I guess i should use render_page hook in the mail template..

It would be a lot easier to grasp if any plugin already add an additional mandate textbox or any input fields..

or Is the way i am heading correct.. Guide..!!

Thanks and Regards,
Pratik
Title: Add priority option in compose..
Post by: SKaero on February 07, 2011, 07:12:42 AM
While I have yet to use them I think it'd be best to try and use the template_object_* hook Plugin_Hooks ? Roundcube Webmail (http://trac.roundcube.net/wiki/Plugin_Hooks#TemplateHooks)
Then you could just append your content to the end of one of the existing objects.
Title: Add priority option in compose..
Post by: pratik_1712 on February 08, 2011, 03:31:03 AM
can you tell any javascript event..?? i could bind the code to..
An event which will trigger every time the compose windows loads..

I think i should use before or after but not sure what command to use..??
Title: Add priority option in compose..
Post by: SKaero on February 08, 2011, 02:17:18 PM
If you want it to run every time the page is loaded just use the init event and check the task and action http://trac.roundcube.net/wiki/Plugin_Events