ImageFieldElement - Front- & Back-End Development - Front- & Back-End Development - Progress Community
 Front- & Back-End Development

ImageFieldElement

  • ImageFieldElement
  • Hi,

    I have inserted ImageFieldElement in my modules definition along with FieldType (that is, Telerik.Sitefinity.Web.UI.Fields.ImageField).
    My question is what field do I need to add to my Model with what data type?
    And secondly, can I override functionality of ImageFieldElement and save just the file path in my string field defined in Model?

    Thanks
  • Hi Saad,

    The ImageField that you are referring to is used in the Sitefinity backend and implements some more advanced functionality (like uploading images through Silverlight, generating thumbnails, etc.). It would require some more work to plug it into your own module.

    If you simply want to persist the URL of the selected image in a string custom field, take a look at the following article: http://www.sitefinity.com/40/help/developers-guide/how-to-how-to-create-a-thumbnail-selector-for-news.html

    Best wishes,
    Slavo
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>