PageNode and PageSitenode

Posted by Community Admin on 04-Aug-2018 11:31

PageNode and PageSitenode

All Replies

Posted by Community Admin on 06-Jul-2011 00:00

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

Posted by Community Admin on 06-Jul-2011 00:00

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

This thread is closed