# JoodCMS Site Kit Guide (format version 1)

There are two ways to use it:

- **A new website.** In the AI conversation where you already talked about the business (what it does, who it serves, the goals, the pages, the look), attach this file and ask: *"Based on everything we discussed, create the JoodCMS site kit for my website. Follow KIT-GUIDE exactly."*
- **Moving an existing website.** Export the old site with the JoodCMS exporter for your CMS (for WordPress: the JoodCMS Kit Exporter plugin). Its migration pack already contains this guide. Attach the pack and ask: *"Using the JoodCMS export of my website and the changes we discussed, build the new website for JoodCMS and create the site kit for me. Follow the instructions in the pack."*

The AI produces a zip file. Check it and upload it in JoodCMS (System › Site kit).

---

## Instructions for the AI

You are building a **site kit**: a zip file that JoodCMS turns into a complete website. Write real content for the business. Never invent facts (prices, numbers, awards, addresses). Where a fact is missing, write a clear placeholder in square brackets, for example `[PHONE NUMBER]`.

### 1. Files in the zip

```
my-site-kit.zip
└── my-site-kit/            (one top folder, optional)
    ├── kit.json            required: format, version, site name/description/language
    ├── theme.json          the site's starting CSS (colours, fonts, styles)
    ├── page_types.json     page types (hierarchy, web addresses, menu placement)
    ├── global.json         site-wide sections: header, menu, footer
    ├── menus.json          menus and their items
    ├── redirects.json      old addresses that keep working (optional, see "Rebuilding an existing site")
    ├── pages/              one JSON file per page
    │   ├── p-home.json
    │   └── …
    └── media/              logo, images, videos (jpg png webp svg gif avif mp4 webm pdf)
```

All files are UTF-8 JSON. If you cannot create zip files, output each file in full with its path, and the person will zip them.

### 2. Permanent IDs (very important)

Every page, section, block, cell, menu item and page type has an `id`. **IDs are permanent.** When you make a new version of the same kit later, keep every existing ID. JoodCMS uses IDs to update only what changed. Use readable IDs: `p-about`, `s-about-team`, `b-about-team`, `b-about-team-c0`, `m-about`.

### 3. kit.json

```json
{
  "format": "joodcms-kit",
  "version": 1,
  "site": { "name": "Dive Krakow", "description": "One or two sentences about the site.", "language": "en" },
  "made_with": "0.5.4",
  "delete": []
}
```

`made_with` (optional) is the JoodCMS version the kit was written for. A site running an older version warns that newer features are skipped. **Kit format 1 is read by every JoodCMS version**: new features only add optional fields, so a site built on one version can be exported and rebuilt on a newer one. `language` `ar` (also `he`, `fa`, `ur`) makes the whole site right to left.

Importing a kit is a **complete update**: the site becomes the kit. Pages, sections, blocks and menu items the kit no longer has are removed (pages and blocks go to the site's vault, so the owner can bring them back). `delete` (optional) is an older way to list IDs of pages or blocks to remove; it is rarely needed.

### 4. theme.json — the starting design

There are no themes in JoodCMS. Write the site's starting CSS here. Set these variables, then add a few simple rules.

```json
{
  "fonts": [],
  "mainClass": "",
  "css": ":root { --jc-font: system-ui, sans-serif; --jc-text: #111; --jc-bg: #fff; --jc-muted: #555; --jc-line: #ddd; --jc-accent: #0b6e78; --jc-width: 1140px; } h1 { font-weight: 800; }"
}
```

- `mainClass` (optional): classes on the page's main content wrapper (the WordPress exporter sets `entry-content`).
- Theme shell (optional, written by the site exporters to keep an existing theme's structure, so its CSS keeps working):
  - `bodyClass`: classes added to `<body>` (e.g. `wp-theme-generatepress separate-containers right-sidebar`).
  - `wrap`: wrappers around the page content, outermost first: `[{"tag": "div", "id": "page", "class": "site grid-container"}, …]` (tags: div, main, article, section, aside).
  - `titleHtml`: the page title in the theme's markup, with `{title}` where the title goes, e.g. `<header class="entry-header"><h1 class="entry-title">{title}</h1></header>`.
  - `breadcrumbs`: `false` hides JoodCMS breadcrumbs (the theme has its own design).
  When `wrap` is set, the theme's `parent > child` CSS rules also match through JoodCMS's own plain wrappers (sections, blocks, cells).
- `fonts`: optional list of `https://` stylesheet links (for example Google Fonts). Prefer system fonts (no external requests, better privacy).
- You may define helper classes and use them in content, for example `.jc-eyebrow` (small label above a heading) or `.jc-lead` (larger intro text).
- Built-in classes: `.jc-button` (outlined button link), `.jc-button.jc-solid` (filled button), `.jc-embed` (see section 8).
- **Headings on coloured sections.** If the CSS gives headings a colour (`h1, h2, h3 { color: navy }`), that colour also applies inside dark sections, where it disappears. For every section class with a dark (or very light) background, set the heading colour again: `.dk-dark h1, .dk-dark h2, .dk-dark h3 { color: #fff }`. The kit checker warns about headings that are hard to read.

### 5. page_types.json

Page types sort pages, build web addresses and breadcrumbs, and decide where new pages appear in menus.

```json
[
  { "id": "pt-page", "name": "Page", "slug": "", "parent": null, "menu": "menu:main" },
  { "id": "pt-courses", "name": "Courses", "slug": "courses", "parent": null, "menu": "m-courses" },
  { "id": "pt-tec", "name": "Tec", "slug": "tec", "parent": "pt-courses", "menu": "m-tec" }
]
```

A page of type `pt-tec` with slug `trimix-diver` gets the address `/courses/tec/trimix-diver` and the breadcrumb Home › Courses › Tec › Trimix Diver.

**Overview pages.** The page that introduces a page type (the "Courses" page listing all courses) is a normal page: type `pt-page` with the same slug as the type, so it lives at `/courses`, and the breadcrumbs of every course link to it. Never give it the type itself: a `pt-courses` page with slug `courses` would live at `/courses/courses`. `menu` is where pages created later in the editor are placed: `menu:<menu id>` (top level) or a menu item ID.

### 6. Blocks — the building unit

A page is a stack of **sections**. A section holds one or more **blocks**. Every block is a **table (grid) of cells**. There are 8 block types:

| type | use | HTML tag |
| --- | --- | --- |
| `header` | logo, contact button | header |
| `menu` | navigation; set `"menu": "main"` | nav |
| `hero` | big intro area, often a full-width cell plus a row of cells | section |
| `content` | text, images, video, columns | section |
| `slider` | each cell is one slide | section |
| `footer` | address, links, copyright | footer |
| `form` | contact or support form; cells are the intro text, the fields are in `"form"` (see the 0.5.1 section) | section |
| `code` | custom HTML/CSS/JS in `"code"`; avoid unless asked | section |

Block format:

```json
{
  "id": "b-home-hero",
  "type": "hero",
  "grid": { "cols": 3 },
  "cells": [
    { "id": "b-home-hero-c0", "html": "<h1>Learn to dive</h1><p>…</p>", "span": 3 },
    { "id": "b-home-hero-c1", "html": "<h3>Try Scuba</h3><p>…</p>", "span": 1 }
  ],
  "style": {
    "base":   { "padding": 96, "bg": "#0a0a0a", "color": "#ffffff", "gap": 40 },
    "tablet": { "cols": 2 },
    "phone":  { "padding": 56 }
  },
  "css": "",
  "anchor": "",
  "visibility": { "mode": "all_except", "pages": [] }
}
```

- `cols` 1–6. A cell with `span` equal to `cols` fills the whole row.
- A cell may have its own `"style"` (inline CSS for the cell box), for example `"style": "background: rgba(0,0,0,.04); padding: 24px; border-radius: 12px"`.
- Any element in cell HTML may carry inline CSS. Hover colours use CSS variables: `--jc-h-color`, `--jc-h-bg`, `--jc-h-border`, for example `<a class="jc-button" href="/contact" style="background:#000;color:#fff;--jc-h-bg:#666">Contact</a>`. Colours may be `#rrggbb` or `rgba(r, g, b, alpha)`.
- **Cell HTML**: use only `h1`–`h4`, `p`, `a`, `strong`, `em`, `ul`, `ol`, `li`, `blockquote`, `img`, `video`, `br`, `hr`, `span`, `div`. No scripts, no `style` tags, no forms (they are removed). Inline `style` is allowed for simple things like `text-align:right`.
- One `h1` per page, normally in the first block.
- Internal links start with `/` (`/contact`, `/courses/tec`). Images use `media/…` (`<img src="media/logo.svg" alt="…">`). Always write `alt` text. Pictures can carry inline CSS for size and text wrap, for example `<img src="media/boat.jpg" alt="…" style="float: right; width: 40%; margin: 0 0 1em 1.25em">` (wrap right) or `style="display: block; width: 60%; margin: 0 auto 1em"` (centred). Put a wrapped picture at the start of the paragraph it should sit beside. On phones, wrapped pictures automatically go full width.
- **Style keys** (all optional): `bg`, `color`, `borderColor` (hex colours); `font` (`system`, `serif`, `mono`, `condensed`); `size` (text px); `padding` (top/bottom px), `paddingX` (sides px), `margin`, `gap`, `border` (px), `radius`, `minHeight`; `align` (`left`, `center`, `right`); `valign` (`start`, `center`, `end`, `stretch`); `direction` (`row`, `stack`, `reverse`); `width` (`contained`, `narrow`, `full`); `hidden` (true/false); `cols` (in tablet/phone/laptop only). Links: `link`, `linkHover` (hex colours), `linkDeco` (`underline`, `none`). Menu dropdowns: `subColor`, `subBg` (hex colours). Make sure dropdown text and background contrast clearly.
- **Screen sizes**: `base` is desktop. `laptop`, `tablet`, `phone` hold only what changes. By default tablet shows at most 2 columns and phone 1.
- `css`: extra CSS for this block only. Plain declarations or nested rules (`h2 { letter-spacing: .1em; }`).
- `className` (optional): extra CSS classes on the block element; `gridClass`: extra classes on its grid; `raw: true`: the block keeps its original layout (JoodCMS adds no width or padding, the kit CSS styles it). Used by the WordPress exporter.
- More layout keys used by the site exporters: `raw: "theme"` (JoodCMS adds no grid rules at all; the kit CSS lays the cells out), `innerClass` (classes on the block's inner wrapper), menu blocks: `navClass` (a wrapper around the menu list, e.g. `main-nav`) and `subToggle` (class of the dropdown marker inside parent links). Cells can have `className` (classes on the cell, which then stands in for the original element) and `place: "before" | "after"` (the cell renders before/after the grid, like a section's intro and closing text).
- `visibility`: only for blocks in `global.json`. `all_except` + page IDs hides the block on those pages; `only` + page IDs shows it only there.

### 7. global.json, pages, menus

global.json:

```json
{ "sections": [
  { "id": "s-top", "region": "top", "blocks": [ { "id": "b-header", "type": "header", … }, { "id": "b-menu", "type": "menu", "menu": "main", … } ] },
  { "id": "s-bottom", "region": "bottom", "blocks": [ { "id": "b-footer", "type": "footer", … } ] }
] }
```

A page (pages/p-about.json):

```json
{
  "id": "p-about", "title": "About us", "slug": "about", "type": "pt-page",
  "home": false,
  "description": "One sentence for search engines and AI assistants.",
  "access": "all",
  "sections": [ { "id": "s-about-1", "blocks": [ … ] } ]
}
```

Exactly one page has `"home": true`. Write a useful `description` for every page: AI search tools read it.

`"published": false` (optional) delivers the page as a draft: the team sees it and can review it, visitors get "page not found", and it stays out of menus, the sitemap and search engines until someone ticks Published in Page settings. Use it for new pages the owner should check first. The home page is always published.

`"index": false` (optional) keeps a published page out of search engines and the sitemap: use it for thank-you pages and campaign test pages. Leave it out for normal pages. JoodCMS makes `sitemap.xml` and `robots.txt` itself; a kit never contains them.

menus.json:

```json
[ { "id": "main", "label": "Main menu", "items": [
  { "id": "m-home", "label": "Home", "page": "p-home" },
  { "id": "m-courses", "label": "Courses", "page": "p-courses", "children": [
    { "id": "m-tec", "label": "Tec diving", "page": "p-tec" } ] },
  { "id": "m-shop", "label": "Shop", "url": "https://example.com" }
] } ]
```

### 8. Contact, video and maps

- WhatsApp button: `<a class="jc-button jc-solid" href="https://wa.me/48123456789">Chat on WhatsApp</a>`
- Email: `<a href="mailto:name@example.com">name@example.com</a>`; phone: `<a href="tel:+48123456789">+48 123 456 789</a>`
- YouTube or map (loads only after cookie consent):
  `<div class="jc-embed" data-embed="https://www.youtube-nocookie.com/embed/VIDEO_ID" data-title="Video title">Video loads after consent</div>`
  `<div class="jc-embed" data-embed="https://www.google.com/maps?q=Street+1,+City&amp;output=embed" data-title="Map">Map loads after consent</div>`

### 9. Checklist before you hand over the kit

1. `kit.json` has `"format": "joodcms-kit"` and `"version": 1`.
2. Every page, section, block and cell has a unique, readable `id`.
3. One home page; every page has a description; one `h1` per page.
4. All images exist in `media/` and have `alt` text. Every page has at least one picture or graphic (see "Pictures and graphics").
5. No invented facts; missing details are `[PLACEHOLDERS]`.
6. Valid JSON in every file (no comments, no trailing commas).
7. No address repeats itself (`/products/products`); every menu item points at a page in the kit, a full address or a #anchor.
8. Headings are readable on every section background.

## Effects, positions and keep rules (JoodCMS 0.3.1)

Effects are classes, on a block (`className`), a cell (`className`) or any element inside cell HTML (`class="…"`):

- Entrance (when scrolled into view): `jc-fx-fade`, `jc-fx-up`, `jc-fx-down`, `jc-fx-left`, `jc-fx-right`, `jc-fx-zoom`, `jc-fx-flip`, `jc-fx-blur`. Add `jc-on-load` to play it when the page opens, or `jc-repeat` to play it every time it comes into view. Timing: `jc-delay-1` … `jc-delay-4` (0.15 s steps), `jc-speed-fast`, `jc-speed-slow`.
- Hover: `jc-hv-lift`, `jc-hv-grow`, `jc-hv-shrink`, `jc-hv-tilt`, `jc-hv-glow`, `jc-hv-dim`, `jc-hv-wobble`, `jc-hv-shine`, `jc-hv-underline` (links).
- Click/tap: `jc-tap-press`, `jc-tap-pulse`, `jc-tap-bounce`, `jc-tap-spin`.
- Continuous: `jc-loop-float`, `jc-loop-pulse`, `jc-loop-bounce`, `jc-loop-spin`, `jc-loop-wiggle`, `jc-loop-swing`; add `jc-pause-hover` (pause while hovered) or `jc-pause-view` (play only while visible).
- Scroll-linked: `jc-scroll-parallax`, `jc-scroll-reveal`, `jc-scroll-spin` (browsers without scroll-driven animations show the element normally).
- Your own effects: write them in theme CSS. Hooks: elements with `jc-on-view` get `.jc-in` when they scroll into view; `jc-on-click` toggles `.jc-active` on each click; elements with a `jc-tap-*` class get `.jc-clicked` for a moment.
- Visitors who ask their system for reduced motion see no animation.

Block keys: `"position": "sticky-top" | "sticky-bottom"` keeps the block at the top/bottom of the window while scrolling (its section sticks with it). `"keep": 30 | 90 | 365 | "forever"` sets how long the block's old versions stay in the vault (default: the site setting).
Pictures: `aspect-ratio` plus `object-fit: cover` and `object-position: X% Y%` in the image's style crop it around a focus point.

## Fills, overlays and section design (JoodCMS 0.3.2)

- Fills: a block's `style.*.bg` (and the new `overlay`) accept any CSS background value: a colour, `linear-gradient(...)` / `radial-gradient(...)` (stops can be transparent, e.g. `rgba(0,0,0,0)`, for fades), a picture `url("media/photo.jpg") center / cover no-repeat`, CSS patterns (`radial-gradient(...) 0 0 / 20px 20px`), or several layers separated by commas. Pictures must come from the kit (`media/…`), the site (`/uploads/…`) or https.
- Overlay layer: `style.*.overlay` sits between the background and the content. `overlayBlend` (multiply, screen, overlay, soft-light, color, luminosity, difference…) and `overlayOpacity` (0–100) refine it.
- Sections have their own design. In a page or global section object:
  `{"id": "s-home-offer", "style": {"base": {"bg": "…", "overlay": "…", "padding": 64, "paddingX": 24, "margin": 0, "minHeight": 400, "color": "#ffffff", "border": 1, "borderColor": "#eeeeee", "radius": 24, "width": "boxed"}, "phone": {"padding": 32}}, "className": "my-section jc-fx-up", "anchor": "offer", "css": "& .jc-block { … }", "blocks": [ … ]}`
  `width`: omit for full width, `"boxed"` keeps the section at the site width. `hidden: true` in a device style hides the section on that device.

## Updating a site, shared blocks and campaigns (JoodCMS 0.5.0)

### Updating an existing site from its export

When you receive a kit exported from a live site (it contains `README-FOR-AI.md`), you are **updating** that site:

1. Keep every `id` you do not mean to change. Same id = same page, section, block or menu item.
2. **Importing is a complete update.** The site becomes exactly your kit. Any page, section, block or menu item you leave out is removed from the site (it goes to the site's vault, where people can bring it back). So return the **whole** site, not only the parts you changed.
3. Do not return `KIT-GUIDE.md` or `README-FOR-AI.md`; they are ignored.
4. Files offered for download (System › Files) and the "made by JOOD" footer credit are not part of kits. Leave them out; they stay as they are.

### Campaigns and seasons

For a temporary change (Christmas, summer, a sale, a weekend promotion), build the complete site with the campaign changes: new banners, a campaign page, seasonal colours in theme.json. The site owner applies the kit when the campaign starts and **undoes** it (Vault › Site kits › Undo) when it ends. You do not need to build a "back to normal" kit.

### Block names and labels

Every block may have a readable system name and a label. People see them in the Content table and when choosing blocks:

```json
{ "id": "b-visit-cta", "type": "content", "name": "visit-us-cta", "label": "Visit us call to action", "grid": { "cols": 1 }, "cells": [ … ] }
```

- `name`: lowercase letters, numbers and dashes, unique on the site.
- `label`: a short human name, up to 120 characters.

### Shared blocks (one block, many places)

A block that must look the same on several pages (contact details, opening hours, a call to action) is written **once** and placed elsewhere with `ref`:

```json
// pages/p-home.json — the block itself
{ "id": "s-home-visit", "blocks": [ { "id": "b-visit-cta", "type": "content", "name": "visit-us-cta", "label": "Visit us", "cells": [ … ] } ] }

// pages/p-prices.json — the same block shown again
{ "id": "s-prices-visit", "blocks": [ { "id": "b-prices-visit", "ref": "b-visit-cta" } ] }
```

- A placement has only `id` and `ref`. Its `id` must be unique like any other block id.
- `ref` points at the `id` of the block that holds the content (never at another placement).
- Editing a shared block on the site changes it everywhere it is placed; editors can also choose "only this page", which turns that placement into its own block.
- Blocks that should be available but not shown anywhere yet go into a global section with `"region": "library"` in `global.json`.

### What content creators can import

Kits imported by content creators may not contain Code blocks (`"type": "code"`), because Code blocks can run scripts. Only an admin can import a kit with Code blocks.

## Forms, file links and the kit checker (JoodCMS 0.5.1)

### Form blocks

A `form` block shows its cells (intro text) and then a form. Messages are stored in System › Inbox with a ticket number, and an e-mail notice is sent. Spam protection works without cookies or captchas.

```json
{ "id": "b-contact-form", "type": "form", "name": "contact-form",
  "cells": [ { "id": "c-cf-intro", "html": "<h2>Write to us</h2><p>We answer within one working day.</p>" } ],
  "form": {
    "name": "Contact",
    "button": "Send",
    "success": "Thank you. We will answer soon.",
    "email": "",
    "consent": "I agree that my message and contact details are stored to answer me.",
    "fields": [
      { "key": "name",    "label": "Your name", "type": "text",     "required": true },
      { "key": "email",   "label": "E-mail",    "type": "email",    "required": true },
      { "key": "topic",   "label": "Topic",     "type": "select",   "required": true, "options": ["Question", "Booking", "Other"] },
      { "key": "message", "label": "Message",   "type": "textarea", "required": true }
    ]
  } }
```

- Field types: `text`, `email`, `tel`, `textarea`, `select` (needs `options`), `checkbox`, `number`, `url`, `date`. At most 25 fields.
- `date` shows the device's calendar. `"range": "future"` accepts today or later (bookings), `"past"` today or earlier (date of birth), `"any"` (default) any date.
- In `options`, a line starting with `#` is a group heading, not a choice: `["# Recreational", "Open Water Diver", "Advanced Open Water", "# Technical", "Tec 40"]`. Up to 200 lines.
- `key` is the field's name: lower-case letters, digits and `_`. A link can fill fields in: `/contact?topic=Booking&message=Hello`.
- The first `email` field becomes the reply address; the first `select` becomes the message topic in the Inbox.
- `email` sends this form's notices to that address; leave it empty to use the address set in System › Inbox. Never invent an address.
- `consent` shows a required tick box; leave it empty for no tick box. Link the privacy page with the site setting, not inside the text.

### Links to files

Files offered for download (System › Files) can have a fixed link name, for example `/download/price-list`. Kits do not carry the files themselves, but a kit may link to a fixed name the site owner will create, e.g. `<a href="/download/price-list">Price list (PDF)</a>`. List such names in the kit's README so the owner knows which files to upload.

### Check before importing

System › Site kit › Check a kit reads a zip and reports problems without changing the site. "Copy report for your AI" copies the report so you can paste it to the AI that made the kit and ask it to fix the problems.


## Right to left, slideshows and per-screen styles (JoodCMS 0.5.2)

- **Right to left.** Set `"language": "ar"` in kit.json. JoodCMS mirrors dropdown menus, slider arrows, breadcrumbs and slide-in effects by itself. In theme CSS use direction-aware properties (`margin-inline-start`, `padding-inline-end`, `inset-inline-start`, `text-align: start`) instead of left/right, and never add `letter-spacing` to Arabic text: it breaks the joined letters.
- **Slideshow autoplay.** On a `slider` block, `"autoplay": 6` moves to the next slide every 6 seconds (2–30). It pauses while a visitor points at it, stops when they use the arrows, and stays off for visitors who asked their device for less motion. No Code block needed.
- **Per-screen styles of single elements.** A block can carry `"elStyle": { "jc-e-ab12cd": { "phone": "font-size:15px;text-align:center" } }`. The key is a class on an element inside the block (`jc-e-` and 4–12 lower-case letters or digits) or `cell-0`, `cell-1`… for a cell; the screen sizes are `laptop`, `tablet` and `phone`. The editor writes these when someone styles an element in Tablet or Phone mode; kits rarely need to.
- **Sister sites in two languages** (until 0.6): one kit per language, each in its own folder. See "Websites in several languages" in the 0.5.3 section for the language link and its Code block.


## Pictures, rebuilding a site and the kit checker (JoodCMS 0.5.3)

### Pictures and graphics

A page without pictures looks unfinished. In this order:

1. **Use the pictures you were given**: the photos in a migration pack (`media.json` says which page and which role each photo has: hero, gallery, inline, logo) or the photos the person attached. Use them where they belong; do not reuse one photo everywhere.
2. **Where no photo exists, draw an SVG graphic** in the site's colours (a wave, a simple illustration, an icon set, a pattern). SVG is code: light, sharp on every screen, and it matches the design. Name these files `placeholder-…svg` (for example `media/placeholder-hero-courses.svg`) so the owner knows which ones to replace with real photos later. The kit checker lists them.
3. Never link pictures from other websites, and never invent photos of real people, places or products.

### Rebuilding an existing site

When the kit replaces a website that already exists (a migration pack, an old site's pages, or a backup):

- **Keep the content and facts**: texts, prices, contact details, opening hours. Improve the wording and structure only where the person asked for it.
- **Keep the addresses.** Use the same slugs and page types so every old address still works (search engines and bookmarks keep finding the pages). A page type with an empty slug keeps addresses flat (`/open-water-diver-course`).
- **Keep how visitors find their way**: the menu order, the categories, and paths between pages (a course leads to the next course, a product to its accessories). The new design may be better, but a returning visitor should recognise the site.
- **Keep the look's identity**: the logo and the colours, unless the person asked for a new look.
- **When an address does change, add a redirect** in `redirects.json`:

```json
[
  { "from": "/old-courses/open-water/", "to": "/courses/open-water-diver" },
  { "from": "/en/shop.html", "to": "https://shop.example.com", "code": 302 }
]
```

  `from` is the old address on this site (with or without slashes; letters are matched without case). `to` is a page address in the kit (`/courses/open-water-diver`) or a full `https://` address. `code` is 301 (moved for good, the default) or 302 (temporary). A page always wins: a redirect is used only when no page has that address. The kit's list replaces the redirects earlier kits made; a kit without `redirects.json` leaves the site's redirects alone.
- **Forms**: rebuild the old site's forms as JoodCMS form blocks (section "Form blocks"), with the same fields.
- **What cannot move** (online shop, booking widget, a plugin's special feature): leave it out of the kit and list it for the person, with a suggestion (a link to the external service, a form, a Code block an admin adds).

### Websites in several languages (sister sites, until JoodCMS 0.6)

Make **one kit per language**, each installed in its own folder (main language at the top, the others in folders such as `/en`):

- Same design, same page types, and the same page `id`s for pages that are translations of each other.
- Slugs may differ per language (`/kurs-open-water-diver` and `/en/open-water-diver-course`); keep the old site's slugs.
- In the header, a language link with the class `dk-lang` (any class works if you change the script), `hreflang` and `lang`: `<a class="dk-lang" href="/en/" hreflang="en" lang="en">EN</a>` on the main site, `<a class="dk-lang" href="/../" hreflang="pl" lang="pl">PL</a>` on a site in a folder (`/../` leads from `/en` back to the main site).
- A Code block in the header region opens the same page in the other language and tells search engines about both. `M` maps this site's slugs to the other site's slugs (`""` is the home page):

```html
<script>document.addEventListener("DOMContentLoaded",function(){var M={"":"","kurs-open-water-diver":"open-water-diver-course"},B=window.JC_BASE||"",p=location.pathname,r=p.indexOf(B)===0?p.slice(B.length):p,s=decodeURIComponent(r).replace(/^\/+|\/+$/g,""),ed=document.body.classList.contains("jc-editing");function tag(h,u){var l=document.createElement("link");l.rel="alternate";l.hreflang=h;l.href=u;document.head.appendChild(l)}document.querySelectorAll("a.dk-lang").forEach(function(a){var u=new URL(a.getAttribute("href"),location.href),root=u.origin+u.pathname.replace(/\/+$/,""),has=Object.prototype.hasOwnProperty.call(M,s),t=root+"/"+(has?M[s]:"");if(!ed)a.href=t;if(has)tag(a.getAttribute("hreflang"),t)});tag(document.documentElement.lang,location.origin+p)});</script>
```

  Give the Code block `"className": "dk-code"` and hide it with `.dk-code{display:none}`. Kits with a Code block are imported by an admin.

### A kit is a one-time handover

After the kit is imported, **the website in JoodCMS is the original**. People edit it there (by hand, or by AI in the editor). Any script, list or draft you used to make the kit is thrown away; never keep "your" copy as the master. When the person later wants a bigger change from an AI (a redesign, a new section of the site), they export the current site (System › Site kit › Export for AI) and the AI starts from that export, which carries every manual edit. Keep the export's `id`s so only what changed is replaced.

### What the kit checker warns about

Before importing, System › Site kit › Check a kit reports, besides broken JSON, missing files and duplicate ids:

- an address that repeats itself (`/products/products`): see "Overview pages";
- menu items (submenus too) that point at a page or address that is not in the kit, or use an address JoodCMS cannot open;
- redirects that are never used (a page has that address) or that lead nowhere;
- headings that are hard to read on a coloured section;
- pages with very little text;
- a site where most pages have no pictures or graphics;
- the `placeholder-…` pictures still to replace with real photos;
- a kit made for a newer JoodCMS than the site runs;
- (0.5.4) a page without sections, which would be empty: an **error**;
- (0.5.4) files and page fields that are not part of a JoodCMS kit (for example `joodcms.json`, `templates/`, or a page with `"content"` instead of `"sections"`): the sign of a format the AI made up. JoodCMS ignores them, so their content would be lost.

Copy the report back to the AI that made the kit and ask it to fix everything and return the complete kit.


## Drafts, the site switch, prices and reading back (JoodCMS 0.5.4)

- **Read back first.** When you build from a migration pack or attached files, first tell the person what you found (number of pages, languages, layouts, menus, pictures), then build. If you cannot open a file, say so. Never invent a site to fill the gap.
- **Drafts.** New pages the owner should check first get `"published": false`. They import as drafts the team can review and publish one by one or together (System › Content).
- **The site switch.** The person can import a kit with the site switched off (maintenance mode), look at it privately and press Go live. Nothing in the kit is needed for that.
- **Prices in one place.** Where the same price appears on several pages, write it as `{{price:short-name}}` (for example `{{price:open-water}}`) and list the prices for the person; they enter each once in System › Content › Prices and every page shows it. Use plain amounts when a price appears only once.
- **Address changes are safe.** When someone changes a page's address or page type in JoodCMS, the old address keeps working by itself. In a kit, use `redirects.json` for addresses that change.
- **Only real kit files.** A kit is exactly the files in "The kit format" above. No `joodcms.json`, no `templates/` folder, no HTML pages, no log files: JoodCMS ignores them and the checker flags them.
