soo_hide Page 1 of 2 »
soo_hide
Summary:
Like Txp’s hide tag, but with a feature or two
Download
soo_hide version 0.1.0, 0.3 KB(If it won’t install try the compressed version)
Drop-in replacement for the core hide tag, offering different behavior based on the site’s Production Status setting:
- 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.
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>
Version History
0.1.0 (2011/01/13)
- Initial release.
- Behavior based on site production status.
- Override test/debug behavior with
forceattribute.
- soo_hide
- Next

