Logo

dev-resources.site

for different kinds of informations.

My journey through programmatically creating Umbraco `stuff`

Published at
6/27/2024
Categories
umbraco
Author
jamietownsend
Categories
1 categories in total
umbraco
open
Author
13 person written this
jamietownsend
open
My journey through programmatically creating Umbraco `stuff`

I've been meaning to start sharing my journey through programmatically creating every document type, data type and everything in-between programmatically via Umbraco Package Migrations. The reason for this is so that I can create isolated packages, which when installed create and configures everything needed for this package without any dependencies.

Think of this example, I want to give editors a new 'Carousel' component they can add to the Block Grid. I would create a new Umbraco package, say as an RCL (Razor Class Lib) and include Umbraco Package Migrations, which in turn creates all of the data types, document types and then adds the new document type as an allowed Element of an Umbraco Grid.

Cool right? As this is using Umbraco Package Migrations this also gives us the ability to create new versions of the 'Carousel' package and Umbraco handles everything for us.

I am aiming to share how this journey has gone, how I've tackled certain problems and cool things I find out along the way. With Umbraco 14 and a lot of this stuff being created via JS, this may well need to be rewritten/reworked but for the foreseeable future Umbraco 13 is where it's at and perhaps I'll share how I tackle migrating to Bellissima when the time comes!

Keep an eye out for my first post in this series coming soon.

umbraco Article's
30 articles in total
Favicon
It doesn’t have to be complicated to build a custom Umbraco property editor
Favicon
please create a post for custom section's tree
Favicon
Umbraco package of the month: xStatic
Favicon
Umbraco and Bellissima: Swagger, Tokens, Entry Points
Favicon
Catching the Bus? How a Service Bus and Azure Functions Can Help Your Integration Reliability
Favicon
Driving Umbraco's dictionary to the edge (of your system)
Favicon
Managing Stale Carts in Umbraco Commerce
Favicon
Quick fix for IPublishedSnapshotAccessor issues when upgrading to Umbraco 15
Favicon
Umbraco package of the month: Auto dictionaries
Favicon
Umbraco package of the month: Uskinned
Favicon
Learning TDD by doing: Tagging members in Umbraco's Rich Text Editor
Favicon
Learning TDD by doing: Dealing with Umbraco's published content
Favicon
My Highlights from the Umbraco US Festival 2024
Favicon
Mastering Authorization in Umbraco 14/15: Real-World Management API Challenges and Solutions
Favicon
Adding Entity Actions to Trees in Umbraco 14
Favicon
Umbraco Forms 12+, Custom Field Type
Favicon
Make your own Umbraco Starter Kit without making a Starter Kit
Favicon
Adding Dynamic Routes to Umbraco 14 Sections
Favicon
Building Custom Trees in Umbraco 14 using menus!
Favicon
Doing custom sections in Umbraco 14
Favicon
Facetted search with Examine - Umbraco 13
Favicon
Server-side registering of Package Manifest in Umbraco 14
Favicon
How to skip login screens during development for Umbraco 13 Users and Members
Favicon
My journey through programmatically creating Umbraco `stuff`
Favicon
Deploying TypeScript Type Definitions for Umbraco v14 Packages
Favicon
Creating an Umbraco Backoffice Accessor for Conditional Page Rendering
Favicon
Create an API in Umbraco in 5 Minutes: A Quick Guide for Developers
Favicon
How to Create a New Umbraco Project: A Step-by-Step Guide
Favicon
Programmatically add a new 'Accepted file extension'
Favicon
Umbraco CodeGarden24

Featured ones: