[support] Drupal 6: How can I create a Drupal "Page" (not a block) without any theme?

Walt Daniels wdlists at gmail.com
Wed Feb 8 03:32:17 UTC 2012


We did this for 2 years with most of the old Dreamweaver site still
available after we converted to Drupal.  I very occasionally updated an old
page, but mostly to convert to a 301 to the Drupal side. We finally got rid
of all the old html pages a few weeks ago, but are still fixing an
occasional not found page where someone linked a new page to an old page.
There are some cute tricks to 301 html pages to someplace else that doesn't
involve large changes to .htaccess (just one line to run html pages with
php in them).

AddType application/x-httpd-php .html

then, for example, replace about.html with
<?php
// Permanent redirection
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.example.com/aboutus");
exit();
?>


On Tue, Feb 7, 2012 at 9:43 PM, Gordon Heydon <gordon at heydon.com.au> wrote:

> Hi
>
> The easiest method is to just put them into a subdirectories of your
> drupal site which he can access.
>
> Otherwise you will need to write your own handler which will print the
> page and then return null to the menu handler so the theme is now
> printed. Much like you would if you Wang to return Ajax.
>
> If you what to do this as a not you will again need to do the same
> thing but return provide your own nose view handler.
>
> Gordon.
>
> Sent from my iPhone
>
> On 08/02/2012, at 10:23 AM, John Mitchell <mitchelljj98 at gmail.com> wrote:
>
> > Drupal 6: How can I create a Drupal "Page" (not a block) without any
> theme? I do not want this "Page" to include any header / footer / left /
> right  column and also no content. My understanding is that this isn't
> possible but could I create an additional theme for my site which is just
> completely blank, and apply this to the appropriate pages? We have a
> salesman that wants to build his own set of pages within Dreamweaver and
> then I would apply this blank theme against just these pages without
> impacting the existing theme that is utilized for the other pages.
> > --
> > [ Drupal support list | http://lists.drupal.org/ ]
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20120207/df0fc0e9/attachment.html 


More information about the support mailing list