Get elements for every subpage 2 levels deeper than current page

44 views
Skip to first unread message

Barney Stinson

unread,
Sep 1, 2016, 11:56:02 AM9/1/16
to RedDot CMS Users
Hi is there a way to get the elements for every subpage 2 levels deeper than current page?

Page1
    Container1
        SubPage1
            Elements
        SubPage2
            Elements
        SubPageX
            Elements

I tried the following but its not working:

<reddot:cms>
<foreach itemname="PageElements" object="Context:CurrentPage.Elements" countername="mainPageCounter">
<foreach itemname="SubPageElements" object="Store:PageElements.GetElement(cont_Side).Value[Int32:Store:mainPageCounter].Elements" countername="SubPage">
<output type="object" object="Store:SubPageElements.Name" />
</foreach>
</foreach>
</reddot:cms>


Reply all
Reply to author
Forward
0 new messages