Skip to content

Instantly share code, notes, and snippets.

View markadrake's full-sized avatar
🇺🇸

Mark Drake markadrake

🇺🇸
View GitHub Profile
@markadrake
markadrake / ApiTemplate.cs
Last active April 23, 2026 14:15
Add Template Information to the Umbraco v17 Content Delivery API
namespace Humble.Umbraco.DeliveryApi;
public sealed record ApiTemplate(Guid Id, string? Name, string Alias);
@markadrake
markadrake / Composer.cs
Created May 3, 2026 19:13
Keep Umbraco 17 Media Center Organized
using Umbraco.Cms.Core.Composing;
using Umbraco.Cms.Core.Notifications;
namespace Humble.Umbraco.Features.KeepMediaSorted;
public class Composer : IComposer
{
public void Compose(IUmbracoBuilder builder)
{
builder.AddNotificationHandler<MediaSavedNotification, KeepMediaSortedNotificationHandler>();