pyrocms/pyrocms — pull request #812 by huglester (2011-10-18 08:20:13+00:00)
Title: Added additional check for $active url

for example you have navigation having:
home => /
news => /news

So when you're at home - you will get home active
when you are at /news - you will have news active

with this commit you'll be able to add: match_segment = 1 for example, which will allow you to give active class while you are in:
/news/title-1
/news/category/title-1
/news/category/subcategory/title-1

all this will be marked as 'active' so you'll get active class in your navigation.

If you will add match_segment=2, first two segment should have to match...

I think you got an idea.

P.S.
I think that
$match_segment	= $this->attribute('match_segment', null);
can be set to 1 easily by default. since probably 90% of people will need this as default.. (not sure)

Waiting for comments :)