[drupal-devel] [feature] New field type for profile: taxonomy
wiz
drupal-devel at drupal.org
Wed Mar 16 22:09:02 UTC 2005
Issue status update for http://drupal.org/node/19014
Project: Drupal
Version: cvs
Component: profile.module
Category: feature requests
Priority: normal
Assigned to: Anonymous
Reported by: wiz
Updated by: wiz
Status: patch
Attachment: http://drupal.org/files/issues/profile-taxonomy.patch (3.87 KB)
A new type of field in the profile: taxonomy, useful for a field to
select zero or more terms from a vocabulary. This works like the type
"selection" but multiple selection is possible, and the list of choices
comes from a taxonomy. Unfortunately there is no field in the table
profile_fields to store single/multiple selection - which would be nice
for the type "selection", too.
The selection is stored in a new table (profile_values_term)
additionally to the column profile_values.value. This allows for easy
processing of the selection the user made. I have not defined any
indexes on this new table, which possibly would be required for large
data sets.
It has a small bug: when nothing is selected, it will automatically
select the first entry. The fix would probably have to modify
_taxonomy_term_select in taxonomy.module.
wiz
More information about the drupal-devel
mailing list