# Add custom "section" within Context Sidebar menu

**URL:** <https://forum.umbraco.com/t/add-custom-section-within-context-sidebar-menu/4543>\
**Category:** Questions\
**Tags:** v15, extending\
**Created:** [July 11, 2025, 3:45pm UTC](https://forum.umbraco.com/t/add-custom-section-within-context-sidebar-menu/4543 "2025-07-11T15:45:29Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![OwainWilliams](https://forum.umbraco.com/user_avatar/forum.umbraco.com/owainwilliams/32/4540_2.png) [@OwainWilliams](https://forum.umbraco.com/u/OwainWilliams)\
**Post date:** [July 11, 2025, 3:45pm UTC](https://forum.umbraco.com/t/add-custom-section-within-context-sidebar-menu/4543/1 "2025-07-11T15:45:29Z")

</div>

Hi,  
Ive been trying to find a way to add a custom “section” within the Context Sidebar, but not found anything that actually worked. I thought maybe settings “sections” within the manifest file might work but it didnt.

```auto
const entityAction: ManifestEntityAction = {
	type: "entityAction",
	kind: "default",
	name: "TP: Copy To Locations : Action",
	alias: "tp.copytolocations.entity.action",
	api: CopyToLocation,
	weight: -100,
	meta: {
		label: "Copy to Locations",
		icon: "icon-pin-location",
		sections: "customSection"
	},

```

Ideally, I’d like to add something like “Custom Heading” and then below that, I’ll group all the custom actions together.

 ![image](https://forum.umbraco.com/uploads/default/original/2X/f/f882d761c2b57fb19ee0d0980c6f1b7492c29627.png)

---

<div class="post-metadata">

**Author:** ![Rockerby](https://forum.umbraco.com/user_avatar/forum.umbraco.com/rockerby/32/123_2.png) [@Rockerby](https://forum.umbraco.com/u/Rockerby)\
**Post date:** [July 13, 2025, 11:20pm UTC](https://forum.umbraco.com/t/add-custom-section-within-context-sidebar-menu/4543/2 "2025-07-13T23:20:47Z")

</div>

There’s no direct way to do that, that I’m aware of but I would create a bunch of entityAction items. The first would be a custom element which would be the title, then the rest would be the actual entity actions you want.

For eg, the first manifest would look like:

```js
const entityActionOne: ManifestEntityAction = {
	type: "entityAction",
	kind: "default",
	name: "TP: Copy To Locations : Action",
	alias: "tp.copytolocations.entity.actionOne",
    element: "yourCustomElement.js"
}

```

And subsequent would be as you had it:

```js
const entityAction: ManifestEntityAction = {
	type: "entityAction",
	kind: "default",
	name: "TP: Copy To Locations : Action",
	alias: "tp.copytolocations.entity.action",
	api: CopyToLocation,
	weight: -100,
	meta: {
		label: "Copy to Locations",
		icon: "icon-pin-location",
		sections: "customSection"
	}
}

```

OR you could create one entity action that did the entire group, but you’d have to deal with the rendering of the elements yourself.

For inspiration on your custom element, the trail in the source code leads to the default element for the entityAction being the [UmbEntityActionDefaultElement](https://github.com/umbraco/Umbraco-CMS/blob/4deb756e644e9ac31fb38fc337356db62452cbef/src/Umbraco.Web.UI.Client/src/packages/core/entity-action/default/entity-action.element.ts)

---

<div class="post-metadata">

**Author:** ![OwainWilliams](https://forum.umbraco.com/user_avatar/forum.umbraco.com/owainwilliams/32/4540_2.png) [@OwainWilliams](https://forum.umbraco.com/u/OwainWilliams)\
**Post date:** [July 14, 2025, 7:17am UTC](https://forum.umbraco.com/t/add-custom-section-within-context-sidebar-menu/4543/3 "2025-07-14T07:17:21Z")

</div>

Cheers Richard, I like that solution and it makes sense. I’ll see if I can get a chance today to try this and I’ll post an update. 👍

---

<div class="post-metadata">

**Author:** ![warren](https://forum.umbraco.com/user_avatar/forum.umbraco.com/warren/32/78_2.png) [@warren](https://forum.umbraco.com/u/warren)\
**Post date:** [July 14, 2025, 8:20am UTC](https://forum.umbraco.com/t/add-custom-section-within-context-sidebar-menu/4543/4 "2025-07-14T08:20:46Z")

</div>

Yep Rich is bang on the money, there is no default way of doing this with the built in ‘kind’ for an entityAction, so you need to then implement your own WebComponent element which then you would need to also render out child entity actions, which you could do manually in the same component or you could try to do what the CMS does and use the `umb-extension-with-api-slot` component to render and filter your specific extensions that perhaps start with a specfic prefix in your alias that starts with `OwainWilliam.EnttiyAction.` or something.

> <https://github.com/umbraco/Umbraco-CMS/blob/main/src/Umbraco.Web.UI.Client/src/packages/core/entity-action/entity-action-list.element.ts#L66-L85>

Anyway happy hacking and look forward to hearing/seeing how you get on.

---

<div class="post-metadata">

**Author:** ![OwainWilliams](https://forum.umbraco.com/user_avatar/forum.umbraco.com/owainwilliams/32/4540_2.png) [@OwainWilliams](https://forum.umbraco.com/u/OwainWilliams)\
**Post date:** [July 15, 2025, 9:24am UTC](https://forum.umbraco.com/t/add-custom-section-within-context-sidebar-menu/4543/5 "2025-07-15T09:24:52Z")

</div>

Ended up not needing to do this so it’s now on hold until I have time to play with this on my own 😃

---

<div class="post-metadata">

**Author:** ![jacob](https://forum.umbraco.com/user_avatar/forum.umbraco.com/jacob/32/145_2.png) [@jacob](https://forum.umbraco.com/u/jacob)\
**Post date:** [November 26, 2026, 8:47am UTC](https://forum.umbraco.com/t/add-custom-section-within-context-sidebar-menu/4543/6 "2026-11-26T08:47:00Z")

</div>

Hi Owain, a late follow-up: this ships in Umbraco 19, which is now in RC 🙂

From 19, entity actions can be grouped. You register an `entityActionGroup` and point your actions at it with `group`. The menu renders each group as its own block with a line between groups, so your actions stay together whichever of them are visible:

```ts
umbExtensionsRegistry.registerMany([
  {
    type: 'entityActionGroup',
    alias: 'Tp.EntityActionGroup.Locations',
    name: 'TP Locations Entity Action Group',
    weight: 300,
    meta: { label: 'Locations' },
  },
  {
    type: 'entityAction',
    kind: 'default',
    alias: 'tp.copytolocations.entity.action',
    name: 'TP: Copy To Locations : Action',
    group: 'Tp.EntityActionGroup.Locations',
    api: CopyToLocation,
    forEntityTypes: ['document'],
    meta: { label: 'Copy to Locations', icon: 'icon-pin-location' },
  },
]);

```

One difference from what you sketched: the group label isn’t shown as a heading. It’s the group’s accessible name (`role="group"`), so screen readers announce it. You get the grouping and the separators, but no visible heading. If one of the built-in groups fits, you can also join it (for example `UMB_ENTITY_ACTION_GROUP_IMPORT_EXPORT`) instead of registering your own.

Docs: [https://docs.umbraco.com/umbraco-cms/19.latest/extend-your-project/backoffice-extensions/extending-overview/extension-types/entity-actions#grouping-entity-actions](https://docs.umbraco.com/umbraco-cms/19.latest/extend-your-project/backoffice-extensions/extending-overview/extension-types/entity-actions#grouping-entity-actions)

---

<div class="post-metadata">

**Author:** ![OwainWilliams](https://forum.umbraco.com/user_avatar/forum.umbraco.com/owainwilliams/32/4540_2.png) [@OwainWilliams](https://forum.umbraco.com/u/OwainWilliams)\
**Post date:** [November 26, 2026, 9:13am UTC](https://forum.umbraco.com/t/add-custom-section-within-context-sidebar-menu/4543/7 "2026-11-26T09:13:17Z")

</div>

Thanks @jacob 🙂

I had to re-read this thread to remind myself what I was trying to do

O.
