Content Tree - how to manipulate - where is the docs?

I need to hide certain doctypes from the Content EXISTING tree. Cant find docs.
Im able to find how to create my own custom tree. But i want to modify the default.

Any docs?

You can do that using a condition:

You then register that condition to the existing content tree entities.

Hi Luuk. Thanks for answering. I’ve just read the page and im trying to get a grip on the concept and how that is related to hiding an item in a content tree based on doctype.

Its somewhat too abstract to me - something i feel a lot when working with the new UI. You can (probably) do anything but its not as easy …

Hi @jesperordrup, just pitching in here.

Great suggestion by Luuk, but that can only apply to UI-Extensions. Since you are requesting to hide specific DocTypes, then we are talking about manipulating the data of a tree(assuming the Tree of Document Types). That is not possible via the front-end. You may be able to provide a different UI-Element that will only be displaying for specific Document Types in the Tree, but that is not what you are looking for, cause they would still be there.

Actually the request sounds a bit odd to me, so I start to consider if you may be looking for something else:

Are you looking to limit the Create options(Document Types) when a user creates a new Document?

Cause that is taken care of with the Content Type Filter on the Server: Content Type Filters | Umbraco CMS

If that is not the case, then it would be lovely if you can put a few words to what it is your trying to achieve?

Hi Niels. Thanks for pitching. The story is that I want to control the Tree in the Content section. In older solutions we manipulate the tree rendering

  • hiding subnodes based on doctype
  • change icon or color based on a property value.

Here is a screenshot from an old solution

1 Like