|
| I have need to develop left hand navigatio with auto collapsible context sensitive menus in WPS v5.1.1
The layout is
MainPage1
Label-A
Page-A1
Page-A2
Label-B
page-b1
page-b2
Label-C
Label-c1
page-c1.1
page-c1.2
Main Page 2
Page D
Page-d1
page-d2
What I want to do is build a navigation tree like above with auto collapsible feature. Active node should be expanded and all other nodes are collapsed. Example: when user clicks on page-A1, Label-A is exapnded where as all other are in collapsed state.
I made changes to the LayeredContainer.jsp with Object Model API. It works pefect for navigation with pages (multiple level), does not work with Label.
The code below returns null, when a Label is selected,
if (wpsSelectionModel.isNodeInSelectionPath(wpsNavNode)){
So How to detect a label has been selected or it is in the slection path. I will appreciate if you can share some thoughts on this.
Sanjay
|
|