Page Content

Vote:
 

Hi,

I have a page hierarchy like

Page A -

  Page B 

     pageC

     PageD

I want to get the pageProperties of page C,D from Page A.

I have created Episerver Property in my Page

EPiServer:PageList ID="PageList1" runat="server" PageLink="="<%#CurrentPage.PageLink%>">
    <ItemTemplate>
    <EPiServer:Property ID="Property2" runat="server" PropertyName="PageName" />
 
    </ItemTemplate>
</EPiServer:PageList>

This will give only Page B. How do i get the Page c and Page D

 

#45097
Oct 29, 2010 14:51
Vote:
 

If you use MenuList instead and set ExpandAll to true (also set EnableVisibleInMenu to false). That way all children should be shown.

PageList per default only takes the children, not the grand children etc. You could also build your own PageDataCollection with the GetDescending method and bind it the page list.

Frederik

#45098
Oct 29, 2010 15:19
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.