Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Topic closed
[archived] anc_hide
Notice: This thread is archived, there is a native txp tag now: <txp:hide>.
**********************************************************
Note My apologies – immediately after posting this I realized anc_hide would be a much better name for the plugin and tag, and decided to switch it before too many people began reading this. The topic title is wrong, it should read:
anc_hide plugin.
Mea culpa :(
A very simple, but mildly useful plugin that allows you to comment blocks of code in a page template or form with a <txp> tag instead of HTML comment tags, leaving the code in place while hiding it from the browser. This is useful for debugging things, or turning sections of a page on and off without making users download large amounts of commented HTML.
Download the plugin: http://achase.net/things/textpattern/anc_hide_1.0.txt
Usage:
<txp:anc_hide>
<h1>Test</h1>
<p>This is some code I want to hide from the browser.</p>
</txp:anc_hide>
Permlink:
http://achase.net/files/14/hideplugin
Last edited by els (2009-04-24 17:43:50)
Offline
Re: [archived] anc_hide
Brilliant!
Justin
Offline
Pages: 1
Topic closed