This little plugin is meant to help those who do Textpattern development on localhost or a subdomain. Sometimes you’ll want to do one thing on the in-development site, and another on the “live” site. The conditional tag provided by aam_if_host lets you do exactly that.
NOTE: requires Txp 4.0.4 or newer.
The name attribute takes a comma-separated list of server names. The default value for name is “
As with the built-in conditional tags, you can use
<txp:else /> to specify what happens if the condition is false (e.g. the site is on
www.example.com instead of
Copyright © 2007 Adam Messinger.
Distributed under the terms of the BSD license.