Shine With SUN

Experiences & Knowledge Shared


« Previous month (Oct 2008) | Main | Next month (Dec 2008) »
Wednesday Dec 31, 2008

NetBeans support for Drupal Enriched : Wizard for developing Themes

Enriching the existing NetBeans plugin to assist developing Drupal based websites, we have added a wizard for developing a new Drupal Theme. On providing details of new Theme, the wizard auto-generates the mandatory '.info' file with template code under the 'sites/all/themes//' folder.

The wizard works as follows :

1. Right click on the Drupal project to add a theme. Click on New --> Other. Select Other and we see an option to create a Drupal Theme. Select it and click on Next as seen in the screenshot below.

2. In the next screen, enter the theme name (preferably in small letters, as per the naming convention). We see the new file, .info getting enlisted in generated files list. The following screenshot captures this.

Click on Finish.

3. Now, the new theme gets added to the Drupal themes and the info file gets autogenerated with template code, as shown in screenshots below :

Now, the user can go ahead with creating a theme, either by deriving from a base theme and modifying the css/template files accordingly, or creating a new theme using a theme engine. As Drupal provides PHPTemplate Theme Engine by default with the Drupal sources, user can create the template php files required for the 5 components and create a new theme. The plugin is uploaded at the Project Homepage and NetBeans Plugins Portal. The documentation for usage of the plugin has also been uploaded on the Project Homepage.


Today's Page Hits: 29