Difference between revisions of "App Settings"
From Univention Wiki
Wiesenthal (talk | contribs) (Created page with "Category:App Center Developer Guide Apps may be configured from within the App Center. A file describing App Settings may ship with the App, rendering a form for the user...") |
Wiesenthal (talk | contribs) |
||
Line 5: | Line 5: | ||
= App Settings = | = App Settings = | ||
− | + | There are a variety of possible Settings that can be defined. The file is in the ini file format. Easy example: | |
+ | |||
+ | <pre> | ||
+ | [myapp/mysetting] | ||
+ | Type = String | ||
+ | Description = A string type | ||
+ | Description[de] = Eine Zeichenkette | ||
+ | InitialValue = The "default" value of this setting; optional | ||
+ | </pre> | ||
+ | |||
+ | This will render a form: | ||
+ | |||
+ | [[File:appcenter-settings-button.png||The settings page opens in the App Center module when the App is installed]] | ||
+ | |||
+ | [[File:appcenter-settings-string.png||A simple input field]] | ||
= Configure script = | = Configure script = |
Revision as of 09:36, 12 July 2017
Apps may be configured from within the App Center. A file describing App Settings may ship with the App, rendering a form for the user.
App Settings
There are a variety of possible Settings that can be defined. The file is in the ini file format. Easy example:
[myapp/mysetting] Type = String Description = A string type Description[de] = Eine Zeichenkette InitialValue = The "default" value of this setting; optional
This will render a form:
Configure script
A script ...
Configure host script
A script ...