Drupal 7: Pathauto Taxonomy Terms Template

I have a Drupal 7.9 terminology dictionary according to the following pattern:

category-1
    category-1 > subcategory-1-1
    category-1 > subcategory-1-2
    category-1 > subcategory-1-3
category-2
    category-2 > subcategory-2-1

I want to reflect this taxonomy hierarchy in my url url like

category-1/subcategory-1-1/page-123

For this I use modul Pathauto version 7.x-1.0. but I do not know which one I should use.

I am currently using [node:%field_taxonomy%]/[node:title], but with this template, the URL path is simple subcategory-1-1/page-123, so the complete hierarchy is not reflected. Is there a taxonomy tree template? I cannot find updated information about this, and the actual patterns seem to change in every version of Pathauto.

+5
source share
4

, URL- . , , Entity API. http://drupal.org/project/entity. Entity API Entity tokens. , API-.

-, . "" . URL-, . , , _. . "" . , : ; ;). field_category.

URL → . → expand → , . , .

- [ node: category-category: name]/[node: title], [node: field-category: name] - , mysite.com/term/title.

, Pathauto 7.x-1.0-beta1, Token 7.x-1.0-beta2 Entity API 7.x-1.0-beta8.

! ))

http://drupal.org/node/1044980#comment-4562844

url : [ node: -: : ]/[node: -: : :/]/[node: -: ]/[node: ]

+9

:

[: : ]/[: : ]/[: ]/[: ]

node:

[node:% field_taxonomy%: URL: ]/[ node: ]

. , . ( , : parent: parent:... , ).

, , 3 , ( , ).

+2

, Drupal + Token + PathAuto , .

0

Check out my answer here . You can use the taxonomy entity index module to achieve this behavior.

0
source

All Articles