Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Topic closed
[ARCHIVED] anc_header: send HTTP headers within your templates
_(This plugin is no longer available. Alternative: aks_header
Another very simple, one-tag plugin that lets you send arbitrary HTTP headers from within templates. This could be potentially useful for having a Textpattern-controlled 404 page (as discussed here), doing some sort of redirect voodoo with a Location:
header, or implementing your own fun but completely useless X-
headers (like Slashdot’s X-Bender and X-Fry.)
Download the plugin: http://achase.net/things/textpattern/anc_header_1.0.txt
Usage:
anc_header
provides one simple tag:
txp:anc_header
Attributes:
content – the header content (Such as ‘HTTP/1.0 404 Not Found’, or ‘Location: /some/other/page’)
replace – True or false. True indicates that the header should replace a previous header of the same name, and false will add another header of the same type. Default value is true.
Permlink:
http://achase.net/files/19/headerplugin
Last edited by els (2010-04-05 00:06:56)
Offline
Pages: 1
Topic closed