1

How can I setup taxonomy terms so that you can have an extra field called "others", where you can add your own terms if the term you want to use is not defined yet as a term of that taxonomy?

I have researched and came across a module called Select(or other). It does what I want, but it is in text.

My problem now is that I've added so much taxonomies for my student record content type (like countries, or faculties). So I've gone too far and cannot cancel (undo) the taxonomies and replace them with the module I found.

Any suggestion of how to add something like such extra field to the existing taxonomy module?

I imagine that when users insert data, they might not find appropriate terms to choose from. So I want to give them an option that "if current term don't apply to you, then please insert your term manually".

I'm still newbie in Drupal7 and PHP programming.

2 Answers 2

1

Consider something that looks like this "Type of Fruit" taxonomy (with 'Banana' and 'Pear' as the only existing terms):

Sample UI for proposed widget

Obviously, the Select (or other) module that you mentioned is for select lists, you cannot use it for taxonomies. However, to somehow address your requirement like "... insert term here ...", you might want to consider using "Widget type" = "Autocomplete term widget (tagging)" when you actually define the Term reference field.

To further enhance the experience of your users, you may want to also consider the Autocomplete Deluxe module or the Chosen module (for better UI and functionality).

1
  • Oh very nice idea..i always thought that tagging will get the user to guess what are the option available. but never knew it could do that! i think I'll use the the Field Description to tell the user what the the options available, so that he doesn't create a (dum term) by himself, otherwise, i would be a mess. i think the solution to my problem is perfectly addressed. Thank you very much :) Jun 24, 2015 at 13:49
1

When you go to your Taxonomy Vocabulary ([your_domain]/admin/structure/taxonomy/your_vocabulary) you can click on Manage Fields tab and add any field you want. Or go to [your_domain]/admin/structure/taxonomy/your_vocabulary/fields.

1
  • will that make the user add new filed by himself in content type? i mean i dont expect the users to have any access other than the content type when inserting data. Jun 24, 2015 at 13:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.