mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[ACA-1743] extension settings (#1399)
* upgrade tslib * initial settings skeleton * migrate language picker setting * support string parameters * remove process extensions workaround * update extensions schema * update docs * unit tests * fix unit test
This commit is contained in:
@@ -16,6 +16,7 @@ Learn how to extend the features of the Alfresco Content Application.
|
||||
- [Actions](/extending/actions)
|
||||
- [Application actions](/extending/application-actions)
|
||||
- [Rules](/extending/rules)
|
||||
- [Settings](/extending/settings)
|
||||
- [Application features](/extending/application-features)
|
||||
- [Custom icons](/extending/icons)
|
||||
- [Registration](/extending/registration)
|
||||
|
45
docs/extending/settings.md
Normal file
45
docs/extending/settings.md
Normal file
@@ -0,0 +1,45 @@
|
||||
---
|
||||
Title: Settings
|
||||
---
|
||||
|
||||
# Settings
|
||||
|
||||
The application settings can be accessed via the `/settings` route.
|
||||
|
||||
You can project custom configuration groups via the `settings` section:
|
||||
|
||||
```json
|
||||
{
|
||||
"settings": [
|
||||
{
|
||||
"id": "extensions.ps.settings",
|
||||
"name": "Extensions: Process Services",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "Enable Process Services Extensions",
|
||||
"key": "processServices",
|
||||
"type": "boolean",
|
||||
"value": false
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
At runtime, you are going to get an extra group called "Extensions: Process Services"
|
||||
with a custom boolean setting "Enable Process Services Extensions".
|
||||
|
||||

|
||||
|
||||
## Parameters
|
||||
|
||||
Each setting parameter object supports the following properties:
|
||||
|
||||
| Property | Description |
|
||||
| -------- | ----------------------------------------------- |
|
||||
| id | (optional) Unique identifier |
|
||||
| name | Public name, can be translation key |
|
||||
| key | The key to use when saving to the storage |
|
||||
| type | The type of the value (boolean / string) |
|
||||
| value | (optional) Default value to use for the setting |
|
Reference in New Issue
Block a user