anc_header plugin for Textpattern

The anc_header plugin allows you to specify custom HTTP headers within your templates.

Download

anc_header 1.0

Installation

After downloading the plugin file, browse to your Textpattern site’s administrative interface, click the admin tab, then click plugins. Click the Browse button, locate the file on your computer, then click the Install button.

The plugin should now appear in your list of installed plugins. Be sure it is enabled before you try to use it. Look under the Active column of the plugin list. If you see the word No next to the anc_header plugin, click it to change it to Yes.

Documentation

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.

License

©2005 by Andy Chase

This plugin is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Also

Syndicate content

Twitter

  • RT @usonian: New post: Ship in the Clouds: Clawhammer Banjo Tablature http://tinyurl.com/y8uvxoc — 5 years 23 weeks ago
  • New post: Ship in the Clouds: Clawhammer Banjo Tablature http://tinyurl.com/y8uvxoc — 5 years 23 weeks ago
  • RT @godfly: Employee. You are the engine that drives this economy. Too bad you’re not the driver. — 5 years 23 weeks ago
  • Hey FYE: reason your Keene store might be closing: your 30% off liquidation prices are still about 20% more than Amazon. Good riddance. #fb — 5 years 24 weeks ago
  • Haw. Did a google search including the word 'bathtub'. Sponsored ad next to results: "Dinner with John Lithgow" #fb — 5 years 24 weeks ago

Older

Contact

Andy Chase
(978) 297-6402
andychase [at] gmail.com
GPG/PGP Public Key