Get Widget List with API

Posted by Community Admin on 04-Aug-2018 19:57

Get Widget List with API

All Replies

Posted by Community Admin on 02-Jun-2016 00:00

Hi,

   I need to get the list of custom widgets that I installed with API. How can I do?

 

Thanks!

Posted by Community Admin on 13-Jun-2016 00:00

Hi,

Loop through all registered widgets and find those that are not installed from assembly with name Telerik.Sitefinity.* . To check this in the UI go to Administration->Settings->Advanced->Toolboxes->Toolboxes->PageControls->Sections.

To query those refer to the API for working with this configuration section. Sample here.

var config = ConfigManager.GetManager().GetSection<ToolboxesConfig>();
            var pageControlsSection = config.Toolboxes["PageControls"];
 
            var allSections = pageControlsSection.Sections;
 
            foreach (var section in allSections)
            
                var builtInWidgets = section.Tools.Where<ToolboxItem>(t => t.ControlType.StartsWith("Telerik.Sitefinity"));
            

Regards,
Stanislav Velikov
Telerik
 
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 Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
 

This thread is closed