By jjkiesch on
is there a way to have both a select list and a text field for taxonomy terms when creating a node? the select list is great, but having to explain adding another taxonomy term to my users is somewhat frustrating. it would be great if there was a way to quickly add new terms from the node form.
is there perhaps a module that does this already?
Comments
You can set the vocabulary to
You can set the vocabulary to "tags" then you have an auto complete text box and they can add new terms.
yeah, that's what i'm doing
yeah, that's what i'm doing currently. the reason for wanting a dropdown is because i just wanted users to be able to see a current list of what's available in case there is a term similar, so they won't create a new one each time.
+1
+1
I'm looking for a function to put into a module to do this. I can see in the database that anything I enter into my autocomplete field gets put into the table 'field_data_field_fieldname`.
Which hook or function should be used to modify this?
Glenn
THECA Group
Solved
Here's the code from a quick module I wrote, where fielda is a term select field, and fieldb is an autocomplete term field.
Glenn
THECA Group
Select list with an autocomplete term field for taxonomy
Hi Glennnz,
I want to use your php code but I'm a newbie and have no idea how to add it in. Could you tell me where I put this code?
Just so you know what I'm trying to accomplish, I have a taxonomy list of terms and I want the users to be able to add additional ones but still see the list I have. Is this what the code you've written will handle?
Thanks so much!
Hélène
Hi Helene That code is in a
Hi Helene
That code is in a file called combine_terms.module, as a part of a custom module.
At the moment the code is extremely specific to my case, and is not configurable at all.
When I have a chance over the next couple of weeks I'll rewrite the module to make it more configurable, and post it up.
Glenn
THECA Group