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

Forums / Developing with Sitefinity / PageNode and PageSitenode

PageNode and PageSitenode

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

    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?

    Thanks
    Higgsy
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    06 Jul 2011
    Link to this post
    Hi Higgsy,

    1.
    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.

    2.
    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