开发者

custom url for taxonomy > vocabulary at Drupal 6

开发者 https://www.devze.com 2022-12-30 11:07 出处:网络
I\'m new at Drupal. a question; I create a hotels directory site. I created Taxonomy>开发者_运维技巧Vocabulary for locations like London, Liverpool, etc... For example the url below lists the London

I'm new at Drupal. a question;

I create a hotels directory site. I created Taxonomy>开发者_运维技巧Vocabulary for locations like London, Liverpool, etc... For example the url below lists the London

localhost/drupal/taxonomy/term/1

how can change that url to something like

localhost/drupal/hotels/london

is it possible? appreciate advices so much!!


Enable the path module in Drupal core, and download and enable the pathauto module from the Drupal modules website. You can use pathauto to set rules over how you wish to rewrite the paths of your taxonomy pages, and you can certainly do something like this.

I am guessing that to achieve the URL alias you are suggesting, the rewrite rules would look something like:

[vocab-raw]/[cat-raw]

Assuming that your vocabulary is called Hotels, and the term is called London.

0

精彩评论

暂无评论...
验证码 换一张
取 消