Files
ipal-kit/dist/modules/pages/systemPagesFields.d.ts
2026-08-03 12:24:28 +02:00

13 lines
587 B
TypeScript

import type { Field } from 'payload';
import type { PagesOption } from './types.js';
/**
* Builds one relationship field per configured system-page role.
*
* Each field points at the client's Pages collection (via the provided slug)
* and holds a single document reference. The referenced document's slug is
* localized, so the same assignment resolves to /pl/strona-glowna and
* /en/home at runtime — role assignment is locale-agnostic, path resolution
* is locale-aware (see getSystemPagePath).
*/
export declare function buildSystemPagesFields(pages: PagesOption): Field[];