Home Using the Drupal Theme Developer Module

kenlapz.ORG - House of Joomla Designer

Using the Drupal Theme Developer Module

E-mail Print PDF

There is one module that makes designing for Drupal much, much easier. That is the Theme Developer module. It allows you to click on almost any part of your site and see precise details on how it is built.

To get it working, we need two modules: the Devel module and the Theme Developer module. To get started, download both of them and upload them to your /sites/all/modules/ folder.

Upload and Enable the Modules

tutuploadsmedia_1283458562557.png

Go to Administer >> Site Building >> Modules >> check all 5 Devel boxes and click "Save configuration".

tutuploadsmedia_1283459212897.png

Go to the front of your site and look in the bottom-left hand corner. You'll see a black box called "Themer Info". Check that box.

tutuploadsmedia_1283459279286.png

Up in the top-right corner of the site you'll see a larger black box. It does a pretty good job of explaining what to to!

Examine Your Site

tutuploadsmedia_1283459561977.png

Hover over any part of your site and you'll see a red box around that particular element.

tutuploadsmedia_1283459617210.png

1) Template called: the name of the file which is controlling the layout of this element
2) FIle used: the location of the file in #1
3) Candidate template files: if you'd like to create an override for this part of the page, these are suggested file names. The easiest thing to do is copy the file in #2, renaming it and saving it in your template folder. This is what the files mentioned in this example would do:

  • block-user-1.tpl.php ... if you create this file, it will only provide a template for this particular block
  • block-user.tpl.php ... if you create this file, it will only provide a template for this user blocks
  • block-left.tpl.php ... if you create this file, it will only provide a template for blocks in the left div.
  • block.tpl.php ...if you create this file, it will provide a template for all blocks

4) Preprocess functions: These functions connect what happens in the module code to what gets sent to the theme

Drupal Theme Developer Module

This video comes courtesy of Moshe Weitzman.

Read more: http://www.ostraining.com/newsletters/drupal/using-the-drupal-theme-developer-module/

 

Members Panel

  • user LOGIN


- Do not have an account? Register
- Lost your Password? Resend Password
- Lost your Confirmation Link? Resend Confirmation Link

Partner Website

Upload & Download Information

Popular Joomla Tips and Tricks

Sponsor Links

Members Statistic

Latest Member : leradresse
Members Online : 0
Today : 0 Registers
This Week : 1 Registers
This Month : 1 Registers

Partner Websites


Website Statistics

Members : 19105
Content : 1313
Web Links : 9
Content View Hits : 1268420