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.
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().
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.
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.
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.
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.
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.
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.