To define a custom List view that you can use with the Content list widget, perform the following:
.tsx
ContentListMasterViewProps
items
FieldMappings
ListFieldMapping
Original
SdkItem
widget-registry.ts
The view metadata must be passed to the ListFieldMapping and CssClasses properties of the entity in the FieldMappings attribute. It contains all the mappings between views and their corresponding metadata.
CssClasses
ShortText
LongText
Text
YesNo
DateTime
Number
Classification
Address
RelatedData
RelatedImages
RelatedVideos
RelatedDocuments
ContentListDetailViewProps
detailItem
props.detailItem
props.detailItem?.MyShortTextFieldName
@FieldMappings
NOTE: Decorators added in the extended entity, which are also present in the base entity, override the base ones. Decorators that are not being overridden in the extended entity are being inherited from the base entity.
To register the newly created views and the extended entity you need to go to the file widget-registry.ts and to add a new entry. For example:
Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.
This free lesson teaches administrators, marketers, and other business professionals how to use the Integration hub service to create automated workflows between Sitefinity and other business systems.
This free lesson teaches administrators the basics about protecting yor Sitefinity instance and its sites from external threats. Configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.
The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important