Dropdown Select List - Populate with Database Data?

Knucklehead00 - July 6, 2009 - 13:39

Hey all.

I know how to do something like this with a PHP/Smarty setup, but I just cannot figure it out with Drupal.

So, I have a field called "Authors". I want this field to be populate by the various entries that I have for the "Authors" content type. I know that I need to write some PHP code to make this happen, but I am not sure how to go about it. I need to return a keyed array.

Any help would be appreciated.

Thanks.

hEY

devenderdagar - July 6, 2009 - 14:19

Hey

You can use cck module with node reference for this. cheers

Not sure I completely follow

Knucklehead00 - July 6, 2009 - 15:45

Not sure I completely follow Deven.

http://drupal.org/project/cck

danielb - July 7, 2009 - 06:04

http://drupal.org/project/cck
That comes with something called 'Node reference' which is for exactly what you said.

 
 

Drupal is a registered trademark of Dries Buytaert.