Export STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS (#21010)

fix https://discord.com/channels/1130383047699738754/1509086323464474705
This commit is contained in:
martmull
2026-05-28 12:51:01 +00:00
committed by GitHub
parent 531410f64a
commit 6ea637d6c5
24 changed files with 1073 additions and 155 deletions
@@ -40,6 +40,7 @@ export default defineField({
- When defining fields **inline inside `defineObject()`**, you do **not** need `objectUniversalIdentifier` — it's inherited from the parent object.
- `defineField()` is the only way to add fields to objects you didn't create with `defineObject()`.
- File location is up to you. The convention is `src/fields/<name>.field.ts`, but the SDK detects fields anywhere in `src/`.
- To add a tab to a standard page layout (e.g. the Task or Company detail page), use [`definePageLayoutTab`](/developers/extend/apps/layout/page-layouts#definepagelayouttab) with `STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS` from `twenty-sdk/define`.
## Adding a relation to an existing object