01 Sep 2006
20 May 2010
Link to this post
New to Sitefinity API, I'm trying to retrieve all pages starting with the Sitemap, I'm using VB.
Dim currentNode As Telerik.Cms.Web.CmsSiteMapNode = CType(SiteMap.CurrentNode, Telerik.Cms.Web.CmsSiteMapNode)
always seems to return nothing. What am I doing wrong. Is there always a "CurrentNode" or is there a context I am missing? I am able to use cmsManager.getPages, that seems to work. Also, the following cast fails -
Dim rootNode As Telerik.Cms.Web.CmsSiteMapNode = CType(SiteMap.Provider.RootNode, Telerik.Cms.Web.CmsSiteMapNode)