I would very much like to use Zen in Drupal 6. Does anyone know how to add an info file?
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | zen-fixed.info_.txt | 1023 bytes | andrewfn |
| #3 | template.php_.fixed_.txt | 1.25 KB | andrewfn |
| #2 | zen.info_.txt | 941 bytes | andrewfn |
| #2 | zen-fixed.info_.txt | 1 KB | andrewfn |
| #2 | template.php_.txt | 12.16 KB | andrewfn |
Comments
Comment #1
johnalbinhttp://drupal.org/node/171205
Comment #2
andrewfn commentedWell, it proved much more of a challenge than I thought it would be. Creating a new .info file was the easiest part. There were several more roadblocks to be removed before Zen worked on Drupal 6 which took many more hours than I was expecting.
As far as I can tell, the Zen theme is working 100%, (but the Zen-fixed theme is having some trouble with sidebars. As soon as this is solved I will upload the fix.)
Here are the problems encountered
_phptemplate_variablesis no longer supported in D6. Instead we must usephptemplate_preprocess_page, phptemplate_preprocess_node & phptemplate_preprocess_comment. I have made the changes which required a re-organization oftemplate.php(attached). Some lines of the old_phptemplate_variableshad to be repeated in each of the new functions.sidebar_leftandsidebar_rightvariables have to be globally replaced withleftandright. This hitspage.tpl.phpas well.error_reporting = E_ALLwhich throws up several errors intemplate.php. They have to be resolved by putting an isset() around the variable, rather than the old way of testing if it is true or false.I have uploaded the complete files which have to be renamed, since the system won't allow php or info files to be attached.
For future reference, the changes for D6 themes are documented here: http://drupal.org/node/132442 , http://drupal.org/node/114774 and http://drupal.org/node/165706
Comment #3
andrewfn commentedI have got Zen-fixed working. The problem seems to be that it needs a copy of
page.tpl.phpcopied into the zen-fixed folder. I'm sure there must be a better way to do this, but at least it works for now.I have also done some tidying up to
zen-fixed.infoand thetemplate.phpwithin zen-fixed. When I figure out how to do it, I will create patch files for the ones I have changed.Comment #4
catchchanging title and tracking.
Comment #5
johnalbinA D6-compatible version of Zen is in the HEAD branch. Which you can download from CVS or from here: http://drupal.org/node/96810
Note that there are some bugs in Drupal 6.0-rc1 that prevent tabs from being correctly rendered: http://drupal.org/node/207029
And, of course, there's a lot of work that still needs to be done.
Assistance would be appreciated.
Comment #6
flickerfly commentedsubscribing, thanks for your work on this guys.
Comment #7
ajfabb commentedCan we break up #5 into small tasks (that are more digestible for newer theme developers) and file new tasks?
Comment #8
flickerfly commentedI'm changing this so that it is similar to the name other projects are using for this same type of issue. :-) Hope it makes life easier.
Comment #9
johnalbinDrupal 6.x-1.0-beta1 is now available.
Comment #10
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.