Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-01-18 14:10:03

usonian
Archived Plugin Author
From: Dunwich, MA
Registered: 2004-02-24
Posts: 7
Website

[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

Board footer

Powered by FluxBB