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

    HtmlHelperExtensions

    public static class HtmlHelperExtensions

    Inheritance
    System.Object
    HtmlHelperExtensions
    Examples
    Arguments
    X

    Methods

    Display a blue edit link down right in the current container

    View Source

    public static IHtmlContent ComponentEditLink<TModel>(this IHtmlHelper<TModel> html, BlockData blockData)

    X
    Generic types
    Name Description
    TModel
    Methods arguments
    Type Name Description
    Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper<TModel> html
    EPiServer.Core.BlockData blockData

    Block/component you want a short cut to edit for

    X
    Type Description
    Microsoft.AspNetCore.Html.IHtmlContent

    Property for ContentArea renders all of the content area items

    View Source

    public static IHtmlContent PropertyForContentArea<TModel, TValue>(this IHtmlHelper<TModel> html, Expression<Func<TModel, TValue>> expression)

    X
    Generic types
    Name Description
    TModel
    TValue
    Methods arguments
    Type Name Description
    Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper<TModel> html
    System.Linq.Expressions.Expression<Func<TModel, TValue>> expression
    X
    Type Description
    Microsoft.AspNetCore.Html.IHtmlContent

    Pass in the exception that occurs in rendering (in cshtml files).

    - pass in either the exception, the string, or a tuple of the (Content Model, Exception)

    Remarks
    X

    Logs exceptions that occurs if any

    If environment is not "prod/production" it will add the error to the HTML Response

    Useful if you want to show errors in local, dev, QA, stage, but not in production, but still logging it

    The div printed always has a class 'view-errored'
    View Source

    public static IHtmlContent ViewException<TModel>(this IHtmlHelper<TModel> html, object model)

    X
    Generic types
    Name Description
    TModel
    Methods arguments
    Type Name Description
    Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper<TModel> html
    System.Object model
    X
    Type Description
    Microsoft.AspNetCore.Html.IHtmlContent

    }

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