Control for rendering page tree's, extends PageTreeData with templates.
See also ,
Namespace:
EPiServer.Web.WebControlsSee also ,
Assembly: EPiServer.Web.WebControls (in EPiServer.Web.WebControls.dll) Version: 5.2.375.236
Syntax
| C# |
|---|
public class PageTree : PageTreeData, INamingContainer |
Remarks
Specify at least ItemTemplate to enable rendering, other templates not set
will fallback on the most likely substitute If the TopTemplate is set other
TopTemplates will fallback to this template insted of the corresponding ItemTemplate.
Note:
Keep in mind while inherriting that the template fallback behavior can be modified by overriding any of the virtual
InstantiateXXXTemplate methods.
If you just want to change in which order the different templates will be used you simply call the InstantiateTemplate
method providing the template order you want for your rendering as arguments.
Examples
Example usage of PageTree rendering a simple tree of pages.
CopyC#
<episerver:PageTree PageLink="<%#CurrentPage.PageLink%>" runat="server" ID="PageTree1"> <ItemTemplate> <img src="../images/clear.gif" width="<%#(Container.CurrentPage.Indent*10)%>"/> <episerver:property PropertyName="PageLink" runat="server"/> <br/> </ItemTemplate> </episerver:PageTree>
Inheritance Hierarchy
System..::.Object
System.Web.UI..::.Control
EPiServer.Web.WebControls..::.PageTreeData
EPiServer.Web.WebControls..::.PageTree
System.Web.UI..::.Control
EPiServer.Web.WebControls..::.PageTreeData
EPiServer.Web.WebControls..::.PageTree