Collection View

Learn how to create a Collection View that defines how data is displayed within a collection in Umbraco.

Purpose

Use a Collection View when you need to:

  • Present data in a structured or visual way (for example, table, cards, grid)

  • Customize how entity fields are displayed

Create a Collection View

Before creating a Collection View, make sure you are familiar with the Extension Registry in Umbraco.

Manifest

umbraco-package.json
{
  "type": "collectionView",
  "alias": "My.CollectionView.Alias",
  "name": "My Collection View",
  "element": "/App_Plugins/my-collection-view/my-collection-view.js",
  "meta": {
    "label": "Table",
    "icon": "icon-list",
    "pathName": "table"
  },
  "conditions": [
    {
      "alias": "Umb.Condition.CollectionAlias",
      "match": "Umb.Collection.Document" // Type of entity to display in this collection view
    }
  ]
}

Implementation

Implement your Collection View as a Lit element that extends UmbLitElement. This defines how a list of entities is rendered in your collection.

Common Collection Match Values

Use the match property in your manifest to target a specific collection type.

Match Value

Description

Umb.Collection.Document

Targets the Document collection (content items).

Umb.Collection.Media

Targets the Media collection (images, videos, files).

Umb.Collection.Member

Targets the Member collection.

Umb.Collection.MemberGroup

Targets the Member Group collection.

Umb.Collection.User

Targets the User collection.

Umb.Collection.UserGroup

Targets the User Group collection.

Umb.Collection.Dictionary

Targets the Dictionary collection.

Last updated

Was this helpful?