Categories:
Author:
Current version:
0.2
About It:
Get it:
Rate it:
Flag it:
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: txp:if_section
Keywords/tags:
Initially released:
2004-09-09Posted here:
29 Mar 2005Article modified:
27 Dec 2007









If there is a comment form at the Information URL, you may want to leave your comments/questions there for quicker feedback. Otherwise, comment away:
Commented (1)
Subscribe to this article's comments RSS feed. [ ? ] View Recent Comments across the site. Get a Gravatar.