More in this section
Forums / Developing with Sitefinity / Custom Module Properties

Custom Module Properties

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.
2 posts, 1 answered
  1. Erik
    Erik avatar
    62 posts
    02 May 2011
    04 Apr 2012
    Link to this post
    So I am trying to create a custom module and have a custom widget template that displays said module. I made a custom module using the module builder but the "image"(Media Type) and "tags"(Classification Type) properties always come back null/empty. What's with that?

    On the same line of thought, I would like to be able to have a strongly typed reference to the data item for the custom module. Is that possible? There is apparently a class dynamically created at runtime called "Telerik.Sitefinity.DynamicTypes.Model.Promos.Promo" where Promo is my custom module.

    If these fields can't be populated by sitefinity code and we have to roll our own then how would we go about setting and getting the values to/from the DataItem?
  2. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    18 Jul 2012
    05 Apr 2012
    Link to this post
    Erik, are you trying to retrieve these field values programmaticaly via the API? If so, take a look at the "Binding to Fields" section of this post: Retrieving Data From Dynamic Modules Using the Module Builder API

    Basically a helper method is used to extract the data from the API. Gabe used a similar approach (global helper method) to show the taxonomies on the details page for the Showcase Module example.

    Regarding a strongly-typed reference to your module, that is currently not generated out of the box. You would need to implement your own wrapper for that around the existing API code.

    This story is still being improved as the module builder evolves, and I'd like to thank you for your feedback, and I hope that this info was helpful to you!
2 posts, 1 answered