Tag Archives: Drupal

Drupal – Introduction to Drupal Theming @ 2

Yesterday we have talked about the simplest way to theme Drupal content
Drupal – Introduction to Drupal Theming @ 1

But this is not a very good approach because printing inline HTML/PHP inside the theme function is not a good programming practice. This time, i want to create a .tpl.php for the block so we could separate the backend and frontend coding.

Create the following module. Continue reading Drupal – Introduction to Drupal Theming @ 2

Drupal – Add Image to Apache Solr Search Result

Apache Solr is a very good web search engine and it works very well with Drupal. This post shows you how to customize the default pure text search result template by adding node image to each result record.

First, we need to load the corresponding node for each search result. This can be done in the <theme>_preprocess_search_result(&$variables) function. Add it to the template.php. Continue reading Drupal – Add Image to Apache Solr Search Result

Drupal – Remove Revision Information, Authoring information and Publishing options in Node Form

If you want to hide the revision information, authoring information as well as publishing options, the Formfilter module could help.

Download and enable the module and login as admin. you will find out there is a link named as Filter all node forms in any node edit form. Continue reading Drupal – Remove Revision Information, Authoring information and Publishing options in Node Form