I need date fields for a cck content type. I installed date module. I when to add a field. I expected to see a field type called "date." I don't see one. I've checked that date.module is enabled. Am I right in thinking this is how it's supposed to work? Why is it not showing up? thank you.

Comments

mwu’s picture

I did check that I installed 4.7 date and not cvs date.

mwu’s picture

I installed date in modules directory not in cck directory. Upon reading old threads, Karen says to install in cck directory. however, my og contributed modules are installed in modules directory not og directory.

mwu’s picture

I uninstalled date. Reinstalled it inside cck. Same problems.

I think readme.txt should say where to install the module (and whether it matters if its in or outside of cck).

mwu’s picture

Okay. Now I see the date field option. What I did was to create a new content type (instead of editing an old one). I could see the date field options. Then when I went to edit the existing field type, I could see date field options. I recall this happening with nodereference as well.

Karen's comments regarding whether date must be installed cck would still be appreciated. Thank you.

dodorama’s picture

This must be releated to this.
So it's a CCK (cache) problem. Add a comment to that issue if you wuold like developers work on it.
What we can do now is kindly ask Karen to put a warning on the readme and/or date homepage for people who will face this in the future.

P.S. I think that you can put date module wherever you want inside modules directory.

yched’s picture

Status: Active » Closed (duplicate)

this is an occurence of http://drupal.org/node/78969
in short : newly installed field modules don't appear until the cache is cleared

plus : it doesn't matter whether you copy the "date" folder in "modules" or in "modules/cck"

yched’s picture

crap, looks like i've been too slow :-)

mwu’s picture

One thing that confused me also was I was trying to figure out if it's just an api. The readme is very cryptic for a non-programmer.

To save Karen a bit of work, here is a few lines for the readme.

Instructions
1) Install module in cck directory. (You can install it in the modules directory instead. It does not matter.)
2) Enable the module
3) (Due to a bug with caching in cck, you need to do this step). Create a new content type. Add a field (of any type) to it. Save the content type.
4) Now when you create or edit a content type, you should see 2 choices for date field types.

Karen, thanks for a very useful and difficult to write module.