+1-888-365-2779
Try Now
More in this section

Forums / Sitefinity SDK / ImageFieldElement

ImageFieldElement

2 posts, 0 answered
  1. Saad
    Saad avatar
    98 posts
    Registered:
    10 Oct 2008
    08 May 2011
    Link to this post
    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
  2. Slavo
    Slavo avatar
    295 posts
    Registered:
    24 Sep 2012
    12 May 2011
    Link to this post
    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 >>

2 posts, 0 answered