Converting Drupal 5.x Themes to 6.x in 4 Steps

I just updated my first production site to Drupal 6. (Actually, sugree did it) Since I use custom theme, I need to update it to 6.x format.

Drupal.org provides good documentation. However, it's too long and aims for fully customized themes. My theme is based on Arc Materia and very simple. Here is my simplified version on theme updating.

  1. Add new (themename).info file in directory. (more detail)
  2. Change 3 region names in page.tpl.php (more detail):
    • $sidebar_left to $left
    • $sidebar_right to $right
    • $footer_message to $footer
  3. Add new signature code in comment.tpl.php (more detail)
  4. In very first line of page.tpl.php, change all $language to $language->language (more detail)

That's all.

ดีเลยครับ กำลังหาวิธีอยู่พอดี ขอบคุณมากครับ

Really short but useful article. Thanks.

What about menu functions?

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

Mollom CAPTCHA (play audio CAPTCHA)
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.