Umbraco.CMS.Backoffice icon indicating copy to clipboard operation
Umbraco.CMS.Backoffice copied to clipboard

[BUG/FEATURE]: Trees/Menu Items: allow overriding default route convention

Open enkelmedia opened this issue 10 months ago • 0 comments

I'm working on a custom tree but would like to reuse the parts that is already built in to the backoffice (extensibility, actions etc). From what I understand (which might not be right) that path to any menu item is more or less hardcoded here:

https://github.com/umbraco/Umbraco.CMS.Backoffice/blob/e5cb64c140073a356cc44036ce1c443fe1cc71e7/src/packages/core/tree/tree-item/tree-item-base/tree-item-context-base.ts#L375

I'm my scenario I would need to be able pass more information since in my case I would like the links to include two identifiers, and also maybe not use a full blown workspace.

As far as I understand the UmbUniqueTreeItemModel and UmbTreeItemModelBase interfaces does not contain anything that would allow me to set a path for a certain menu item which would be nice.

So I guess this is either a question: Is this possible?

Or its a feature request, can we add path or something to UmbTreeItemModelBase so that one can use a custom path for a menu item?

Another thing would be if I would like to link to something like:

section/${pathname}/workspace/${entityType}/view/${unique}

enkelmedia avatar Mar 29 '24 15:03 enkelmedia