By yuku on
I`ve created new content type. It has one list field (field_birhtday[key]) with some values and computed field.
I need to associate birthday field values with taxonomy terms of vocabulary 1.
For example:
list field values: years of birthday -1|1980 2|1981 3|1982............1999
I make a choice 1980, save node, this node associate with term: "Generation P"
values from 1980 to 1989 associate with term "Generation P"
1990-1999 - "Generation Next"
Comments
up
can anyboy help me? pls.
I think it is similar to
I think it is similar to something I have done.
I start with a CCK date field 'cv_geboortedatum', which is the birth date.
In the next code I calculate the age and store it in a computed field 'cv_leeftijd', which is the age.
Next I use the age result to check the right category, and assign the category id (tid) the right id. I looked up the tid values first in the category table.
Hope it is a little bit clear and helps you further...
Regards,
Frank
pretty nifty...
i'm wondering if this would help make a search by age range list after the user has entered their birthdate. How does the end user see this? Do you have a site that is using this code? THanks