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

nfe_if_category

nfe_if_category is a conditional tag that works complementary to the built-in if_category tag.
The tag outputs inclosed content if the loaded page belongs to a specified category or any of its children. This allows you to define ‘parent’ categories able to work as ‘sections’ work right now.

The tag accepts 2 attributes: parent and exclude. exclude accepts a comma-separated list of categories not to include in the list of children. If set to the same as parent it will select only the children.

Article Request Count:
Keywords/tags:
Initially released:
24-3-2007
Posted here:
24 Mar 2007
Article modified:
25 Jul 2007

Comments/questions? Leave a message in the form.

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

Commented (3)

Small correction

...
if ($name) $out[] = strtolower( $name );
...
$current_cat = strtolower( $c );
...

feragnoli:

@ JoNy202

thank you, I updated the download.

Seems to be a good plugin, but the file’s lost…

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