I'm using Telerik Sitefinity 5.1's default 'News' module. Try to modify it by myself and want to do it custom. I want to add image to a news. I didn't find field type 'ImageSelector'. How to add image area? Don't want to use default 'Content' field.
You can use Sitefinity ImageField to add images to the news module. All you have to do is add a custom field to your news and in Interface widget for entering data option choose Custom as field type. Your custom field should be from type Telerik.Sitefinity.Web.UI.Fields.ImageField. Now when you create a news item, you will see the newly created field. Images can be added from already uploaded ones or from the computer.
To display the value of your field on the news widget template (either list template, or single item template), you need to modify the template a bit, by adding an asp: Image control to it with ImageUrl property - the value of your custom field:
ImageUrl='<%# Eval("ImageField")%>' />
That is indeed a nice option, but you have to be aware you can't delete an image with this approach. When you add it to a news items, it stays there ;)
I remember some forum posts with request to add a delete button to this image field, but I don't know if they every made it to PITS. Same thing with adding multiple images?
That sounds cool. Thanks for sharing!
We have a custom ImageField, that has a remove button included to it. Please find attached a project.Add it to your solution and fix the references (so that they're pointing to the correct Sitefiniy version you're using).Then add a reference from Sitefinity to the project and build the solution. Go to Sitefinity backend and register a new module with the type of the project (attached below). This will create all required virtual paths. Now to create the new custom field, simply run the following code in a WebForm in the project:
//Specify for which module the field will be added
var moduleType =
//Name of the custom field
var fieldName =
//The type of the field config elementM
var fieldElementType =
CustomFieldsModule.AddFieldToModuleConfiguration(fieldName, moduleType.FullName, fieldElementType);
This will register a new field element to the News module and you will be able to use the custom image field. Greetings, Jen Peleva the Telerik team
The approach in 5.4 is the same. We haven't introduced changes to this version.