Extend and customize the Content list widget
Customize the widget designer
You can cutomize both the List and the Details view of the Content list widget.
For more information, see Create custom views for the Content list widget.
Extend the widget
GITHUB EXAMPLE: You can find examples on how to extend the Model, ViewModel, View, and the Entity classes as part of the Quantum demo sample in Sitefinity GitHub repository:
For more information, see Extend the built-in widgets.
Exclude content types
Extend ContentListEntity
In order to exclude content types form the content list widget, you need to inherit and extend the ContentListEntity
class and add TypeBlacklist
paramater to exlclude content types or add Type
paramater to specify a list of allowed contet types.
For example:
Register the entity
Then you need to register the entity in the Program.cs
file:
builder.Services.AddSingleton<ientityextender, entityextender<contentlistentity,="" sandboxwebapp.entities.extendedcontentlistentity="">>();
</ientityextender,>