Failure or success?
Software is like sex, it's better when it's free.
Linus Torvalds

Tutorials

Step-by-step manuals that can help you to build better websites. If you would like to see a missing topic covered, please let me know!

Translating Views paths in Drupal

Multilingual banner

Drupal offers great multilanguage possibilities for your website. Drupal core already offers a way to translate the website interface AND your content (nodes) in multiple languages. Enabling multiple languages is a piece of cake and translating content is made very simple. However, you need to perform some extra tricks to get the full interface translated. For example: you might want to translate your taxonomy terms and your menu items as well. Or, also very common, using some blocks or menu-items just for a single language only.

Extend your Page Title using the Drupal breadcrumb path

Breadcrumbs

If you use breadcrumbs in your website to help visitors navigate, you could also use these to extend the functionality of your META <title> tag. By doing so, you could change your page title (the thing displayed by search engines) from e.g. Michael Jackson is dead to Latest news > Michael Jackson is dead. Continue reading to read how to get better Page Titles with just a few lines of code.

Inherit the full url of the parent book page by using a Drupal token

Recently I created a book in Drupal using two Content Types. One type called Book Description (which has a cover, an ID and some other CCK fields) and another type called Book Page. So far so good. Problems arose when I tried to setup Pathauto. For the Book Description I entered book/[field_book_id-raw], which worked great. For the Book Pages I needed something like book/[field_book_id-raw]/title-of-my-page. This is where I got stuck.