Tag Archives: Taxonomy Image

Drupal – Customize the Views Query

I want to create a taxonomy view which shows the term name and the term image. For those terms without term image, i want to filter out them. Unfortunately there is no term image filter in the view setting. One work around is overriding the view query by implementing the hook_views_pre_execute(&$view) in a custom module. Before you construct the new SQL, you should set all your desire settings in the view editing page first. Then you can create a new SQL base on that view query.

So in the custom module, add the following function. Continue reading Drupal – Customize the Views Query

Drupal – Add Image for Taxonomy

Taxonomy allows you to add Categories and Tags to node. Previously i have created some terms/tags for the Stories vocabulary/category.
Drupal – Manage Categories and Tags by Taxonomy

So now i want to add an image for each of the terms under the Stories. So what you need is a Drupal module called Taxonomy Image.

Enable the Taxonomy Image in Drupal. Continue reading Drupal – Add Image for Taxonomy