Exclude page from path resolution

kyle shapiro asked on March 31, 2015 17:18

My webpart has the path set to /%. This covers 4 pages Home,Page 1,Page 2,Page 3. How can I rewrite /% to exclude Home? I want a path that returns Pages 1-3. No Home. Do I need to place Pages 1-3 in their own folder in the content tree? Something like /%;-/Home is what I'm imagining. Semicolon delimiting doesn't appear to work.

Correct Answer

Brenden Kehren answered on March 31, 2015 17:35

Is this for navigation? If so, uncheck the "Show in navigation" checkbox on the home page's navigation tab, then in your repeater set the where clause to

DocumentMenuItemHideInNavigation = 0

Which will then include all the pages with that checkbox checked.

You could also set in your where clause

NodeAliasPath NOT LIKE '/Home%'
0 votesVote for this answer Unmark Correct answer

Recent Answers

kyle shapiro answered on March 31, 2015 19:00

Thank you Brenden. Exactly what I needed.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.