ChiliProject is not maintained anymore. Please be advised that there will be no more updates.

We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.

Plugin API to add plugin to project settings menu (Feature #299)


Added by John Yani at 2011-03-20 12:14 am. Updated at 2011-09-02 07:58 pm.


Status:Ready for review Start date:2011-03-19
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:Plugin API
Target version:-
Remote issue URL: Affected version:

Description

It seems like there is no way to add a per project settings from plugin. Is there?


Related issues

related to Feature #382: Plugin API to add tabs to Admin Settings Open 2011-05-06

History

Updated by Felix Schäfer at 2011-03-20 07:58 am

Other than overriding ProjectsHelper#project_settings_tabs to add your tab, no. I think that would be a candidate for a MenuManager type menu.

Updated by John Yani at 2011-03-24 07:50 pm

Should I also override ProjectsController.settings method to get some data for my partial view?

Can I add a field to Project model from my plugin? Is there some way to add one to one relationship between my plugin's model and a specific project?

Could be a duplicate of http://www.redmine.org/issues/3686

Updated by Felix Schäfer at 2011-03-25 03:57 pm

John Yani wrote:

Should I also override ProjectsController.settings method to get some data for my partial view?

Or at least add any data you need by wrapping it.

Can I add a field to Project model from my plugin? Is there some way to add one to one relationship between my plugin's model and a specific project?

Yes and yes, but those are "plugin/rails dev 101"s. I think the plugin tutorial and advanced tutorial on redmine.org cover parts of that, if you have specific questions ask in the forum :-)

Updated by Ryan Briones at 2011-03-31 08:06 pm

I needed this ASAP so I worked up a patch to do this. It can be found at

https://github.com/ryanbriones/chiliproject/tree/project-settings-menu-manager

I don't know if it's in the proper ChiliProject standards, but I'd be happy to rework it as necessary.

Updated by Eric Davis at 2011-04-01 10:53 pm

  • Category set to Plugin API
  • Status changed from Open to Ready for review

Updated by Felix Schäfer at 2011-05-05 08:17 pm

Ryan Briones wrote:

I needed this ASAP so I worked up a patch to do this. It can be found at

https://github.com/ryanbriones/chiliproject/tree/project-settings-menu-manager

I don't know if it's in the proper ChiliProject standards, but I'd be happy to rework it as necessary.

Looks OK from a first quick look, mind making a github pull request for that?

Updated by Felix Schäfer at 2011-05-05 08:30 pm

Ryan Briones wrote:

Already done!

Oh, then I've overlooked it, sorry :-) Just make sure to post the link to the pull request to the corresponding issue, thanks.

Updated by Eric Davis at 2011-05-06 06:33 pm

Ryan:

Thanks for the pull request. I have two comments I added to it, can you take a look and let me know what you think?

I also opened #382 so we can do something similar to the Admin > Settings page.

Updated by Pedro Algarvio at 2011-08-08 09:03 am

Could we have this on the next minor release?

Also available in: Atom PDF