dw_itemtype_create
Create a DynamicWeb item type with custom fields and restrictions in a single operation.
Instructions
Create a new DynamicWeb item type with fields and restrictions in one operation.
Category conventions:
- Page item types → category: "" (top-level)
- Layout/config → category: "Layout"
- Article paragraphs → category: "Paragraphs/Article"
- Landing paragraphs → category: "Paragraphs/Landing"
For Page item types, set restrictions.allowedChildItemTypes to the paragraph systemNames that editors can add.
For Paragraph item types, leave restrictions.allowedChildItemTypes empty.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| systemName | Yes | PascalCase, no spaces. This is the contract with the frontend registry.ts. | |
| name | Yes | Human-readable name shown in DW Admin | |
| description | No | ||
| category | No | Category path. Use '' for page types, 'Paragraphs/Landing' or 'Paragraphs/Article' for paragraphs. | Paragraphs/Landing |
| icon | No | Unicons icon name, e.g. 'uil-desktop', 'uil-file-alt', 'uil-arrow-circle-right' | uil-file-alt |
| pageDefaultView | No | paragraph | |
| fieldForTitle | No | Which field to use as the item title in DW Admin | Title |
| includeInUrlIndex | No | ||
| fields | No | Fields to add to the item type | |
| restrictions | No |