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