Home
A blog about web development and Drupal.

hooks

May 30, 2014

Conditional Fields in Drupal Views

Views is an essential part of any Drupal site. It is very versatile and allows non-developers to set up all kinds of listings of their content. However, no matter how versatile it is, you will always find a scenario that is not feasible to set up on its user interface. But if you are a developer, you have even more ways of manipulating views. Making one field conditional on another field One not so uncommon scenario is where you would like to make the display of one field conditional on some other field. Let's suppose you have a listing of recent content. The listing shows the content type,…

July 15, 2013

Paragraph Level Search Results with Solr

Apache Solr is a great alternative to Drupal’s built-in search engine. With the help of the Apache Solr contributed module, it is not even too difficult to get it up and running on any Drupal site. Even though Solr is a very sophisticated search platform with many features, there is one kind of functionality that it does not provide out of the box: paragraph level search results. Imagine that there is an article with very extensive content that could spread across multiple pages if it was printed in a book (like this blog post). Let’s suppose a site visitor searches for a keyword that is…