taxonomy has many term item, so the normal dropdown select is not suitable, any suggestion is welcome!
I need help.

Comments

fgm’s picture

In this case, you can opt to make it a freetagging vocabulary, in which case, you'll get an AJAX autocomplete.

Note that this means any author will be able to add terms of his own choosing, which is a mixed blessing.

oscnet’s picture

user should select term what had defined by webmaster, and could not allow add terms of his own.
so freetag is not suitable.

fgm’s picture

Then second best suggestion is to

  • roll your own AJAX autocomplete without the ability to insert new terms.
  • or trap form submits (hook_form_alter, maybe ?) and reject submissions before they reach taxonomy if non existent terms have been typed.

I think I would favor the second possibility myself.

tkgafs’s picture

If freetagging is allowed are the existing terms matched with when you type in fields ?

I would like some way of having a fixed vocab for a category but as it will run to several hundred names I dont want to use a dropdown menu to choose the terms from.

In my case end users will not be able to add anything using the categories but I suppose I could easily make a tpying error myself and effectivly get a new term using freetagging

any advice on the best way to do this would be most helpful

thanks

Tkgafs

venkat-rk’s picture

If you are using 4.7, check out the active select module and use it with the category.module (instead of taxonomy). Activeselect helps in the kind of situations you describe.

See this post for more details:
http://drupal.org/node/61238

oscnet’s picture

thanks to Ramdiak, I use activeselect module and it work well.

venkat-rk’s picture

Great to know that it helped you.

tkgafs’s picture

I have just tried out activeselect and while it works well is there any reason that the name of the container you are adding the freetags to doesnt appear, one of my cck content types uses about 10 different containers, hence I need to know which one I am typing into

Tkgafs