14 lines
688 B
TypeScript
14 lines
688 B
TypeScript
import type { Field } from 'payload';
|
|
import type { ContentOption } from './types.js';
|
|
/**
|
|
* Builds one relationship field per content collection, pointing at the
|
|
* client's Pages collection.
|
|
*
|
|
* Sits alongside the system-page roles (homepage, privacy policy) because it's
|
|
* the same idea: a page referenced by function rather than by slug. The
|
|
* assignment is locale-agnostic — one page document — while the resulting path
|
|
* is locale-aware, since the page's slug is localized. Assign the "Artykuły"
|
|
* page once and you get /pl/artykuly and /en/articles from its own slugs.
|
|
*/
|
|
export declare function buildArchiveFields(content: ContentOption, pagesSlug: string): Field[];
|