Thursday, December 10, 2009

CSS Hell

Cascading Style Sheets can be very powerful tools. However debugging them when things do not go according to plan can be a real pain.

I decided to try my hand at a little Drupal theming and I am off to a rocky start. Some of the important files are:


  • themename.info — A required file that is new to Drupal 6 which provides information about the theme.
  • page.tpl.php — The main template that defines the content on most of the page.
  • style.css — The CSS file that sets the CSS rules for the template.
  • node.tpl.php — This file defines the content of the nodes.
  • block.tpl.php — Defines the content of the blocks.
  • comment.tpl.php — Defines the content of the comments.
  • logo.png — Your logo, if you are using one.
  • screenshot.png — This is a screenshot of your theme that is used in the admin panel and in the user account settings if you have enabled more than one theme so that visitors can choose which theme they want to use.
  • box.tpl.php — puts a box around things like comments.


How to make a Drupal theme
.

No comments:

Post a Comment