Difference between revisions of "App Settings"

From Univention Wiki

Jump to: navigation, search
(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...")
 
Line 5: Line 5:
 
= App Settings =
 
= App Settings =
  
App Settings are...
+
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:

The settings page opens in the App Center module when the App is installed

A simple input field

Configure script

A script ...

Configure host script

A script ...

Personal tools