node-form

06
Mar
2010
Grayside

Moving OpenAtrium Node Form Elements to the Right Column

Previously, I discussed how you could move CCK fields into the node form sidebar by careful fieldgroup naming.

If you are of a programmer’s bent, you might instead try the more flexible programmer’s solution–preprocessor function. I dug this out of the atrium_blog feature.

This code snippet isolates a nodereference field attached to blog content and pushes it into the sidebar. This should work to move entire fieldgroups of form elements too.

12
Nov
2009
Grayside

Remove CCK Fields from the Node Form

There is a fine tutorial on drupal.org describing How to set the disabled attribute of a CCK field on your node add/edit form. All that does is deactivate the input widget without removing the clutter. Let’s get rid of the form elements entirely.

To actually remove the field from the input form, change the _mysnippet_fix_disabled() function to the following:

10
Nov
2009
Grayside

CCK Fields and the Open Atrium Node Form

OpenAtrium has some pretty slick styling of it’s node add/edit form. Unfortunately, when you add a CCK field to it, you get something comparatively under-styled and in the main column of the form.

If you want to get that slick styling and move the CCK fields to the right, try the following:

  1. Go to admin/build/modules and enable the Fieldgroup module under CCK.
  2. Go to the Manage Fields page for your content type. Create a new group, the machine name starting as group_sidebar.
Subscribe to RSS - node-form