npx skills add ...
npx skills add umbraco/umbraco-cms-backoffice-skills --skill umbraco-tree-item
Implement tree items in Umbraco backoffice using official docs
npx skills add umbraco/umbraco-cms-backoffice-skills --skill umbraco-tree-item
Tree Items define how entities are rendered in tree structures throughout the Umbraco backoffice. They control the visual representation and behavior of items in sidebars and navigation trees. Tree items are associated with entity types and can be customized to display additional information, icons, or custom rendering for specific entity types.
Always fetch the latest docs before implementing:
Most tree items use kind: 'default' and don't need a custom context. Only create a custom context for:
If you just need standard tree items, use kind: 'default' without a custom context.
Tree: Tree items work within tree structures
umbraco-treeRepository Pattern: When loading tree data
umbraco-repository-patternContext API: When accessing tree context
umbraco-context-apiBuilt-in entity types that have tree items:
document - Content nodesdocument-root - Content rootmedia - Media itemsmedia-root - Media rootmember - Membersdata-type - Data typesdocument-type - Document typestemplate - TemplatesThe kind: 'default' uses the standard tree item rendering. Custom kinds can be created for specialized rendering.
That's it! Always fetch fresh docs, keep examples minimal, generate complete working code.