For ABP >= 2.1.1, please use EasyAbp.Abp.SettingUi.
An ABP module used to manage ABP settings
- Manage ABP setting values via UI
- Support localization
- Control display of the settings via JSON (grouping, form controls, etc.)
-
Install nuget packages
-
Application project:
Install-Package Abp.SettingManagement.Mvc.UI.Application
-
Web project:
Install-Package Abp.SettingManagement.Mvc.UI.Web
-
-
Add
DependsOn
attributes-
Application project:
... [DependsOn(typeof(AbpSettingManagementMvcUIApplicationModule))] public class YourApplicationModule : AbpModule { ... }
-
Web project:
... [DependsOn(typeof(AbpSettingManagementMvcUIWebModule))] public class YourWebModule : AbpModule { ... }
-
-
Configure auto api controller
-
Web project:
... public class YourWebModule : AbpModule { private void ConfigureAutoApiControllers() { Configure<AbpAspNetCoreMvcOptions>(options => { ... options.ConventionalControllers.Create(typeof(AbpSettingManagementMvcUIApplicationModule).Assembly); }); } }
-
-
Launch your ABP application, grant the following permissions to your user:
-
Refresh the browser then you can use "Administration > Settings" menu to see the settings!
This module uses ABP's localization system to display the localization information of the settings.The languages currently supported are:
- en
- zh-Hans
The localization resource files are under /Localization/AbpSettingManagementMvcUI
of the Abp.SettingManagement.Mvc.UI.Domain.Shared
project.
You can add more resource files to make this module support more languages. Welcome PRs 😊 .
For ABP's localization system, please see the document
- Grouping
- Type
TODO
- Adding new renderer
- Customizing existed renderers
TODO
TODO
OUTLINE:
-
MyAbpApp.Domain.Shared
- Add setting definitions:
MyAbpAppSettingDefinitionProvider
- Add localization resources:
/Localization/SettingResource
- Add setting definitions:
-
MyAbpApp.Web
- Configure localization option:
MyAbpAppWebModule.ConfigureLocalizationServices
- Configure auto api controller:
MyAbpAppWebModule.ConfigureAutoApiControllers
- Configure localization option:
- Add more languages
- Support setting providers