How can I use term id instead of term name in path auto?I have a category field in my content type named "field_article_category" and there is a token [node:field_article_category] for it but it is replaced by term name not term id.is there anyway to get term id instead of term name?
The token you should use for the taxonomy term ID is [node:field_article_category:id].
I have a "Categories" vocabulary, and this is the list of the tokens associated to that vocabulary for the nodes.
If you install the Token module, apart from having more tokens available, you will also have a list of the available tokens, from which I have taken the previous screenshot. The list is available after the fields to set the patterns for the automatic aliases, in the "Replacement patterns" fieldset.
I have noticed that out of four vocabularies I associated with content types, only two are listed as tokens; in my case, thought, I don't see all the tokens for that vocabulary, which is different from your case, where you seem to see only part of the tokens associated with a vocabulary.
You likely need the Entity tokens module from http://drupal.org/project/entity for now. We are working on adding the more detailed field tokens into Drupal 7.
in the 'Automated alias settings' of Pathauto you will find the section 'Taxonomy term paths', there is a sub-section called 'Replacement patterns'. Here you will find several patters. The pattern
[tid] is the pattern used to show the unique ID of the taxonomy term.
I hope have understood well your question.