Content last modified Monday 6 March 2017
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
Article modified:
24 Mar 2005

You may want to leave your comments/questions at the Forum thread for quicker feedback. Otherwise, comment away:

Your comment will NOT be submitted until you click the 'Submit' button on the next pageload.

Commented (1)

claudio:

BAD Download link!

Subscribe to this article's comments RSS feed. [ ? ]   View Recent Comments across the site.

You know you want to visit the Archives.

Browse

Categories


Articles

There are also tag clouds, 'cause those are fun.
Published with Textpattern