diff options
author | Jon Dowland <jmtd@debian.org> | 2011-08-27 22:11:55 +0100 |
---|---|---|
committer | Jon Dowland <jmtd@debian.org> | 2011-08-27 22:11:55 +0100 |
commit | e727297764c64dfb2d369d786f17dcddeeab01fe (patch) | |
tree | afb54ff2fe620cb6b91dddb62d2fe7fed9586144 /doc/todo | |
parent | 6e8a4a83abe398ee7183e6997fccad5b1a345185 (diff) | |
download | ikiwiki-e727297764c64dfb2d369d786f17dcddeeab01fe.tar ikiwiki-e727297764c64dfb2d369d786f17dcddeeab01fe.tar.gz |
support dicts in setup
At the moment, setup values cannot be hashes and also be edited via the
web interface.
Diffstat (limited to 'doc/todo')
-rw-r--r-- | doc/todo/support_dicts_in_setup.mdwn | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/todo/support_dicts_in_setup.mdwn b/doc/todo/support_dicts_in_setup.mdwn new file mode 100644 index 000000000..c89158e21 --- /dev/null +++ b/doc/todo/support_dicts_in_setup.mdwn @@ -0,0 +1,19 @@ +It would be nice for some plugins to use hashes as setup data structures +(which ones? pagespec aliases for one. Any others?), but these cannot +currently be adequately described in `getsetup()`, nor represented in +`websetup()`. It would be nice to extend ikiwiki to support this. + +I've had an initial go at how to represent this in a nice way within a HTML +page. An initial mock up is available at +<https://github.com/jmtd/ikiwiki/blob/websetup_hashes/hash.html>. The +approach taken is to use a javascript hash/dictionary as the canonical copy of +the data; to express that in the form elements, and to capture all relevant +events to update the main data structure (and the HTML representations +thereof). + +I imagine packing the js structure into a form element which is posted, and +ignoring the other form element data. + +This would mean mandating javascript support for editing such hashes. + +— [[Jon]] |