The Date Module is *very* useful for this. You can set it up to define its “granularity” (i.e. I use it for the same purpose and only define year and month.) You have lots of control over the display and input formats, and you can use the field for sorting or filtering.

 

I wish that I knew about this module from the start. :-)

 

The only problem is that since I specify that the display is “F Y” (i.e. November 2007), if I don’t enter a month, it’ll show up as “January.” There may be a way to fix that, but it isn’t high on my priority list yet.

 

Sharon

Webmistress

www.jvibe.com

 


From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Sarah.Vardy@student.griffith.edu.au
Sent: Wednesday, November 28, 2007 1:33 AM
To: support@drupal.org
Subject: Re: [support] CCK Common Fields

 

Can anyone tell me how to set up metadata fields with cck in the first place?

 

I want to set a year and a month metadata field for a custom content type called News article.

 

Any help would be great.

 

Sarah =)

----- Original Message -----
From: Shyamala <shyamala@netlinkindia.com>
Date: Wednesday, November 28, 2007 4:22 pm
Subject: Re: [support] CCK Common Fields
To: support@drupal.org

> You can predefine the  date_created, date_modified,
> user_created,
> user_modified, url
> values for both content type, use, computed field, or pass
> values to the
> create form to populate these fields.
>
> These are possibilities. If you could elaborate on the when the
> two content
> types are created and how they are linked. What is the order of
> creation...
> I could help.
>
> Shyamala
> ----- Original Message -----
> From: "Tom Holmes Jr." <tom@tomholmes.net>
> To: <support@drupal.org>
> Sent: Wednesday, November 28, 2007 12:27 AM
> Subject: [support] CCK Common Fields
>
>
> > I'm looking to implement Drupal 5.3 and I'm going to be using
> the CCK to
> > create some different content types.
> >
> > Two or more of my content types will have the same metadata
> field names
> > and types:
> > for example: date_created, date_modified, user_created,
> user_modified, url
> >
> > Is there a way I can set this up so that my content types will
> ALWAYS> get these shared fields ...
> > or do I just have to setup those fields seperately with each content
> > type I create?
> >
> > Thanks!
> >                          Tom
> >
> > --
> > [ Drupal support list | http://lists.drupal.org/ ]
>
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>