Skip to content

Commit b7873b4

Browse files
authored
Merge pull request #7373 from umbraco/v16/cms/block-customview-definitions
Adds definitions to block custom view tutorial
2 parents 2868ded + 632d11e commit b7873b4

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

16/umbraco-cms/tutorials/creating-custom-views-for-blocklist.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,19 @@ Now that we have created our Web Component, let us register it to show up on our
133133
}
134134
```
135135

136-
While the `forContentTypeAlias` and `forBlockEditor` parameters are optional, they also accept arrays. They can therefore be used to declare a custom view for multiple blocks. The code snippet below shows an example of such an array:
136+
While the `forContentTypeAlias` and `forBlockEditor` parameters are optional, they also accept arrays. They can therefore be used to declare a custom view for multiple blocks and block editors. The code snippet below shows an example of such an array:
137137

138138
```typescript
139139
forContentTypeAlias: ['product', 'anotherContentTypeAlias'],
140+
forBlockEditor: ['block-list', 'block-grid', 'block-rte'],
140141
```
141142

143+
Depending on the values, the custom view is applied to the following data types:
144+
145+
- `block-list` - For more information, see the [Block List editor](../fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/block-editor/block-list-editor.md).
146+
- `block-grid` - For more information, see the [Block Grid editor](../fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/block-editor/block-grid-editor.md).
147+
- `block-rte` - Blocks used inline in the [Rich Text editor](../fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/rich-text-editor/blocks.md).
148+
142149
Read about [extension-manifest](../customizing/extending-overview/extension-registry/extension-manifest.md) to learn how to register an Extension Manifest.
143150

144151
Once registered, the Block will be represented by the given Web Component.

0 commit comments

Comments
 (0)