Skip to content

Instantly share code, notes, and snippets.

@sitefinitySDK
Created April 7, 2025 10:11
Show Gist options
  • Save sitefinitySDK/7dcc6ea60f6f17f363a908f4d0f11824 to your computer and use it in GitHub Desktop.
Save sitefinitySDK/7dcc6ea60f6f17f363a908f4d0f11824 to your computer and use it in GitHub Desktop.
using Progress.Sitefinity.AspNetCore;
using Progress.Sitefinity.AspNetCore.Widgets.Models.ContentList;
using Progress.Sitefinity.Renderer.Designers.Attributes;
using Progress.Sitefinity.Renderer.Entities.Content;
namespace SandboxWebApp.Entities
{
/// <summary>
/// Extended entity class for the ContentBlock view component.
/// </summary>
public class ExtendedContentListEntity : ContentListEntity
{
/// <inheritdoc />
[ContentSection(Constants.ContentSectionTitles.SelectContentToDisplay, 0)]
[Content(
Type = $"{KnownContentTypes.ListItems}, {KnownContentTypes.News}",
TypeBlacklist = "Telerik.Sitefinity.DynamicTypes.Model.PressReleases.Pressrelease"
)]
public override MixedContentContext SelectedItems
{
get
{
return base.SelectedItems;
}
set
{
base.SelectedItems = value;
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment