Closed (won't fix)
Project:
Content Construction Kit (CCK)
Version:
4.7.x-1.x-dev
Component:
content.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
2 Jan 2007 at 17:52 UTC
Updated:
23 Jul 2008 at 21:27 UTC
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.
| Comment | File | Size | Author |
|---|---|---|---|
| title-error.png | 58.69 KB | MsDetta |
Comments
Comment #1
karens commentedThis 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.
Comment #2
karens commentedOops, 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.
Comment #3
yched commentedThis field is the node's title.
As such it is required, like for any other node type's title field.
Comment #4
yched commentedLooks like Karen was faster :-)
Comment #5
MsDetta commentedOk - 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...
Comment #6
webchickThe 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.
Comment #7
MsDetta commentedThanks 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.
Comment #8
karens commentedThe 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.
Comment #9
fagoI 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?
Comment #10
dopry commentedclosed, won't fix and leave it that way.