System Library Common Episerver
Search Results for

    DocFx,SystemLibrary.Common.Episerver.Properties.MessageConfig,SystemLibrary.Common.Episerver.Properties.MessageEditorDescriptor,SystemLibrary.Common.Episerver.Properties.MessageProperty,SystemLibrary.Common.Episerver.Properties.MessageController,SystemLibrary.Common.Episerver.Attributes.BoxSelectionController,SystemLibrary.Common.Episerver.Attributes.BoxSelectionFactory,SystemLibrary.Common.Episerver.Attributes.JsonEditController,SystemLibrary.Common.Episerver.Attributes.JsonEditFactory,SystemLibrary.Common.Episerver.Descriptors.HideCategoryListDescriptor,SystemLibrary.Common.Episerver.Properties.ParentLinkReferenceController,SystemLibrary.Common.Episerver.Properties.ParentLinkReferenceEditorDescriptor,SystemLibrary.Common.Episerver.Properties.ParentLinkReferenceProperty,SystemLibrary.Common.Episerver.Attributes.MultiDropdownSelectionController,SystemLibrary.Common.Episerver.Attributes.MultiDropdownSelectionFactory,SystemLibrary.Common.Episerver.Initialize.RemoveSuggestedContentTypes,SystemLibrary.Common.Episerver.Extensions.CommonEpiserverApplicationServicesOptions,SystemLibrary.Common.Episerver.Extensions.CommonEpiserverApplicationBuilderOptions,SystemLibrary.Common.Episerver.EditController,SystemLibrary.Common.Episerver.Abstract.BaseController,SystemLibrary.Common.Episerver.Abstract.BaseMultiSelectionFactory,SystemLibrary.Common.Episerver.ConnectionStringsConfig,SystemLibrary.Common.Episerver.PropertiesConfig,SystemLibrary.Common.Episerver.EditConfig,SystemLibrary.Common.Episerver.Properties.MessageConfig,SystemLibrary.Common.Episerver.FontAwesome,SystemLibrary.Common.Episerver.AppSettings.Configuration,SystemLibrary.Common.Episerver.Attributes.ParentLinkReferenceFactory,SystemLibrary.Common.Episerver.Abstract.InternalBaseController,WebApplicationInitializer
    Show / Hide Table of Contents
    NamespaceSystemLibrary.Common.Episerver.Extensions SystemLibrary.Common.Episerver.dll

    Common content area extensions

    ContentAreaExtensions

    public static class ContentAreaExtensions

    Inheritance
    System.Object
    ContentAreaExtensions
    Examples
    Arguments
    X

    Methods

    Returns true if the content area has at least 1 item that can be displayed for current user (filtered), else false

    View Source

    public static bool Is(this ContentArea contentArea)

    X
    Methods arguments
    Type Name Description
    EPiServer.Core.ContentArea contentArea
    X
    Type Description
    System.Boolean

    Returns true if the content area has at 0 items that can be displayed for current user (filtered), else false

    View Source

    public static bool IsNot(this ContentArea contentArea)

    X
    Methods arguments
    Type Name Description
    EPiServer.Core.ContentArea contentArea
    X
    Type Description
    System.Boolean

    Render all fragments in the 'Content Area' to a string.

    Returns a string with all HTML generated from the 'Content Area' based on current visitors access

    View Source

    public static string Render(this ContentArea contentArea)

    X
    Methods arguments
    Type Name Description
    EPiServer.Core.ContentArea contentArea
    X
    Type Description
    System.String

    Render all fragments in the 'Content Area' to a StringBuilder.

    Returns a StringBuilder with all HTML generated from the 'Content Area' based on current visitors access

    View Source

    public static StringBuilder RenderStringBuilder(this ContentArea contentArea)

    X
    Methods arguments
    Type Name Description
    EPiServer.Core.ContentArea contentArea
    X
    Type Description
    System.Text.StringBuilder

    Convert items in ContentArea To T

    Filters on current user rights, personalization

    Item must be castable to T to be yield
    Remarks
    X

    You can use 'SelectFiltered' to ReactServerSideRender as 'additional props' to bypass the way ContentArea are rendered, which in return will convert all properties in all content of the area to 'dictionary', which can easily be used as Props

    View Source

    public static IEnumerable<T> SelectFiltered<T>(this ContentArea contentArea, bool filterByPublished = false) where T : IContentData

    X
    Generic types
    Name Description
    T
    Methods arguments
    Type Name Description
    EPiServer.Core.ContentArea contentArea
    System.Boolean filterByPublished

    Set to True to force filtering on Published Content, also filters away deleted content and deleted content types

    X
    Type Description
    IEnumerable<T>

    Returns an IEnumerable of T

    }

    • View Source
    In This Article
    Package: nuget
    Source: github
    Website: System Library Common Episerver