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.
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@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/ ]
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@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@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/ ]
On Tue, Feb 7, 2012 at 10:32 PM, Walt Daniels wrote:
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(); ?>
I've used URL aliasing for this as well. The alias is about.html for Walt's example above.
John,
If your user is going to create pages in Dreamweaver, then just have him upload the files into a subfolder of the Drupal root directory...and they will load completely independent of Drupal.
IE:
Drupal Directory == /foo/bar/htdocs/mydrupalsite Drupal URL == blah.com/mydrupalsite
User's DW files directory == /foo/bar/htdocs/mydrupalsite/dwsite User's DW URL == blah.com/mydrupalsite/dwsite
His pages will not be affected by Drupal at all. You just have to be careful when upgrading/updating that you leave his folder structure intact.
With this method, you don't have to do any htaccess redirects or anything like that.
........................................... *Nick Young* Outreach, Communications & Consulting Office of Information Technology North Carolina State University Box 7109, Raleigh 27695 Ph. 919.513.2716 | E-Mail: njyoung@ncsu.edu Web: oitdesign.ncsu.edu Where Am I? go.ncsu.edu/map?njyoung ...........................................
Thanks Nick for the below suggestion it works great.
John
On Wed, Feb 8, 2012 at 8:11 AM, Nicholas Young njyoung@ncsu.edu wrote:
John,
If your user is going to create pages in Dreamweaver, then just have him upload the files into a subfolder of the Drupal root directory...and they will load completely independent of Drupal.
IE:
Drupal Directory == /foo/bar/htdocs/mydrupalsite Drupal URL == blah.com/mydrupalsite
User's DW files directory == /foo/bar/htdocs/mydrupalsite/dwsite User's DW URL == blah.com/mydrupalsite/dwsite
His pages will not be affected by Drupal at all. You just have to be careful when upgrading/updating that you leave his folder structure intact.
With this method, you don't have to do any htaccess redirects or anything like that.
........................................... *Nick Young* Outreach, Communications & Consulting Office of Information Technology North Carolina State University Box 7109, Raleigh 27695 Ph. 919.513.2716 | E-Mail: njyoung@ncsu.edu Web: oitdesign.ncsu.edu Where Am I? go.ncsu.edu/map?njyoung ...........................................
-- [ Drupal support list | http://lists.drupal.org/ ]