More in this section
Forums / Developing with Sitefinity / Create Dynamic Module using the API

Create Dynamic Module using the API

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
4 posts, 0 answered
  1. ch
    ch avatar
    25 posts
    14 May 2014
    11 Jun 2014
    Link to this post

    Is it possible to create a Dynamic Module without using the Back End Module Builder tool?

  2. Arno
    Arno avatar
    249 posts
    08 Sep 2010
    12 Jun 2014 in reply to ch
    Link to this post

    Sure, it's possible, but it's a very time-consuming task. I wouldn't recommended it unless absolutely necessary. The documentation explains how to do it.

  3. ch
    ch avatar
    25 posts
    14 May 2014
    12 Jun 2014 in reply to Arno
    Link to this post

    I was hoping it's possible to do it programmatically. The following code will not work but demonstrates what I am trying to do.

    //Create the module.
    App.WorkWith().Module().CreateNew(new Guid())
        //Set the properties of the module.
    .Do(b =>
        b.Title = "Testimonials";
        b.Description = "Customer Testimonials";
        b.ContentTypeName = "Testimonial";
        //Save the changes.

  4. Sabrie Nedzhip
    Sabrie Nedzhip avatar
    534 posts
    17 Aug 2017
    16 Jun 2014
    Link to this post
    Hello David,

    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: 
    1. Custom modules
    2. Create a custom module project
    3. Creating custom modules with Sitefinity Thunder
    4. Sitefinity custom module creation with Thunder - video
    5. Create a Testimonials intra-site module
    Sabrie Nedzhip
    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
4 posts, 0 answered