wik:plugin:config
Различия
Показаны различия между двумя версиями страницы.
| wik:plugin:config [2023/09/02 17:30] – создано vladpolskiy | wik:plugin:config [Дата неизвестна] (текущий) – удалено - внешнее изменение (Дата неизвестна) 127.0.0.1 | ||
|---|---|---|---|
| Строка 1: | Строка 1: | ||
| - | ====== Configuration Manager Plugin ====== | ||
| - | ---- plugin ---- | ||
| - | description: | ||
| - | author | ||
| - | email : chris@jalakai.co.uk | ||
| - | type : admin | ||
| - | lastupdate : 2014-03-18 | ||
| - | compatible : (bundled) | ||
| - | screenshot_img: | ||
| - | depends | ||
| - | conflicts | ||
| - | similar | ||
| - | tags : configuration, | ||
| - | ---- | ||
| - | |||
| - | ===== Description ===== | ||
| - | |||
| - | {{: | ||
| - | |||
| - | The Config Manager allows wiki [[config: | ||
| - | |||
| - | ===== Usage ===== | ||
| - | |||
| - | The Config Manager is accessible from the admin screen (Login as superuser, click " | ||
| - | |||
| - | Settings are shown with different backgrounds to highlight their current status. | ||
| - | * A blue background is used to show default values ('' | ||
| - | * A white background indicates local changes ('' | ||
| - | * A light red background shows protected settings ('' | ||
| - | |||
| - | Modify settings to your needs and save it by using the '' | ||
| - | |||
| - | ==== How is your config saved ==== | ||
| - | |||
| - | On saving changed settings this plugin will copy the current local settings file ('' | ||
| - | |||
| - | The plugin adds the following lines to the top of '' | ||
| - | |||
| - | <file php conf/ | ||
| - | /* | ||
| - | * DokuWiki' | ||
| - | * Auto-generated by config plugin | ||
| - | * Run for user: < | ||
| - | * Date: <current date/time, rfc 2822 format (day, dd MMM YYYY hh:mm:ss TZ)> | ||
| - | */ | ||
| - | </ | ||
| - | |||
| - | ==== Protecting Settings ==== | ||
| - | |||
| - | You can protect certain settings by placing them in '' | ||
| - | |||
| - | By default DokuWiki loads its configuration files in the following order: | ||
| - | |||
| - | - '' | ||
| - | - '' | ||
| - | - '' | ||
| - | |||
| - | This way, it is ensured that any values previously set from '' | ||
| - | |||
| - | The loading order of configuration files is controlled by the global '' | ||
| - | |||
| - | === Example === | ||
| - | |||
| - | <code php conf/ | ||
| - | <?php | ||
| - | /** | ||
| - | * Protected settings | ||
| - | * Do override DokuWiki default settings and local settings from Config Manager | ||
| - | */ | ||
| - | $conf[' | ||
| - | </ | ||
| - | |||
| - | |||
| - | ==== File Permissions ==== | ||
| - | |||
| - | To be able to save the configuration data, the file permissions of '' | ||
| - | |||
| - | When the plugin detects that the config file can not be written, it will show a message box at the top of the page that says | ||
| - | |||
| - | > "The settings file can not be updated, if this is unintentional, | ||
| - | |||
| - | When this happens, the save button won't be shown. | ||
| - | |||
| - | ==== Triangle, Exclamation and Padlock Mark ==== | ||
| - | |||
| - | Some fields in the configuration page show: | ||
| - | * A yellow warning sign ({{: | ||
| - | * An exclamation mark in a red circle ({{: | ||
| - | * The drawing of a padlock ({{: | ||
| - | |||
| - | These are the meanings of these three symbols:\\ | ||
| - | {{: | ||
| - | {{: | ||
| - | {{: | ||
| - | |||
| - | Please, keep attention when you change these fields. | ||
wik/plugin/config.1693665029.txt.gz · Последнее изменение: — vladpolskiy
