Building the Franken-site: Starting Out
This is really a set of notes for myself, so I can document what I’m trying to do and hopefully be able to reproduce it in the future.
I have two sites right now - a Wordpress blog at /, and in /more, a Drupal site. I’m working on a new theme for both that includes content from each on the other, with some interesting ways to switch between them.
I have some ideas on grabbing Wordpress content from a Drupal page/template, so I’m concentrating on solving the other issues right now: starting Drupal and getting some content out of it. So far, I started a test.php file and have the folowing bits:
Start Drupal: Not too bad, Morbus helped me here.
require_once (./includes/bootstrap.inc); drupal_bootstrap (DRUPAL_BOOTSTRAP_FULL);
Grab some content to render: I want to do as much config as possible in Drupal as to the content that appears on the Wordpress side, so I created new region in my theme, ‘shared’, and assigned a couple blocks to it. I then followed up the previous code with this:
print theme(‘blocks’, ‘shared’);
At this point I’m a bit stumped… I’m getting simply a blank page as the output. I suspect is has something to do with not having a template file to use, but I’m not at all certain, and I’d be open to any suggestions.
