how to add image in news
Hi,
Is there any way to put an image upload feature in sitefinity 4 admin news and blog section?
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
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?
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
Is there any documentation available on this or a walk through, the details above are not that clear
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