More in this section

Forums / Developing with Sitefinity / PageNode and PageSitenode

PageNode and PageSitenode

2 posts, 0 answered
  1. higgsy
    higgsy avatar
    336 posts
    05 Aug 2010
    06 Jul 2011
    Link to this post

    I'm just working on a menu control and I'm a bit confused in a couple of places.

    1) What is the difference between PageNode and PageSiteNode?

    2) It seems it is possible to use PageNode/PageSiteNode and/or the traditional MS SiteMap/SiteMapNode - is this just to make it easier for developers to stick with what they know? I'm unsure which method I should be using in certain circumstances?

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    12 Sep 2017
    06 Jul 2011
    Link to this post
    Hi Higgsy,

    PageSiteNode- represents SiteMap for pages. This class inherits from Asp.Net SiteMapNode
    PageNode -holds an instance of a page. This class implements only Sitefinity's specific interfaces.

    It depends on the case. For instance if you bind a navigation control to SiteMapDataSouce you can call

    var pageNode = e.Node as PageSiteNode;

    All the best,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered