Content last modified Monday 6 March 2017
hop to #bottom
Current version:
About It:
Get it:
Rate it:
  • Helpful?
  • 1 Yes
  • 0 No
Flag it:

If you'd like to provide updated information and do not have access to directly edit, please contact the site admin; thanks!


This plugin tries to accomplish the following:

  • Building a 2-Level Navigation-Menue using a single TXP-tag.
  • 1st Level should consist of sections, 2nd level of categories
  • Keep the 2nd level adaptable, meaning it’s contents should be controllable from users without access to and knowledge of the “Presentation”-Tab in the Admin-Interface. This means by simply adding a article-category and publishing at least one article in it a user can add a “Page” to the Website.

So –

Here it is – my first plugin: zoo_section_and_category_list

Here’s an idea how it looks: zoo_section_and_category_list in Action

Here’s the related thread which startet it all: Adaptable 2-Level Navigation-Menu with Highlighting (thanks to ruud for all comments and pointing me to helpful information)

Please feel free to comment and also criticize .. maybe over at it’s thread in the Textpattern-forum cheers, arnski

And finally here’s the included help:

The TXP- Tag:



Same as section_list but with a few more:

  • showall : Can be set to either 0 or 1. With this set to 1 the 2nd Level (categories) is always shown. 0 shows 2nd Level for active section only.
  • cat_active_class : Put in css-class for the active category-link
  • cat_class : Put in css-class for the inactive category-links

Example Usage:

Assuming you have four Sections – “Companyportrait,Products,Partner,Products” and have published several Articles in the section “Products” – each in one of the Categories “Concept,Productcategory1 and Productcategory2”.
The following tag

<txp:zoo_section_list wraptag="span" active_class="menue_links_on" class="menue_links_off" cat_class="cat_links_off small" cat_active_class="cat_links_on small" include_default="0" showall="0" sections="Companyportrait,Products,Partner,Contact" />


<span class="menue_links_off"> <a href="">Companyportrait</a><br /> <a class="menue_links_on" href="">Products</a><br /> <a class="cat_links_off small" href="">Concept</a><br /> <a class="cat_links_on small" href="">Productcategory1</a><br /> <a class="cat_links_off small" href="">Productcategory2</a><br /> <a href="">Partner</a><br /> <a href="">Contact</a> </span>

Example CSS:

.menue_links_off, .cat_links_off{
text-decoration: none;
color: #000;
border: none;}
.menue_links_on, .cat_links_on{
text-decoration: none;
color: #A80017;
border: none;}

Article Request Count:
Initially released:
Posted here:
23 Aug 2007
Article modified:
20 Jan 2008

You may want to leave your comments/questions at the Forum thread for quicker feedback. Otherwise, comment away:

Commenting is closed for this article.

Commented (2)


Thanks, Arne, for releasing this one. I’ll keep it in the archives for an upcoming site.
To those of you, who couldn’t make use of the german screenshot provided here: Rick Silletti uses this plugin and has written a short description in english on which parameters he uses to achieve the desired results. Plus the linked example.


Nice Plugin!

It exactly does what I wanted to accomplish. A simple 2-level navigation with sections and categories.

I only have one issue in conjunction with the MLP Language Pack. Sections are translated, Categories not.

When I output the categories with txp:category_list it gives me the translated category names.

Anybody else used this plugin with the MLP? Arne can you assist?

Thanks in advance!

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

You know you want to visit the Archives.




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