Querying the List of Sitefinity Dynamic Modules and Types
The Code Reference of the Sitefinity Module Builder makes it simple to get started building custom widgets and components to interact with your Dynamic Modules. However, the generated code is specific to each module and type, requiring that you pass in the full type as a string, resolving the type at runtime.
But what if you need to write generic code that could be used for multiple dynamic modules, where you won’t necessarily know in advance what the types are?
The answer is the ModuleBuilderManager, which exposes methods for retrieving both modules and their associated types. Let’s take a closer look at what you need to do to query modules and types..
For this example I’ve created a few sample dynamic modules, leaving one in a disabled state so you can see how the results differ.
Read more at the Falafel Software Blogs: Querying the List of Sitefinity Dynamic Modules and Types
selaromdotnet
Latest posts by selaromdotnet (see all)
- Restarting a Specific Azure Web App Instance - January 13, 2021
- Adding Ratings and Reviews to Sitecore Commerce with YotPo - November 13, 2018
- Sourcetree Suddenly Prompting for Github Credentials - February 22, 2018