As an independent unit

Dear XWiki users,

The system has a navigation panel that builds a tree.

I want to make a dynamic menu the code I applied, but there is a problem of endless updating, but I would like to save the structure in the form of a tree.
I would like to vibrate different subparagraphs without dropping the path.
How to do it as implemented in the navigations panel
send I want to make a dynamic menu the code suggested, but there is a problem of endless updating, but I would like to keep the structure
Thank you in advance)test