zen-cms/Zen-Core — Issue #39: Revamp Settings API
Author: YorickPeterse
Created: 2011-11-09 13:17:58+00:00
State: open
Labels: Enhancement, Todo

While the settings API improved with the removal of ``Zen::Plugin`` it is still
far from finished. The following is broken and has to be changed:

* The process of building the form elements of each setting is done using a
switch statement in a view. This should be converted to something similar to
the way the form elements for custom fields are constructed
(``CustomFields::BlueFormParameters``).
* Setting values can only have a single value as they're not serialized. This
makes checkboxes and select elements with multiple possible values rather
useless. It would be better to serialize values.
* Values are always stored as strings as the types aren't tracked in the models.
This can be "fixed" by serializing the values, then again this would make it
harder to update these settings directly from the database.
* The description fields of settings aren't displayed.