]> sipb.mit.edu Git - ikiwiki.git/blob - doc/todo/online_configuration.mdwn
update
[ikiwiki.git] / doc / todo / online_configuration.mdwn
1 It should be possible to configure ikiwiki online, in the wiki admin's
2 preferences form. Rather than the current situation where most settings are
3 in ikiwiki.setup, and one or two (like locked pages and upload limits) in
4 the admin preferences.
5
6 In theory, every setting could be configured there. In practice, some
7 settings, like `srcdir` and `destdir` are ones you want to keep far away
8 from editing via the web.
9
10 Currently admin prefs are per-admin, and are stored in the userdb.
11 That seems like a bad choice in the context of this idea. Instead, admin
12 setup should be configured on a separate page than the regular user prefs
13 page, and should be shared amoung all admins, and the ideal storage would be
14 a ikiwiki setup file, which could be loaded in, and written back out.
15
16 The underlying work has been done to privide metadata about all options via
17 getsetup hooks, so it's just a matter of writing a web interface plugin.
18
19 The plugin could have these config options:
20
21         # list of options to include in web setup (safe = all things with safe = 1)
22         websetup_include => [qw{safe}],
23         # list of options to exclude from web setup
24         websetup_exclude => [qw{option_baz}],
25
26 Leaning toward just making it write out to the same setup file, rather than
27 writing to a subsidiary setup file. However, this would mean that any
28 comments in the file would be lost, and that it couldn't be used if the
29 setup file had weird stuff (perl code, etc).
30
31 [[!tag wishlist]]