Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > Only show active pages in CSS List Menu subtree View modes: 
User avatar
Member
Member
ian_dunn-yahoo - 9/8/2009 2:20:54 PM
   
Only show active pages in CSS List Menu subtree
I have a menu that runs 3 levels deep. One of the 2nd level page is a directory of staff members, so there are dozens of pages underneath it. I want the rest of the menu to behave normally and show all pages, but under the Directory page I only want the active page to show up.

For example, if you were on
this page, the only link that would show up under "Faculty & Staff Pages" would be "MomineeMick"

I've done a lot of searching and looking through the documentation, but can't figure out how to do that. Maybe with a where condition macro?

User avatar
Kentico Consulting
Kentico Consulting
kentico_mirekr - 9/10/2009 6:44:53 AM
   
RE:Only show active pages in CSS List Menu subtree
Hi,

Do you mean that all of the other pages on the same level as “MomineeMick” should be hidden?

If so, you can simply set option “show in navigation” to false for all of the other documents/pages in CMS Desk -> Content -> choose you page -> Properties -> Menu section.

Best Regards,
Miroslav Remias.

User avatar
Member
Member
ian dunn - 9/10/2009 12:11:22 PM
   
RE:Only show active pages in CSS List Menu subtree
I don't want them to always be hidden, just when they're not the active page. So, when the active page is MomineeMick, the MomineeMick page and it's subpages would be displayed, and when MannLois is the active page, the MannLois and it's subpages would be displayed and everything else hidden.

User avatar
Kentico Consulting
Kentico Consulting
kentico_mirekr - 9/29/2009 8:00:16 AM
   
RE:Only show active pages in CSS List Menu subtree
Hi,

So, in this case you might find useful following where condition which can be used in your navigation web part Where condition property:

(NodeLevel < 3) || (({%cmscontext.currentdocument.nodelevel%} < 3)

If this is not what you are looking for, you can simply adjust it according your needs.

Best Regards,
Miroslav Remias.

User avatar
Member
Member
ian dunn - 9/29/2009 11:58:33 AM
   
RE:Only show active pages in CSS List Menu subtree
That looks it might work, thanks

User avatar
Member
Member
piyaatherbest4-gmail - 12/20/2013 1:16:23 AM
   
RE:Only show active pages in CSS List Menu subtree
i want to show nodelevel 3 pages list on node level 2 than please tell me how can i write it in where condition