[support] moving field in type of content
Jim Smith
jsmith at wate.com
Fri Jan 4 15:11:51 UTC 2008
What you're describing is possible.
Like I said, you can remove the body field altogether by removing it's name. Or you can rename it to something else. For example, I have one content type that has a field called "Description." It's the body field, but I just renamed it.
The title field cannot be removed, but it too can be renamed. Also, there are some neat tricks that can be used with the auto nodetitle module (http://drupal.org/project/auto_nodetitle) to change how the title is created. With it you can eliminate Title as a field that must be entered by the user, or use another field, like a location field, to create the title.
Based on your questions, it sounds like you're not yet familiar with CCK, and it also sounds like this is exactly what you should be using. I would suggest you do some reading up on that. Look over the modules and try installing one or two. You'll get the hang of it quickly.
CCK, along with Views, are two of Drupal's greatest assets, and in my opinion no sites should be built without them.
-----Original Message-----
From: support-bounces at drupal.org [mailto:support-bounces at drupal.org] On Behalf Of Alex Moreno
Sent: Friday, January 04, 2008 9:25 AM
To: support at drupal.org
Subject: Re: [support] moving field in type of content
that´s great, the solution for the taxonomy field worked perfectly.
The problem with the body like fields, i mean, with the field pre-existing in the system (title, body, etc) is that they cannot be removed or modified. For example, im working in a inmobiliary system, and i dont want a body standard field but a specifications field, among a lot more fields. Is that possible or i´m telling some stupid thing?
Thanks a lot for your help.
On 04/01/2008, Jim Smith <jsmith at wate.com> wrote:
> It's possible that I'm not understanding what you want to do, but let me take a crack at this. My answer would be yes, you can move fields around by setting the weight of the fields. However, I can only give you a partial answer on how to do it.
>
> There's a default weight for the Title and Body of a content type. I don't know how to change those, but perhaps someone smarter than me can help you there. But that may not be needed if you're adding one or more a CCK fields to the content type.
>
> Here's why: When you add a CCK field to your content time, you can change its weight by going to /admin/content/types/your-content-type/fields. Although you can't change the weight of Title and Body here, you can change the weight of the fields you've added, which gives you the flexibility of moving them above or below the Title and Body. Also, if you erase the word Body in /admin/content/types/your-content-type, you remove that field type. They you're free to create a new one that can have it's own weight.
>
> If you want to change the weight of the taxonomy field, it is set on the page for editing the vocabulary. In other words, if I want to change the weight of vocabulary 12, I would go to /admin/content/taxonomy/edit/vocabulary/12.
>
> jns
>
--
[ Drupal support list | http://lists.drupal.org/ ]
More information about the support
mailing list