Adding Lead statuses programmatically within plugins

22 views
Skip to first unread message

nmbo...@gmail.com

unread,
Apr 27, 2012, 9:25:24 AM4/27/12
to fat-free...@googlegroups.com
Hi.

I'd like to be able to bundle some Lead statuses with extra functionality within another rails engine, and inject those in from there, rather than making having to edit config/settings.yml for each deployment.  I'm using FatFreeCRM as an engine.

Is it possible to add extra statuses programmatically, on app initialization say, from a plugin?

Thanks,

Nick Booker
Sunfield Technology Ltd

p.s. as I'm trying to develop a plugin I'm unsure if this belongs in the Users or Developers group - sorry if I've posted in the wrong one

altwarp

unread,
Apr 28, 2012, 11:39:38 PM4/28/12
to fat-free...@googlegroups.com
Hi Nick,

There is no workflow engine as such. So if you would like to add more statuses / transitions add a lead controller action for the transition and a route like `put '/leads/:id/transition_name' => 'leads#transition_name'` then you will need to override the leads/_lead.html.haml partial to add your transition to the UI

Regards
Ben Tillman
Reply all
Reply to author
Forward
0 new messages