Planet Drupal

Planet Drupal aggregates broadly appealing, Drupal-related blog posts pertaining to the community at large (code, advocacy, marketing, infrastructure etc.). These are my posts published at the Planet.

Using Google Fonts on your Drupal website

Last week Google announced their Font API and Font Directory, which provides a simple, cross-browser method for using any font in the Google Font Directory on your web page. That announcement made me very excited and I decided to spent my evening to make a Google Fonts Drupal module. Building the module didn't took me long (thanks to the powerful Drupal API) so I was able to release a working version of the module the same evening.

Use the Termcase module to apply taxonomy formatting

The project I'm currently working on involves several authors writing a lot of content. They tag all articles and pages with self-entered terms (free-tagging). Because not every author uses the same case for these terms/tags the layout became quite messy. By using the termcase module you can improve the layout of your tags by automatically transforming all terms to vocabulary-specific case formatting. Read on!

Extend your Page Title using the Drupal breadcrumb path

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.

Pages

Subscribe to RSS - Planet Drupal