Why does the "Add Content Type" label/title become a required field on the CCK created form?

For example, I created a Athlete Profile, content type with label/title of Athlete Profile. On the CCK form, there is a required input for a field called Athlete Profile.

See attached image with cursor pointint to problem.

CommentFileSizeAuthor
title-error.png58.69 KBMsDetta

Comments

karens’s picture

Status: Active » Closed (won't fix)

This is under the control of the node module, not CCK. And the reason is that if you create nodes without titles you will break all kinds of other things (i.e. node titles are used as links by most other parts of Drupal.) It is possible to create a custom module that will override that behavior, but CCK isn't going to do it, you'd have to do it yourself.

karens’s picture

Oops, I was talking about 5.x where the node module controls this, but we have the same reason not to do it in 4.7, it will break all kinds of things since you won't have a link to the node any more.

yched’s picture

Status: Closed (won't fix) » Fixed

This field is the node's title.
As such it is required, like for any other node type's title field.

yched’s picture

Looks like Karen was faster :-)

MsDetta’s picture

Ok - but don't entirely understand the reply.

Have a question based on your reply:

What do I tell the users to input in the form's required input box for Athlete Profile? Do I have them input their name again? Since the content type Athlete Profile is part of profile, isn't this redundant?

Feeling like an idiot...

webchick’s picture

Category: bug » support

The title corresponds to what will show up in listings, like for example admin/node, or in blocks, and so on.

So you'd make the field some required value that you wanted to show up in all listings. Maybe the athlete name or something.

MsDetta’s picture

Title: Add content type label/title becomes required form field » Change weight value for label/title

Thanks for previous answer - I finally see the light :)

Now I'd like to suggest a feature change - Why is the title weight set to -5 and unchangeable? I think this should be the first field on the form, so would prefer that it have a weight of -11 so that it appears as the first listing rather than the last listing.

karens’s picture

The title is not a CCK field, so for now at least, CCK leaves it alone. Somewhere is is a request to allow a way to set the title weight, not sure where that is and not sure if/when it will get done.

Also, I just found this module, which might be a solution for your titles, http://drupal.org/project/auto_nodetitle.

fago’s picture

Category: support » task
Status: Fixed » Postponed (maintainer needs more info)

I already thought about support such a feature. Fieldgroup could go for the title and body field and support moving these into groups too, but then it could/should also adapt the weight.

So I could write that, but I'm not sure where the weight-code should go? Just add this into the fieldgroup module (which would be probably most straight-forward) or where else?

dopry’s picture

Title: Change weight value for label/title » Change weight value for label/title
Status: Postponed (maintainer needs more info) » Closed (won't fix)

closed, won't fix and leave it that way.