Created
April 7, 2025 10:11
-
-
Save sitefinitySDK/7dcc6ea60f6f17f363a908f4d0f11824 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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