I am importing some books and would like the url to reflect the category name i.e. sample.com/fishing-books/booktitle where fishing-books is the product category.

There is a field on the URL alias page (patterns): Default path pattern (which applies to all content types with blank patterns below) which I'm trying to make it work, but I haven't been successful. I want something like [cat]/[node:title], but it doesn't work.

2 Answers 2


Have you created a vocabulary for these books?

If not:

  1. Create a vocabulary, e.g. "books_category"
  2. Add to your content type field, e.g. "books_category" (field type: Term reference), choosing the vocabulary you previously created as reference

After that, click at replacement patterns (admin/config/search/path/patterns); choose group "Tokens related to individual content items," or "nodes"; you will find a group of patterns related to your "books_category" field.

I assume you installed the Pathauto module.

  • Great suggestion. I now have it working. Thanks for your help. Commented Apr 20, 2013 at 1:08
  • You're welcome. I'm glad it was helpful.
    – Jack-PL
    Commented Apr 21, 2013 at 16:02

Url alias will give your user a better understanding of what your page has

For more Read it http://www.ziuby.com/url-alias-drupal-user-understandable-names/

  • 1
    While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. Commented Feb 12, 2015 at 10:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.