Skip to main content

Drupal

Drupal stuff

Views and i18n

I just started working on my first multi-lingual site in Drupal this week (woo-hoo!), and ran into a minor issue with one of my views: both the English and Spanish versions of translated nodes were appearing in the view. No good!

Flickr Slideshow Support in Drupal Content Fields

File under

Just released a patch to the Video Filter module that adds support for embedding Flickr slideshows in content fields. It’s pretty flexible. Just browse to a set or its slieshow, copy the URL, and add it as you would any other media type in Video Filter:

[video:http://www.flickr.com/photos/some_user_name/sets/56109963647105794/]

So far it’s just for the 5.x branch, but if the patch is accepted and there’s interest, I’ll gladly port it to 6.x.

Getting a path to your subtheme

File under

Was working with a subtheme today and ran into a problem with theme_get_path(), which is supposed to return the path to the active theme (actually, it's slightly more complicated than that; the value you get back depends on the context in which you call it).

Unfortunately, theme_get_path() does not always work correctly for subthemes.

Assumptions and Errata: Two Quick Tips

First tip of the day: when reading any kind of technical book, one of the first things you should do is check the errata. This will save you time, hassle, and drywall repair costs.

Second tip of the day: don't assume. This is an infinitely more difficult tip to follow through on than the first, because most of the time, you don't even realize you're making an assumption.

Syndicate content