Content last modified Tuesday 24 August 2021
hop to #bottom
Categories:
Author:
About It:
Get it:
Rate it:
  • Helpful?
  • 0 Yes
  • 0 No
Flag it:

If you'd like to provide updated information and do not have access to directly edit, please contact the site admin; thanks!

phw_DTD

A plugin that handles switching of MIME Types, serving Textpattern documents as application/xhtml+xml, with a DTD of XHTML1.1 to browsers that support it. Other browsers just get XHTML1.0 with text/html as mime type. See also this forum thread.

Additionally, the plugin uses ob_gzhandler to compress (gzip) the files as send to the browsers. (saves a bit of bandwidth…)

This plugin use a variation of the Keystone method.

To use:

  • in your page templates, delete everything you have at the top of the document, including the opening <head> tag, and replace by <txp:phw_dtd />
  • You’ll need to modify one Textpattern file: publish.php (on line 170, it is sending headers as text/html; the line can be commented out, as the plugin will take care of those headers.

===================
//comment out the following line in textpattern/publish.php
// header(&#8220;Content-type:text/html; charset=utf-8&#8221;);
===============

Article Request Count:
Initially released:
2004-11-02
Posted here:
24 Mar 2005

You know you want to visit the Archives.
Published with Textpattern