[support] Integrating completely unrelated pages into Drupal
DTH
david at hartster.org
Tue Jun 21 22:46:47 UTC 2011
Maybe kludgy, but could be very quick to do depending on your structure: in
a custom module:
/**
* Implementation of hook_menu().
*/
function example_menu() {
$items['test/page'] = array(
'title' => 'Test Page Title',
'page callback' => 'test_page',
'access arguments' => array('access content'),
'type'=>MENU_NORMAL_ITEM
);
return $items;
}
function test_page(){
$request = drupal_http_request("http://www.example.com/pages/test.php");
return $request->data;
}
> Date: Tue, 21 Jun 2011 12:29:20 -0500
> From: Scott Massey <scott.massey at gmail.com>
> Subject: [support] Integrating completely unrelated pages into Drupal
> To: support at drupal.org
> Message-ID: <BANLkTik7m+C8r1-MrBdG1OG2zkgvxovQWA at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi!
>
> I am about 6 months into Drupal and enjoy it immensely. I am putting
> together a portfolio of some web development I have done and have several
> pages of data visualiztions using php and a javascript library called
> Protovis. If I want to bring that into drupal as a page, is there a way to
> do that? There are library calls, jquery, etc. I am having trouble wrapping
> my head around how to do it. I would like the pages to be a menu item that
> opens a page within the drupal site. Here is an example of a page:
> http://modernamericanman.com/ids499/protovis7.php
>
> Thanks!
>
> Scott
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20110621/fc5f31e6/attachment.html
More information about the support
mailing list