type
Global
Public authoring and runtime contracts live in core. These aliases keep the root package as the ergonomic application-facing entry point.
Properties
| Property | Type | Description |
|---|---|---|
Slug | schema.CollectionSlug | Slug is the URL-safe global name used by APIs and the admin. |
Label | string | Label overrides the author-facing name shown in navigation and headings. |
LabelTranslations | map[string]string | LabelTranslations overrides Label for configured admin interface languages. |
Admin | GlobalAdmin | Admin is serializable presentation metadata consumed by the framework admin. |
Fields | field.Fields | Fields owns the global's immutable field shape, behavior, and presentation. |
Versions | bool | Versions enables revisions for this global. |
VersionConfig | VersionConfig | VersionConfig customizes drafts, retention, and autosave behavior. |
Access | GlobalAccess | Access defines read and update authorization. |
Hooks | CollectionHooks | Hooks defines global-wide lifecycle behavior. |
Endpoints | []Endpoint | Endpoints declares custom HTTP endpoints below /api/globals/<slug>. They run before matching built-in global routes for the same method. |