Okay so here's the deal I started developing a site for a client using drupal 6, and we finally had all the layout working and looking good, Now I need to start with the actual infastructure and unfortunately several of the modules that i need are only available for drupal 5.10 so I have to downgrade drupal, and now the theme I was using before isn't available for drupal 5.10 and i don't know alot about theme building so my question is, is it possible to "downgrade" a drupal 6 theme to work with drupal 5.10? I tried just adding the theme but the lest side bar and login area aren't being recognized...

thanks

Comments

grrrlshapedthing’s picture

forgot to mention that the theme I'm using is delicious fruit http://drupal.org/project/delicious_fruit

dnewkerk’s picture

Yep. There's really very little Drupal-6-specific stuff in many themes... it's more tricky it there are custom things in a template.php file (that might take some work in some cases to backport). This theme doesn't have a template.php though so no problem. Really the only thing to do is drop the unneeded .info file, and ensure that the region names are correct (off the top of my head the only ones I know are changed between Drupal 5 and 6 are $sidebar_right and $sidebar_left in Drupal 5 became $right and $left in Drupal 6). Also copy and paste the top HTML tag and variables (e.g. $language) from page.tpl.php in a Drupal 5 theme, since I believe some things in there are specific to the version.

-- David
absolutecross.com
[new guide/lesson in progress: Creating a CCK and Views powered Drupal site - feedback welcome]

grrrlshapedthing’s picture

thanks that worked perfectly! and saved hours of hair pulling while I tried to build the same theme for drupal 5 using one of the blank themes

LiquidWeb’s picture

As grrrlshapedthing mentioned there is not much thing to do.

Here are the steps

1- Open page.tpl.php and relace $left with $sidebar_left
2- Create a file named template.php and add this content (note: <?php is not closed)

<?php

function delicious_fruit_regions() {
  return array(
    'sidebar_left' => t('left sidebar'),
    'content' => t('content'),
    'header' => t('header'),
    'footer' => t('footer'),
    'login_box' => t('login')
  );
}

3- Delete .info file

kajamohideen’s picture

Subscribing...