When using current level as the top level, please add an option to hide siblings of the current level.
Given a tree:

Item 1
  Item 1.1
    Item 1.1.1
    Item 1.1.2
  Item 1.2

When viewing contents of 1.1, the Item 1.2 should be hidden using that option.
Files: 

Comments

Status:Active» Closed (duplicate)

It's not a duplicate of that. Hiding the siblings is different to hiding the children of siblings.

For example, I need to be have a menu tree like this:

Item 1
  Item 1.1
  Item 1.2
Item 2
  Item 2.1
  Item 2.2
Item 3
  Item 3.1

Hiding the children of siblings would result in this:

Item 1
Item 2
  Item 2.1
  Item 2.2
Item 3

Hiding the siblings would result in this:

Item 2
  Item 2.1
  Item 2.2

I can't see any option to achieve this. If you want your menu to show Item 2, it will also show siblings of Item 2 (Item 1 and Item 3). If you start your menu from Item 2, it will only show children of Item 2, and not Item 2 itself.

The closest you can get is to show the title and make it a link, then use CSS to make it look like a menu item and to alter the other menu items to look like they are children of the title.

Issue summary:View changes
Status:Closed (duplicate)» Needs review
StatusFileSize
new4.67 KB

The attached patch will give you an option to hide the siblings of all menu items in the active trail.
Example, if the active item is 1.1.2, the menu will show:

Item 1
  Item 1.1
    Item 1.1.2
      Item 1.1.2.1
      Item 1.1.2.2

Where Item 1.1.1, Item 1.2 and Item 2 exist but are not rendered .

StatusFileSize
new5.24 KB

#3 had a line missing sorry, this one works better.

StatusFileSize
new5.74 KB

The last patch still wasn't working properly. The attached is better.