rilwis/meta-box — Issue #80: Settings Pages
Author: franz-josef-kaiser
Created: 2012-01-20 19:54:01+00:00
State: open

@rilwis @funkedgeek

I added a branch [settings_page](https://github.com/franz-josef-kaiser/meta-box/tree/settings_page) to my fork.

You will have to take a look at [`/root/settings_page.php`](https://github.com/franz-josef-kaiser/meta-box/blob/settings_page/settings_page.php) and add [`/root/demo/demo-settings_page.php`](https://github.com/franz-josef-kaiser/meta-box/blob/settings_page/demo/demo-settings_page.php).

To run the demo, you need to add

include_once RWMB_DIR.'demo/demo-settings_page.php';
include_once RWMB_DIR.'settings_page.php';

List of things that are tested & work:

* Has Screen Options
* Screen Options: 1 & 2 column layout (save & reload to try out)
* Static Meta Boxes (which are just a proof that the page hooks work) get being added. Take a look at `RW_Meta_Box_Settings_Page::show();` line 120
* Adding title, `$page_hook`, capability for the settings page
* Registers without a problem as last item within the registered "pages"/post_type sub menu
* Help tab incl. contents - multiple tabs possible

List of things that don't work:

* Keep meta boxes in position
* Register meta boxes on `'side'` context
* *Register custom RW_Meta_Box meta boxes*
* Saving process

List of things to come:

* Settings sections - like you know it from Settings pages - [Settings API](http://codex.wordpress.org/Settings_API)
* Tabs - like you know it from Appearance » Theme select pages
One Section = One Tab

Here's the "funny" thing: When inspecting the meta boxes, you see that they're registered and _should_ appear. Go down to [Line 190 in settings_page.php](https://github.com/franz-josef-kaiser/meta-box/blob/settings_page/settings_page.php#L190) and uncomment the debug function. Then you see that everything seems to be right. I simply got no idea (and no more time) of what's wrong around here.

I would appreciate if you could take a look