Docs: admin languages and texts, wording rule for agents, new screen names
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
6b46bc0c14
commit
0a2374db18
+4
-4
@@ -61,12 +61,12 @@ in the Local API call.
|
||||
|
||||
### Globals — buildGlobalRevalidateHook / `ipalKit({ revalidatePath })`
|
||||
|
||||
A global (Site Settings, Cookie Settings, the project's menu) feeds the layout of **every** page — logo, menu,
|
||||
A global (Site settings, Cookie banner, the project's menu) feeds the layout of **every** page — logo, menu,
|
||||
consent texts, analytics IDs. Without revalidation, ISR pages kept the old values until the end of the
|
||||
`revalidate` window. Saving a global → `revalidatePath('/', 'layout')` (the whole site).
|
||||
|
||||
```ts
|
||||
// payload.config.ts — the plugin's globals (Site Settings, Site Integrations, Cookie Settings, Notifications)
|
||||
// payload.config.ts — the plugin's globals (Site settings, Site integrations, Cookie banner, Notifications)
|
||||
import { revalidatePath } from 'next/cache'
|
||||
ipalKit({ …, revalidatePath })
|
||||
|
||||
@@ -113,9 +113,9 @@ import { buildPreventDeleteSystemPage } from '@intecion/ipal-kit'
|
||||
hooks: { beforeDelete: [buildPreventDeleteSystemPage({ settingsSlug: 'site-settings' })] }
|
||||
```
|
||||
|
||||
It reads Site Settings in the same `req` (the delete transaction).
|
||||
It reads Site settings in the same `req` (the delete transaction).
|
||||
|
||||
To delete — first detach the role in Site Settings (a deliberate decision).
|
||||
To delete — first detach the role in Site settings (a deliberate decision).
|
||||
|
||||
Options: `settingsSlug` (`'site-settings'`), `roleFields` (default `['homepage',
|
||||
'privacyPolicy', 'cookiePolicy', 'termsOfService']` — **without `notFound`**; the 404 page and
|
||||
|
||||
Reference in New Issue
Block a user