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.
Parses contents if the section set is the one selected.
What section(s) to check if selected. Comma-separate if you want multiple sections. Case sensitive. Supports negate (!). Set to blank as default.
<txp:ob1_if_section section="!default"> Hello World.
Would show the text “Hello World” on all sections but the default one.
- v0.2 – Added negate (!) to section attribute.
- v0.1 – Initial release