Currently you can create dynamic modules only from the Sitefinity backend using the Module Builder. You can refer to the following article
from our documentation on how to achieve this. You can also check the following video demonstration
. Code samples are automatically generated for the dynamic module you have created and you can use it as a sample on how to work with your dynamic module programmatically - e.g. how to create a dynamic module item, to delete a dynamic module item, to get a collection of dynamic module items through filtering and etc.
To view the generated code samples please go to Administration -> Module builder
and select your module. Then please click on the Code reference for < module name>
link which is on the right-hand side of the page. Here is a screenshot
for your convenience.
If you have a specific reason to build your modules programmatically you may take a look at the following articles from our documentation on how to create custom modules in Sitefinity:
- Custom modules
- Create a custom module project
- Creating custom modules with Sitefinity Thunder
- Sitefinity custom module creation with Thunder - video
- Create a Testimonials intra-site module
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