How to add page type where condition in macro ?

TRISHUL TANDEL asked on July 18, 2017 23:21

How to add page type where condition in macro ?

Documents["/Products"].AllChildren.DisplayNames

I have written above and its working fine but i need to add class name(page type) condition here for filter out data. please see below image.

Image Text

Correct Answer

Brenden Kehren answered on July 18, 2017 23:40

Add Where("ClassName = 'cms.menuitem'") after AllChildren

0 votesVote for this answer Unmark Correct answer

Recent Answers


TRISHUL TANDEL answered on July 19, 2017 00:08 (last edited on July 19, 2017 00:09)

Thank you very much. its working fine...

0 votesVote for this answer Mark as a Correct answer

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