By leolou on
In my CCK form, there are a number of checkboxes. I want to make them align in columns.
I have tried and read much about this but i cannot follow this
http://drupal.org/node/197578
Is this a custom module?
Also, should I theme the form myself instead?
Comments
Yes, the technique discussed
Yes, the technique discussed on that page involves creating a custom module, if I understand it correctly. The first code block is actually a snippet that is an example of how you could add the necessary form elements to a custom form. In your case, since you're using CCK, you'd probably use hook_form_alter instead to modify the checkboxes already generated by CCK. There's a good introduction to using hook_form_alter done as part of the Drupal Dojo.
--
Drupal Theme Developer’s Cheat Sheet | 45 Screencasts to Get You Kicking Ass with Drupal