Project

General

Profile

Extending plugin configuration

Added by Jurgen Reniers over 10 years ago

Hello,

I'm currently developing a Redmine plugin with limited knowledge of rails/redmine. I'm trying to have a plugin Settings page where I can check
certain issue statuses (based on the model), how would I go about extending the settings so that it can take an array of these settings?

I noticed there's a setting_multiselect in the SettingsHelper, but I don't quite understand how to use this. From an example I saw the first parameter takes a symbol linking to a value in the settings.yml, but how do I enter my own setting description and setting-name? Having no controller for this makes it extremely difficult to get extend the settings beyond the standard functionality.

Another question is if there is any way of doing validation on the settings input.

Thanks,
Jurgen