Posted by FLX on October 3, 2008 at 1:12pm
Hi!
I'm Dennis and I'm very fresh on Drupal. Can anyone help me or give me some pointers on how to convert this theme to a fully functional Drupal 6 theme?
http://www.smashingmagazine.com/2008/07/16/wordpress-fun-a-free-wordpres...
Thanks in advance!
Regards,
Dennis
Comments
Can anyone give me some
Can anyone give me some advice?
Thanks,
Dennis
Hi Dennis, I'd be happy to
Hi Dennis,
I'd be happy to help if I can. I started writing up a description of how to do this, but it does get a little complicated. I'd say your best bet is to take a basic Drupal theme and have it open so you can compare the two.
So --one thing. Wordpress themes use php includes in a way that Drupal themes don't tend to -- that's why there are separate php files for the header, footer and sidebar, for example. You'll want to merge any includes into the page.tpl.php file. Someone correct me if I'm wrong, but I think in Wordpress the index.php file is the template for the front page and the page.php file is the general page layout. If that's the case, work off page.php first, and then use index.php to make your page-front.tpl.php file or however you choose to theme your front page. I haven't done too much intensive theming of Wordpress...
Take out any Wordpress specific php, and then find the Drupal equivalent from your example Drupal theme and drop it in.
Check out the Drupal API's variable list for what php variables you can use.
Hope that is helpful!
I posted something on my personal blog about converting a regular web page to a Drupal 5 theme -- maybe that would be helpful as well.
Amanda
Help point
Hi Dennis,
How far have you gotten with this conversion so far? Are you stuck at a certain point at which you need help? mndonx has given some good starting tips.
Some other resources
Hi Amanda, David, First of
Hi Amanda, David,
First of all, thanks for the nice write up Amanda. That's a wealth of information for me to dig through! It looks like it isn't as hard as I initially thought it would be. Secondly, I don't know David, I haven't started the conversion yet, I'll probably start this weekend.
I'll let you guys know about the progress.
Regards,
Dennis
D6 version of the book Pro Drupal Development helped me
The latest edition of this book has been a great help to me with D6 theming. I wish they'd had had time/space for a few really complex examples, but all the elements of a typical D6 theme are very well explained.