I was looking for a way to define what I want in the node form sidebar and came across this issue: http://drupal.org/node/504446
This is fine for me, as a developer, but I think it would be interesting to have some kind of configuration in the backend.
The way I see it we have three options:
1. The easy way: a textarea on a settings page that takes a comma-separated list. Easy to implement, easy to process.
2. A vertical tabs like series of checkboxes in the node type edit form. Just check whatever you want in the sidebar.
3. Add an 'Admin sidebar' tab to the CCK display settings. Options would be and . This also allows us to define the order in which they sould appear etc..
On a sidenote, I think it would also be interesting to be able to choose whether the extra buttons in the sidebar appear at the top (default) or the bottom (my preference) of the sidebar.
Comment | File | Size | Author |
---|---|---|---|
#4 | template.patch | 773 bytes | mhunt |
#4 | admin-custom-sidebar.png | 20.63 KB | mhunt |
Comments
Comment #1
Peter Törnstrand CreditAttribution: Peter Törnstrand commentedOr, maybe just add common form elements such as "Author information" etc to the right column and skip the setting.
Comment #2
heather CreditAttribution: heather commentedoops. nvm.
Comment #3
mhunt CreditAttribution: mhunt commentedI agree. I'm looking for a way to move "Authoring Information", url path settings, publish settings, menu settings, comment settings to the sidebar of the node edit form.. So far taxonomy forms fall there.
Comment #4
mhunt CreditAttribution: mhunt commentedAttached is a patch to MOVE the following fields into the sidebar:
Or you could patch your own template.php file ( sites/all/modules/admin/theme/template.php) using this:
Replace:
$sidebar_fields = array('taxonomy');
With:
$sidebar_fields = array('taxonomy', 'print', 'menu', 'path', 'attachments', 'revision_information', 'author', 'comment_settings', 'options');
You can use:
dpm($form);
to identify the form fields (that is also in the patch commented out)There is also a screenshot attached.
Be sure that if you are using vertical tabs that those are turned off in the content type settings if you want those fields to show up in the sidebar.