I'd like to add a new taxonomy term and assign the node while adding or editing the node. I don't want to use any of third party modules. I'd like to do it by myself in code. Maybe some of you have faced this problem. Anyone know how to do it?
- Go to admin/structure/types/manage//fields
Add new field:
- Select field type -> Term reference
- Select a widget -> Autocomplete term widget (tagging)
You should now be able to add new terms in node add/edit form via the autocomplete field. You don't need any custom modules. Drupal's core taxonomy module offers this functionality.