Operate · 02
Content Studio and themes
The Content Studio is the visual control plane for the public storefront. It stores section layouts and theme settings in the database so design changes can be previewed, revised and published without a deploy.

What the Studio owns
| Surface | Stored in | Published to |
|---|---|---|
| Page section layouts | Page.sections and revisions | The public CMS page for that page key. |
| Theme tokens | ThemeSettings and theme revisions | The global storefront and dashboard brand tokens. |
| Navigation | Menu and MenuItem | Header and footer menus. |
| Reusable sections | ReusableSection | Any page that inserts the reusable block. |
The Studio does not replace product records, orders or the journal. It edits the presentation layer around them.
Editing workflow
- Choose a page from the page picker. Each built-in page has a stable key such as
home,shop,product_cedar-after-rainorjournal_detail. - Edit sections in the rail panel: add from the section library, reorder, duplicate, hide or delete. The inspector shows the fields for the selected section.
- Set theme tokens at
/dashboard/editor/→ Theme. Accent, ink, surfaces, muted text, lines, typography, header/footer variants and logo URLs are editable. - Preview desktop, tablet and mobile. Staff previews use
?preview=1and are allowed inside the Studio iframe. - Save draft, then Publish when the preview is correct. Drafts are private; publishing writes the live section list and a revision.
The Studio is responsive. On phones the topbar keeps Save and Publish visible, the tool panel and inspector hand off instead of stacking, and RTL panels mirror to the correct side.
Page keys and fallbacks
Page keys are stable identifiers, not URLs. Products use product_<slug>, collections use collection_<slug>, journal posts use post_<slug>; built-in pages use keys such as home, shop, about, contact, help and affiliates.
If a page has no custom sections, the renderer falls back to the seeded layout for that key. Creating a new page in the dashboard gives it its own route under /pages/<slug>/.
Theme and navigation
Theme changes are stored as tokens and can be revised. The logo and favicon URLs accept local media paths or absolute URLs. The header and footer menus are data-driven: each item points to an internal page, product, collection or an explicit URL.
The Studio canvas has its own Preview theme control. It changes only the storefront preview and never the editor chrome or the shopper's saved theme. Default theme is the value that takes effect for shoppers after the theme is published.
Changing a menu label does not break the destination. Removing a menu item does not delete the target page. Menus can be reordered by position and edited at /dashboard/menus/.

Publishing safely
- Use a staff preview to check a product page with a real product, not just the home page.
- Check the mobile preview before publishing a section with a large image or long headline.
- Use revisions to compare a recent publish with the current draft.
- Keep one person responsible for publishing during a campaign; concurrent edits are last-write-wins.
- Publish the theme and page separately when diagnosing a visual change.
# Content Studio data is in the database, not static files.
# A deploy does not overwrite drafts or published sections.
python manage.py check --settings config.settings_production
Troubleshooting the Studio
| Symptom | Cause | Fix |
|---|---|---|
| Preview iframe is blank | The preview request was blocked by frame headers. | Confirm you are signed in as staff; normal pages are DENY, previews are SAMEORIGIN. |
| Save does nothing | A required section field or form validation failed. | Check the inspector for the field error and the server log. |
| Publish appears to succeed but the site is unchanged | A draft was saved but not published, or the page key is different. | Re-open the page picker and confirm the published revision. |
| Theme changed the dashboard but not the storefront | The editor chrome and the storefront preview have separate theme controls. | Publish the theme, then use Preview theme to inspect both modes. The editor theme never changes shopper-facing colours. |