In the form to add a new content type using cck, the last (mandatory) field is "title field label". Is there a way to remove/edit this field? I'd like to turn the title field into a date field.

Comments

WillieBHines’s picture

You can't remove it, but I don't think you need to.
That field is to decide what to call the "title" of that content type.

Or another way to say it is: a "title" field is required for every content type, but you don't have to call it a "title" -- you can call it "Name" or "Album Name" or "Recipie" or whatever is appropriate to your CCK. So you set in that final field what you want the title to be called.

Now if you want it to be a date -- that's trickier, because I think it has to be a text field. But I would just use that last field to rename the title field to "Date". It'll still be a text field, but you can format it however you want in you .tpl.php file!

Like if your CCK is called "recipie" then make a node-content-recipie.tpl.php file, and format the title like this:
echo strftime("%b %d, %Y", strtotime($node->title));

Something like that. A bit roundabout, but that's what I'd do.