How can I use taxonomy term in pathauto generated URLs for "basic page" nodes? I have the taxonomy vocabulary added. I named it "department" and I have it populated with terms. I also added that vocabulary as a field to the "basic page" content type, and it is successfully showing up as a drop-down list when new pages are created, with list options pulled from the taxonomy. I made the field required.
As for the pathauto part... Pathauto is installed, and I want to add a pathauto pattern for "Default path pattern (applies to all node types with blank patterns below)." I can add a pattern like...
[node:nid]/[node:title]
...and that works, but I can't figure out how to add the taxonomy term to it. For example, if I add a basic page, and I set the "department" field (which is linked to the "department" taxonomy vocabulary) for that page to "shirts" and the title of the page is "Blue Shirt," then I would like the pathauto-generated URL to be...
http://www.example.com/shirts/blue-shirt
So to accomplish that, I tried the following pattern...
[term:name]/[node:title]
...but then I get the following error...
The Default path pattern (applies to all node types with blank patterns below) is using the following invalid tokens: [term:name].
It seems that only node-related patterns are allowed. How can I use taxonomy-related patterns for basic page URLs?