Skip to content

Conversation

@engijlr
Copy link
Contributor

@engijlr engijlr commented Nov 20, 2025

Summary

Adds a new workspace condition Umb.Condition.WorkspaceContentTypeUnique that checks content types by their GUID/unique identifier instead of alias.

How to test

  1. Create a new document type (e.g., "Test Page")
  2. Copy the GUID from the URL (it will look like: d2d7572e-1ba1-458d-a765-95b60040c3ac)
  3. Run the example: npm run example and choose option 6 - entity-content-type-condition
  4. Open examples/entity-content-type-condition/index.ts and paste the GUID you copied into the match/oneOf property.
  5. Navigate to a document of the type you created you should see the "Conditional (Unique)" workspace tab appear.

Copy link
Contributor

@madsrasmussen madsrasmussen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @engijlr

This looks really good! I have a bit of trouble running the example because of a const import that points to something wrong, but the code looks like it does what it should.

I have added a few comments around code style and naming where I think we can make some improvements for alignment and readability.

Let me know when you have had a look at the example, then I will try it again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants