+1-888-365-2779
Try Now
More in this section

Forums / 3.x Pre-release forums (retired) / SiteMap Functionality

SiteMap Functionality

4 posts, 0 answered
  1. Paul Berger
    Paul Berger avatar
    61 posts
    Registered:
    03 Apr 2006
    11 Dec 2006
    Link to this post
    Hi Guys

    I am currently looking the sitemap. There a few little things I would change. Not much I am sure you have more important stuff.

    For the seprator I want to have a cool Image. I can not see a way to style this. When the control gets rendered there is no way I can style the seprator as a different entity.

  2. Paul Berger
    Paul Berger avatar
    61 posts
    Registered:
    03 Apr 2006
    11 Dec 2006
    Link to this post
    Also it displays [ Site Map ] as the root node which is not really desirable.
  3. Sean
    Sean avatar
    271 posts
    Registered:
    31 May 2006
    11 Dec 2006
    Link to this post
    Hi Paul..

    To get rid of the root node [Site Map]  I did this... after a quick google I found an article about hiding the root node from a SiteMap

    It needed some modifying though as it gave me some problems when adding new pages but I posted the code to fix that.

    As for the separator I would suggest you either create your own control inheritting the SiteMapPath control and then just override the rendering to modify the separator, or if you don't have too many Master pages you could look at doing it in the codebehind of the masterpage itself something like this:

    Protected Sub SiteMapPath1_ItemCreated(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.SiteMapNodeItemEventArgs) Handles SiteMapPath1.ItemCreated

    If e.Item.ItemType = SiteMapNodeItemType.PathSeparator Then
    e.Item.CssClass = "cssClass"
    End If
    End Sub

    I haven't tried it but I assume it would work..By the way the SiteMapPath control isn't a Telerik one so I am not sure if they will change it... You probably need to complain to Microsoft :)

    Well I hope that helps...
  4. Bob
    Bob avatar
    330 posts
    Registered:
    24 Sep 2012
    11 Dec 2006
    Link to this post
    Hello Paul,

    There is a problem with SiteMapPath because it uses virtual paths. This is a limitation in Sitefinity, you can not use leading “../” in paths. We created new control Breadcrumb that actually inherits SiteMapPath and overrides certain methods to make it resolve absolute paths. Also we added some new functionality as the ability to hide the root node. The control will be included in the next release which is expected next week.




    Best wishes,

    Bob
    the telerik team

Register for webinar
4 posts, 0 answered