Theming
Theming the user account page
This is an example of creating a template file to custom theme the Edit Account page in Drupal (user/#/edit). For the sake of an example of what "could" be done, the template is split into a two column layout, with parts of the form in each column.
Theming CCK input forms with hook_form_alter
A short guide with references and examples of methods for custom theming CCK input forms.
More control of teasers
<?php if (!$page) { // If shown as a teaser, e.g. search results or tag listing ?>
Content of the regular teaser.
<?php } // End teaser
else { // Begin full node view ?>
This is the full node view (e.g. example.com/node/2)
<?php } // Close the PHP if/else for teaser versus full node view. ?>Generate unique CSS classes for the body tag of every page
This info is from my post at http://drupal.org/node/360484#comment-1206770
I've moved it here to work on cleaning it up and preparing it to be added to the Drupal handbook.
Theming the full Article pages (nodes)
While the page.tpl.php file of your theme is the "highest level" template which controls the layout of your site overall and by default is consistent through all the pages of your site, there are a number of more specific template files that control how sub-elements of pages are themed "within" page.tpl.php, such as the different content that appears on each page throughout the s
Theming Content Types and Views
At this point the majority of the underlying "functionality" for your Article content type and the Views that will display the Article listings/teasers are now complete. However, it's very unlikely that things are "looking" the way you want them to quite yet. That's where Theming comes into the picture (customizing the "look and feel" of your site).
Creating "home" regions to use in your page.tpl.php template file
You can design/code your whole home page's content within the same main template file that the rest of your site's pages use (page.tpl.php), by wrapping the following bit of PHP code around all the code/content that is meant to be shown only for the home page:
Creating a home page using CCK
One interesting method of making a home page that offers a mix of easy editing of static fields, plus the ability to embed blocks and other dynamic content, is by making your front page using CCK.