soo_hide
Summary:
Like Txp’s hide
tag, but with a feature or two
(If it won’t install try the compressed version)
Source files and archived releases available on GitHub.
As usual there’s a discussion thread on the Textpattern forum.
Full plugin help text
Including detailed tag attribute descriptions, and additional usage examples.
Courtesy soo_plugin_display
soo_hide
This is a plugin for Textpattern. It is a drop-in replacement for the native hide
tag, with different output depending on site production status:
- Live: hide tag contents
- Testing: output tag contents, enclosed by HTML comment delimiters
- Debugging: display tag contents
To force the tag to hide its contents even when in Testing or Debugging mode, set the tag’s force
attribute to 1
.
Download
Usage
<txp:soo_hide> This will run when the site is in Debugging or Testing mode (in Testing mode it will be enclosed in HTML comments). </txp:soo_hide> <txp:soo_hide force="1">Your secret is safe with me.</txp:soo_hide>
History
0.1.3 (2017-03-11)
- Oops. Tag registration restored.
0.1.2 (2017-03-11)
- Documentation tidy (and new compile workflow)
0.1.1 (2017-03-11)
- Textpattern 4.6 compatibility update
0.1.0 (2011-01-13)
- Initial release.
- Behaviour based on site production status.
- Override test/debug behaviour with
force
attribute.
Posted 2011-01-13 (last modified 2017-03-13)