Content last modified Monday 3 September 2018
hop to #bottom
Categories:
Author:
Current version:
0.2
About It:
Get it:
Rate it:
  • Helpful?
  • 2 Yes
  • 0 No
Flag it:

If you'd like to provide updated information and do not have access to directly edit, please contact the site admin; thanks!

ob1_if_section

Yes I know, there allready exists a if_section ( mdn_if_section ) plugin. The only thing that this does different from the other, is that it supports multiple sections to be set and the use of negate. The negate code are a re-write from the one used in mattmoss’ mdm_if_category plugin.

Summary

Parses contents if the section set is the one selected.

Attributes

section

What section(s) to check if selected. Comma-separate if you want multiple sections. Case sensitive. Supports negate (!). Set to blank as default.

Example
<txp:ob1_if_section section="!default"> Hello World. </txp:ob1_if_section>

Would show the text “Hello World” on all sections but the default one.

Changelog

  • v0.2 – Added negate (!) to section attribute.
  • v0.1 – Initial release

Article Request Count:

Archived [?]: Built-in tag now exists: <a href="http://textpattern.net/wiki/index.php?title=Txp:if_section">txp:if_section</a>

Keywords/tags:
Initially released:
2004-09-09
Posted here:
30 Mar 2005

You know you want to visit the Archives.
Published with Textpattern