• Basics
  • Abyss
  • Web APIs
  • C# & Razor
  • .net API
  • JS & TS API

    Show / Hide Table of Contents

    Interface ICmsView

    View context information - this is Experimental / BETA WIP

    Namespace: ToSic.Sxc.Context
    Assembly: ToSic.Sxc.dll
    Syntax
    [PublicApi]
    public interface ICmsView : IHasMetadata
    Remarks

    Added in 2sxc 12.02

    Properties

    | Improve this Doc View Source

    Edition

    Edition used - if any. Otherwise empty string.

    🪒 Use in Razor: CmsContext.View.Edition

    Declaration
    string Edition { get; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    Id

    View configuration ID

    🪒 Use in Razor: CmsContext.View.Id

    Declaration
    int Id { get; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    Identifier

    An optional identifier which the View configuration can provide. Use this when you want to use the same template but make minor changes based on the View selected (like change the number of columns). Usually you will use either this OR the Settings

    🪒 Use in Razor: CmsContext.View.Identifier

    Declaration
    string Identifier { get; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    Metadata

    Metadata of the current view

    Declaration
    IDynamicMetadata Metadata { get; }
    Property Value
    Type Description
    IDynamicMetadata
    Remarks

    Added in v13.12

    | Improve this Doc View Source

    Name

    Name of the view as configured - note that because of i18n it could be different depending on the language. To clearly identify a view, use the Identifier or use Settings

    🪒 Use in Razor: CmsContext.View.Name

    Declaration
    string Name { get; }
    Property Value
    Type Description
    System.String
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX