Drupal 7

sivaji's picture

Leveraging CKeditor template to theme Drupal contents

WYSIWYG (a.k.a HTML Editor) has become a De facto for quickly formatting and publishing contents from dynamic site like Drupal. This is certainly a time saver and prevents from getting hands dirty with HTML.

In this connection, CKEditor has been a pioneer and around in use and development cycle for a decade (first release was on March 2003, in the name FCKeditor).

Ganesan's picture

Creating separate page.tpl.php per content type


  • Template file to display a page's output in Drupal
  • This file contains a combination of php and html tags
  • To render the content, we need to use the PHP variables. For list of available variables, see handbook page


Ganesan's picture

Make confirmation emails from simplenews obey newsletter settings

Simplenews is one of the solid Newsletter management modules for Drupal. It allows a Drupal site to have multiple newsletters at once, nodes can be sent out as newsletter to multiple recipients on a single cron run. It plays well with HTML emails as well with Editors like WYSIWYG, Drupal mail system and other contrib modules like Mime Mail. Besides these, it allows to have specific sender name and email address per newsletter.

Karalmax's picture

Altering labels in User registration form

It is apparent that we modify any form in drupal by implementing hook_form_alter(). But there are cases when even the hook_form_alter() cannot offer a solution in altering the form fields. I recently faced such a situation, when I was trying to empty the labels in the password & confirm password fields in the user registeration form in Drupal 7.
narendran's picture

Creating a custom drush command

No Drupal Developer needs introduction about Drush. The power and features of Drush has made the job easier for many developers. Drush by default has a list of commands that we can make use of, the entire list can be seen here. But apart from that, the Drush does has the feature to allow custom commands. 
sivaji's picture

Creating horizontal form tabs in Drupal 7

Creating Vertical tabs in Drupal 7 forms is an easy task, but to accommodate the design needs we at times have to use different style. For instance, horizontal tab might be needed. The same makes more sense for shopping cart check out like pages. And here the need for looking solutions outside the Drupal core arises as horizontal tabs are not readily available in core.

sabareesh's picture

Alter WYSIWYG's form height

Once the installation of a Drupal instance is done, I guess almost 90% of the developers would first download "What You See Is What You Get".  Inline formatting, Text format options, Hyperlinks, Media and iframe support all these makes WYSIWYG a heaven to opt first after installation. No developer would have the heart to say any shortcoming in this feature rich but yet simple module, I am no exception to this too !

sabareesh's picture

Make panel's title translatable

Panels provides great salvage to those lost in the sea of page partition and block placement. It might take more than one blog to completely explain all the concepts, merits and advantages of using panels module in our site. But those who use Internationalization might differ a bit with my statement ! Yes, One of the shortcomings that I noticed recently in the panel's module is its ability to deal jointly with the Internationalization.

narendran's picture

Drupal - programmatically creating QuickTab using custom code

QuizTabs  module is a very nice addition to bunch of drupal modules. This module allows you to create blocks of tabbed content, specifically views, blocks, nodes and other quicktabs. I had a different requirement where I needed to use dynamically generated content in different tabs. I ended up in creating quicktabs content from code. 
Lets assume, we have a page and content is generated from code something similar below,
sabareesh's picture

Iterate 2 arrays in a single foreach loop

The topic looks so simple isn't it? It looked simple to me when I ran into such a kind of need. The first and foremost PHP function that I thought to get this done was array_combine. It did produce the desired result, the below piece of code shows my implementation,


Subscribe to RSS - Drupal 7