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

Forums / General Discussions / how to add image in news

how to add image in news

6 posts, 0 answered
  1. Asif
    Asif avatar
    110 posts
    Registered:
    18 Nov 2010
    04 Feb 2011
    Link to this post
    Hi,
    Is there any way to put an image upload feature in sitefinity 4 admin news and blog section?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    04 Feb 2011
    Link to this post
    Hello Asif,

    You could use a custom field to achieve the required functionality:

    1.  Implement your own FieldControl and use it when creating the custom field. That field control would be responsible for displaying the UI for selecting an image (from a library) and saving the value (ID or image URL, whatever you prefer) as the value of the custom field. You need to inherit from the Telerik.Sitefinity.Web.UI.Fields.FieldControl class, and your client component should inherit from the Telerik.Sitefinity.Web.UI.Fields.FieldControl sitefinity client component. Also, make sure you have overridden get_value() and set_value() client methods, which will be called by News module Create/Edit dialog.

    2. Go to Design > Widget Templates and modify the corresponding News control template to use the newly created custom field.



    Kind regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Asif
    Asif avatar
    110 posts
    Registered:
    18 Nov 2010
    04 Feb 2011
    Link to this post
    In 3.7, I could have modified the Admin - News or any other module by going under Sitefinity/Admin/CustomeTemplate/.. but in Sitefinity 4.0, how to modify the page? Is there any Editor available in Admin section similar to the Design, Widget template for front end?
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    04 Feb 2011
    Link to this post
    Hi Asif,

    You have to use custom fields. There is an option to create a custom filed that inherits from FieldControl and use it with Content modules.
    Actually in 3.x you use ButtonSelector control which was implemented by us out of the box. For the time being we do not have this implementation in Sitefinity 4.0.

    Regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. Mark
    Mark avatar
    6 posts
    Registered:
    31 Oct 2010
    10 May 2011
    Link to this post
    Is there any documentation available on this or a walk through, the details above are not that clear
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    12 May 2011
    Link to this post
    Hi Mark,

    You can take a look at this blog post that actually illustrates how to create a custom field control

    http://www.sitefinity.com/blogs/slavoingilizov/posts/11-02-11/creating_a_thumbnail_selector_for_news_items.aspx

    Kind regards,
    Ivan Dimitrov
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
6 posts, 0 answered