After created a new content type in CCK, I'd like to save some screen space by showing/editing several fields at the same row.

For example, from the default:

Office:
[__________]

Floor:
[__________]

Room No.:
[__________]

to a single row layout:

Office: [__________] Floor: [__________] Room No.: [__________]

What's the best way to accomplish this?

Thanks
horace

Comments

WorldFallz’s picture

Theming the form. For a good tutorial see Fine-tuning the UI by Theming Forms In Drupal 6.0.

IWasBornToWin’s picture

viewfield module allows you to display a view within a node. You build the view any way you want....in your case, you would build the view based on the 3 fields above and display them "in line" within the view. You then save the view, go over to your node type, add a new field with a fielt type "viewfield". Assign default value to the name of your saved view. Check box provided claiming that this value is mandatory and then creators of new view will not even see this viewfield when creating a new node. They will only see the fields asking for infomation. Once they view the node they will see your view showing in the node, with the inline fields.