Drupal 7

sivaji's picture

Drupal 7 Multi Sites Configuration reviewed

The real power of Drupal not only relies on its Modules, but also on how it is projected different from the other so called Content management Systems (CMS). One such factor that displays Drupal high from others is its ability to adopt with Multisite and its key features.

selvam's picture

Altering views table output

Views module provides an easy way to render data from the Drupal database. It is often needed to use table output format to meet the design requirements. One such similar occasion needed customizing the table output.

The scenario was, we had a list of discounts with validity date as its one of the attributes. We wanted to show expired discounts in a different color to distinguish it from active discounts. What helped us was hook_preprocess_views_view_table().

sivaji's picture

Changing the column name of a MySQL table in Drupal

The use case is to change the column merchant_nid to nid in table {cb_clicktracking}.

sivaji's picture

Drupal IBAN Verification using Libraries API

In Drupal projects it's often needed to make calls to functions or methods defined in thirdparty PHP scripts. PHP include, require or its siblings has been the most simple and traditional way to achieve it. Drupal offers a dynamic and more flexible way for doing it. Such that any module can define thirdparty script and allows other module to make use of it and alter as needed.

selvam's picture

Drupal Form API - Overriding required field asterisk

Forms are the essential components of Dynamic websites. At KnackForge we firmly believe and make the best use of Drupal CMF. API forms the backbone of Drupal's success and Form API is the most important among them. When Form API used together with the blend of themeing layer, it gives a fine control to get the desired output.

Forms in Drupal are created using PHP array.

sivaji's picture

Beware of core search module

A quick tip for sites using Drupal 7 core search module. It is very common to see Drupal sites counting on core search module to feature native site search functionality. When the volume of the content grows, need for offloading the search to thirdparty server could felt; as core search doesn't scale or designed to yield optimal output.

selvam's picture

Drupal 7 FAPI - Using form states for conditional field display

Introduction

Drupal introduced a new form element attribute called 'states'. This adds Javascript to change the state of an element based on another element. The state denotes the property of a form element, for eg. visible, enabled and so on.

Common states

sivaji's picture

Removing "Login or register to post comments" link from comment view

Drupal provides a handful of settings to format the comment listing. One thing that we found very irrelevant in comment view is the link item "Login or register to post comments" especially when the comments are styled to display as flat items. Let's take the snapshot below from drupal.org issue queue.

sivaji's picture

Playing with Views API

Views, one of the most powerful module in the Drupal ecosystem. It has a great ability to create custom pages specific to project requirements from within Drupal admin interface without having to write any code. But at times it may become tedious even for the Views module to accomplish a few usecases. At such a point, things can be achieved programmatically by leveraging the API. This post aims at providing a practical piece of codes pertaining to Views for different scenario.

sivaji's picture

Querying the data in Apache Solr index from drupal module

At KnackForge we thrive hard to deliver best Drupal sites. As a part of this cause, for our potential Drupal sites we opt to use Apache solr as engine offering searching functionality. This makes our sites more scalable.

Recently team KnackForge was engaged in developing a massive Science News publishing site inspired by eScienceNews.com. More details about this site can be found in this case study page in drupal.org.

Pages

Subscribe to RSS - Drupal 7