Closed (duplicate)
Project:
Date
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
25 Sep 2006 at 20:51 UTC
Updated:
25 Sep 2006 at 23:17 UTC
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
Comment #1
mwu commentedI did check that I installed 4.7 date and not cvs date.
Comment #2
mwu commentedI 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.
Comment #3
mwu commentedI 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).
Comment #4
mwu commentedOkay. 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.
Comment #5
dodorama commentedThis 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.
Comment #6
yched commentedthis 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"
Comment #7
yched commentedcrap, looks like i've been too slow :-)
Comment #8
mwu commentedOne 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.