Author Topic: Add priority option in compose..  (Read 5280 times)

Offline pratik_1712

  • Jr. Member
  • **
  • Posts: 43
Add priority option in compose..
« 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

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Add priority option in compose..
« Reply #1 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
Then you could just append your content to the end of one of the existing objects.

Offline pratik_1712

  • Jr. Member
  • **
  • Posts: 43
Add priority option in compose..
« Reply #2 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..??

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Add priority option in compose..
« Reply #3 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