Closed (fixed)
Project:
Panels
Version:
5.x-2.0-beta3
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
13 Apr 2008 at 22:32 UTC
Updated:
28 Apr 2008 at 01:52 UTC
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
Comment #1
merlinofchaos commentedThis 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.
Comment #2
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.