This is the second time I have posted this question (last time under Converting to Drupal), I apologize if this is not the right forum
I am trying to create a content type that lists guide services (fishing, if you're curious) by state. Each guide (node) should have a "State" field... and I want the content creators of the site to be able to select the state from a select list.
When I go into CCK, after creating the content type I go to create a new field. These are the options for the type of field I can make:
1. Integer -> Text Field
2. Decimal -> Text Field
3. Text -> Text Field
4. User Reference -> Select List
5. User Reference -> Autocomplete Text Field
If I choose #4, it looks like the only select list I can generate is a selectable list of all the users on the website. "User Reference" leads me to believe these choices are only useful for listing of users signed up on a Drupal website.
Do I need to download different widget types? What am I doing wrong?
Comments
I also tried
I want to note that I also tried creating the field as a type "Text" and that with the following file:
http://drupaleasy.com/files/states.txt
I was able to set it up so that users could only input a valid two letter state code "RI" or "NV" and it would display the proper state names "Rhode Island" and "Nevada".
I suspect that pipe delimited list was on the right track... but it's been really really really tough for me to find documentation on this particular subject.
I am guessing you have not
I am guessing you have not enable one of the default CCK modules, I think it is the option module that provides the select list.
Thank You!!
You just finished up 3 hours of headaches for me. Some things are just so freaking hard to figure out in drupal. Thanks!
Enable the Option Widgets module
Enable the Option Widgets module that comes with CCK.
You might also consider using taxonomy for this. There's a nice handbook page that has most of the steps listed for that approach (including a state and state abbreviation dataset.) I'm guessing that googling
Drupal plus some state names will help you to find it.