Following the examples on this page:
I've but the following code into the InitializeControls method in my, Thunder generated, widget with designer:
But it yields no results, even though I have created two testimonials. The only thing that is majorily different than the examples is that it is a multisite configuration.
Am I missing something in this setup? Does it have to do with a multisite?
So you need to get the default provider for the current site and then use this provider when creating the DynamicModuleManager object.
For DynamicModuleManager I am using this:
var provider = new MultisiteContext().CurrentSite.GetDefaultProvider("MODULE NAME");
Is there any way to get the module name using TypeResolutionService.ResolveType method? Module names can have spaces as well, so either we'll have to hard-code them in the code which is not a good practice at all. Or there must be some dynamic way for it.