---
title: "Quick Tip: Add a new custom section to Umbraco 7+ — Hack Make Do"
description: "A quick tip for Umbraco 7: create a custom backoffice section on application startup with the new Section Service, for your own site or a package."
url: https://hackmakedo.com/blog/quick-tip-add-a-new-custom-section-to-umbraco-7/
---

# Quick Tip: Add a new custom section to Umbraco 7+

10 December 2013

- [Tutorials](https://hackmakedo.com/blog/topic/tutorials/)
- [Umbraco](https://hackmakedo.com/blog/topic/umbraco/)

Hello all, I have just come across a quick, simple & neat way to add a section to your Umbraco website/application be it for your own use or as a package developer.

So rather than talk about it for ages I will just jump straight into it.

```csharp
public class UmbracoStartup : ApplicationEventHandler
{
    protected override void ApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext)
    {
        //Get SectionService
        var sectionService = applicationContext.Services.SectionService;

        //Try & find a section with the alias of "mySection"
        var mySection = sectionService.GetSections().SingleOrDefault(x => x.Alias == "mySection");

        //If we can't find the section - doesn't exist
        if (mySection == null)
        {
            //So let's create it the section
            sectionService.MakeNew("My Section", "mySection ", "icon-users");
        }
    }
}
```

So what this is doing on an application startup of Umbraco using [the new Section Service](https://web.archive.org/web/20131123215220/http://our.umbraco.org:80/documentation/reference/management-v6/services/SectionService) checking to see if there a section with the alias of **mySection** already created, if not then using the section service it goes and creates it.

That’s it, it really is that simple. Enjoy :)

## Keep reading

1 November 2023

### [Adding a custom Webhook Type to Umbraco V13](https://hackmakedo.com/blog/adding-a-custom-webhook-type-to-umbraco-v13/)

Add your own webhook type to Umbraco 13, so any Umbraco notification can fire a webhook, not just the events supported out of the box.

[Tutorials](https://hackmakedo.com/blog/topic/tutorials/) · [Umbraco](https://hackmakedo.com/blog/topic/umbraco/)

7 September 2021

### [How to run .NETCore Umbraco CMS on a MacBook](https://hackmakedo.com/blog/how-to-run-netcore-umbraco-cms-on-a-macbook/)

Run Umbraco 9, the .NET Core edition, natively on your Mac: install the .NET SDK and the Umbraco templates, and stop running Windows in a virtual machine.

[Umbraco](https://hackmakedo.com/blog/topic/umbraco/) · [Tutorials](https://hackmakedo.com/blog/topic/tutorials/)

Need a hand with Umbraco Bellissima? I'm available as a freelancer or contractor.

[Get in touch](https://hackmakedo.com/contact/)
