hiya folks,
I need to create a new content type "research project" that contains a field "faculty" which is assigned via a pulldown list. The pulldown's allowed values need to be generated dynamically -- they are all of the $titles of the (published) "faculty" nodes, an existing CCK content type.
One way I've imagined approaching this is by developing a taxonomy where the terms of the taxonomy are dynamically generated from all the values of a field for a particular CCK content type.
I don't know if taxonomy is the right way to approach this - that's part of what I'm hoping for feedback on. Maybe there's a more efficient way than this?
any and all advice would be very much appreciated!
cheers,
twsp
Comments
Category Module
You can use the category module instead of the taxonomy, then let the faculty nodes inherit the category behaviour from the category module.
Though you will probably want to see if the category module suits you first.
category module
maherg,
many thanks for the feedback. I've looked at the category demo site but never installed it before. I'll give it a shot!
cheers,
twsp
nodereference
Why don't you make 'faculty' a field of nodereference type? In its settings, ask it to list only nodes of the 'faculty' node-type.
Later, you can use Views to list "research project" nodes pointing to some specific 'faculy' node.
Brilliant!
wow, nodereference really did a great job for me. And that autocomplete feature is such a nice bonus.
Thanks so much, mooffie!