Content last modified Monday 6 March 2017
hop to #bottom
Categories:
Author:
Current version:
0.2
About It:
Get it:
Rate it:
  • Helpful?
  • 2 Yes
  • 0 No
Flag it:
Contact Reason [ ? ]

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: txp:if_section

Keywords/tags:
Initially released:
2004-09-09
Posted here:
29 Mar 2005
Article 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:

Your comment will NOT be submitted until you click the 'Submit' button on the next pageload.

Commented (1)

i’ve used this successfully with RC3.

Subscribe to this article's comments RSS feed. [ ? ]   View Recent Comments across the site.

You know you want to visit the Archives.

Browse

Categories


Articles

There are also tag clouds, 'cause those are fun.
Published with Textpattern