Return a (page) sitefinity item's Supported Type

Posted by Community Admin on 03-Aug-2018 08:36

Return a (page) sitefinity item's Supported Type

All Replies

Posted by Community Admin on 26-Aug-2016 00:00

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

Posted by Community Admin on 26-Aug-2016 00:00

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

Posted by Community Admin on 26-Aug-2016 00:00

Thank you Victor, I couldn't see that was a bad idea.

This thread is closed