# KRB About Us full page-group auto import v5

Run `krb-about-us-full-page-group-auto-import-v5.js` once in Webflow API Playground / Designer console.

## What changed from v4

v4 was current-page-only. v5 automatically:

1. Lists pages via `webflow.getAllPagesAndFolders()` or `webflow.getAllPages()`.
2. Matches the six KRB About Us target pages by stored Webflow page ID, publish path, name, or title.
3. Switches to each target with `webflow.switchPage(page)`.
4. Waits `CONFIG.switchDelayMs` after each switch.
5. Runs the full content import for that page.
6. Outputs a per-page result and a final aggregate result.

## Target pages

- Our Campus
- Our People
- School Board
- Senior Executive
- Employment
- Our Policies

## Result prefixes

Per-page:

`KRB_ABOUT_FULL_PAGE_GROUP_IMPORT_RESULT`

Final aggregate:

`KRB_ABOUT_FULL_PAGE_GROUP_AUTO_RESULT`

## Key config

```js
const CONFIG = {
  dryRun: false,
  includeGalleryImages: true,
  includeNextPages: true,
  includeDownloadsHeadings: true,
  insertMissingTopLevelSections: false,
  autoRunAllPages: true,
  stopOnError: false,
  switchDelayMs: 1200,
};
```

## Notes

- No publish.
- Does not insert missing top-level sections by default.
- Appends missing gallery `Global / Visual` items only where gallery images require more slots.
- If `webflow.switchPage` is unavailable in the execution context, the script exits with a clear aggregate error rather than silently doing only the current page.
