how to add image in news

Posted by Community Admin on 03-Aug-2018 00:52

how to add image in news

All Replies

Posted by Community Admin on 04-Feb-2011 00:00

Hi,
Is there any way to put an image upload feature in sitefinity 4 admin news and blog section?

Posted by Community Admin on 04-Feb-2011 00:00

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

Posted by Community Admin on 04-Feb-2011 00:00

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?

Posted by Community Admin on 04-Feb-2011 00:00

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

Posted by Community Admin on 10-May-2011 00:00

Is there any documentation available on this or a walk through, the details above are not that clear

Posted by Community Admin on 12-May-2011 00:00

Hi Mark,

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

www.sitefinity.com/.../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

This thread is closed