Return a (page) sitefinity item's Supported Type
Could someone please help me with this puzzling question.
Since Telerik has many built-in supported types I have also added some of my own:
Telerik.Sitefinity.Blogs.Model.BlogPost, Telerik.Sitefinity.DynamicTypes.Model.FAQs, Telerik.Sitefinity.DynamicTypes.Model.Legal.Policy, Telerik.Sitefinity.Taxonomies.Model.FlatTaxonomy and Sitefinity.Pages.Model.PageNode.
In my customRouteHandler i have a method that takes in 2 parameters System.Web.UI.Page and Telerik.Sitefinity.Web.PageSiteNode
Since I have both objects in hand (Page and PageSiteNode)
How do i get the type (like above) of the page in hand c# ?
Thanks in advance
Page don't have any specific type. Because one page can contain many widgets (news, blog and etc)
If you want to check if this widget exists on this page, you can get a list of controls for this page. Example you can find here: http://www.sitefinity.com/developer-network/forums/developing-with-sitefinity-/query-a-page-for-its-controls
Thank you Victor, I couldn't see that was a bad idea.