Instruction clarification

This commit is contained in:
2026-10-13 00:36:11 +02:00
parent c6f177a37d
commit 103c796e9d
27 changed files with 2596 additions and 1983 deletions
+13 -3
View File
@@ -1,11 +1,12 @@
import type { Field } from 'payload'
import { CONSENT_CATEGORIES } from '../../modules/consent/index.js'
import { CONSENT_CATEGORIES } from '../../modules/consent/categories.js'
/**
* Fields for the CookieSettings global — GDPR consent banner copy, editable
* per locale. The privacy-policy link is NOT stored here: it comes from the
* pages module (system page role 'privacyPolicy'), keeping one source of truth.
* per locale. The privacy-policy link TARGET is NOT stored here: it comes from
* the pages module (system page role 'privacyPolicy'), keeping one source of
* truth. Only the link's visible text lives here (privacyLinkLabel).
*/
export const cookieSettingsFields: Field[] = [
{
@@ -24,6 +25,15 @@ export const cookieSettingsFields: Field[] = [
},
localized: true,
},
{
name: 'privacyLinkLabel',
type: 'text',
admin: {
description:
'Text of the privacy-policy link in the banner, e.g. "Privacy policy". The link target is the page assigned as Privacy Policy in Site Settings → System Pages. Empty → the page title is used.',
},
localized: true,
},
{
name: 'buttons',
type: 'group',