Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Thomas Enggaard Christensen 24 posts 49 karma points
    Apr 29, 2011 @ 19:09
    Thomas Enggaard Christensen
    0

    UmbracoSiteMapProvider only displays "Root"

    Hello

    I'm experimenting with the native asp.net navigation controls, and the sitemapprovider.

    I have created a user control with the following markup:

    <asp:TreeView ID="TreeView1" runat="server" DataSourceID="SiteMapDataSource1"  />
    <asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server"  />

    In a normal asp.net website with a "web.sitemap" file the usercontrol works as intented.

    However when I create a macro with it in umbraco, it only renders the root node. All the child nodes in the content tree in umbraco does not get rendered.

    (The default sitemap provider is set to the "UmbracoSiteMapProvider" in the umbraco web.config.)

    Anyone that can tell me what I'm doing wrong and where?

    (I'm using a fresh Web platform install of Umbraco 4.7.0 with the "personal site" templates)

     

     

Please Sign in or register to post replies

Write your reply to:

Draft