Enhanced txp:hide tag for Textpattern CMS: http://textpattern.com
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
releases
.gitignore
README.textile
config-dist.php
soo_hide.php

README.textile

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.