How would I expose data from panels in non-drupal sites?

I'm trying to fine a way to Drupal content available in iframes on non-Drupal sites without all the header, footer, etc from Drupal. The idea is that the block, view or panel would be available as HTML without the need to make drupal calls on non-drupal sites (that can't make drupal calls) like widgets on other sites, etc.

It seems like this should be fairly easy to do. I've looked for modules to enable this, and I don't see anything. I'm wondering if I'm missing something of my understanding of the core panels module that has this built in.

Any ideas on how this could be done?

Comments

merlinofchaos’s picture

Status: Active » Fixed

This isn't really a thing Panels does, it's a Drupal thing in general: Getting content that's not in the traditional page form.

You need to find a way to theme the content so that you get a very minimal page.tpl.php. Possibly the simplest way to do it would be to add a query argument to the URL, something like http://www.example.com?frame=1

Then, in your template.php you can check to see if $_GET['frame'] is set; if it is, use a different page.tpl.php which just adds the bare minimum necessary to make an HTML page.

Good luck.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.