Hello friends,

On a CCK type there are two fields by default "Title", "Body". I want to get rid of these fields, because I have created a form and don't need of these fields. Does anybody have an idea how to do this.

Thanks

Comments

pyutaros’s picture

Not certain about the title field, but you should be able to remove the body field relatively easily. Start by going to your custom content type and editing it. Look for the Submission Form section. Remove the text from the "Body field label" field. According to the text there, this should remove the body field.

"To omit the body field for this content type, remove any text and leave this field blank."

Drupal's so easy, even I could do it.
http://www.kfol.org/

alpritt’s picture

'Body'...

... go to Home » Administer » Content management » Content types -> Edit Tab (http://www.example.com/admin/content/types/contacts). Scroll down to the 'Submission Form' section delete the content of the 'Body Field Label' text box and the Body field will disappear.

'Title'...

Unfortunately the title field is required and I don't believe you can disable it. You can, however, hide it in your theme. Also check out this module... http://drupal.org/project/auto_nodetitle

awan’s picture

Thank guys for ur help.

I could get rid of "body". The module "auto_nodetitle" is not yet available for 5.X version. So I think I will wait.

Thanks again

zoon_unit’s picture

Title and body fields are required in Drupal and are part of the base node. You can choose not to use the body field in CCK but it will still be there. (only it will be empty)

jdblank’s picture

I don't need to get rid of these fields but I do want to sort and group them. Is there anyway to do this with CCK?

miktit’s picture

Hi there.

Get the module Views - http://drupal.org/project/views
It will help displaying and sorting your cck fields

Regards

Mikkel Soelberg Tiedt - Copenhagen DK