ASPX templates
Version 5.x > ASPX templates > CMSListMenu filter pages View modes: 
User avatar
Member
Member
uiterwijkjorik-gmail - 8/24/2011 5:14:48 AM
   
CMSListMenu filter pages
Can anyone tell me something about CMSListMenu.
I have a site that is split in a couple 'child'-sites.

Site1
- Home
- About
- ...
Site 2
- Home
- About
- ....

So when Site 1 is open, i don't want to see the pages of site 2 in my menu. And the other way around.

Anyone knows how to filter the pages. Maybe with sql-statement in the WhereCondition?

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 8/24/2011 5:42:12 AM
   
RE:CMSListMenu filter pages
Hi,

I am not sure if I understand. Imagine a following structure:

Site1
- Home1
- About1
- ...
Site 2
- Home2
- About2
- ....

In case you select a Ste1 document - only home1 and about1 should be visible?

In this case, you could set Path property of web part to /{0}/% Then only Home1 and About1 should be displayed in case you click on the Site1.

More information about path expressions you can find here:
Path expressions

Best regards,
Ivana Tomanickova

User avatar
Member
Member
uiterwijkjorik-gmail - 8/24/2011 9:21:56 AM
   
RE:CMSListMenu filter pages
Thanks, exactly what I was looking for..
In the pdf of the Kentico CMS controls are just a couple of examples for paths. Do you have a site where there are more?

I need (probably with the treeview) the navigation history, like:
Site 1 --> Home

So it's possible to navigate back.

In the examples there is the current one (.) en the parent (..) but I need both. Plus grandparents etc...

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 8/27/2011 4:58:47 AM
   
RE:CMSListMenu filter pages
Hi,

don't you mean a breadcrumbs web part - it remembers navigation history.

The example you can find in the Corporate site - /Examples/Web parts/Navigation/Breadcrumbs

Best regards,
Ivana Tomanickova