Search
{"group_id":1,"generated_at":1795121094,"index_hash":"d26c16f99839dd3d1a6c8933e2cde175e8b497942dd2f0487f4086e304ea25ae","documents":[{"page_id":25,"title":"AI Assistant","navigation_title":"AI Assistant","summary":"","headings":["Turning it on","What it can do","Choosing a model","Limits and safeguards","Working with it well","Troubleshooting"],"body":"Audience: Both. PageCraft can build and edit sections from a written description, answer questions about the page you are on, and generate images straight into your EE file manager. It is off until you supply an API key. The short version: get an OpenRouter key, paste it into Advanced Settings, switch on Enable AI Code Chat in Global Settings, then use the sparkles button — tooltip AI Assistant — in the toolbar down the left of the editor. Turning it on PageCraft does not resell AI. You bring your own OpenRouter account and are billed by them for what you use. Create an OpenRouter account and generate an API key. CP → Add-Ons → PageCraft → Advanced Settings → OpenRouter API Key. Paste the key and save. CP → Add-Ons → PageCraft → Global Settings → Enable AI Code Chat. Switch on. Open any entry with a PageCraft field. A sparkles button, tooltip AI Assistant, appears in the toolbar down the left of the editor. The key is encrypted before storage and never displayed again — the field reads blank after saving, which is correct, not a failed save. To change it, paste a new one. Requests are proxied through your own server, so the key never reaches the browser and never appears in page source. Without a key, the panel does nothing useful, which is why the toggle and the key live one click apart. What it can do Build and edit sections. Describe what you want and it writes the section into the canvas. Ask it to change what is already there — \"make the heading larger and move the image right\" — and it edits in place. Answer questions about the page, in chat, without changing anything. Generate images. Describe an image and it is generated, uploaded into your configured EE upload directory, and inserted. From that moment it is an ordinary EE file — it appears in the file manager, can be reused, and is referenced portably like any other PageCraft image. Read images you attach. Attach a screenshot or a reference and ask it to match a layout. All available models accept image input. Attached documents are read in the browser and folded into your prompt rather than uploaded. Choosing a model Two lists, because the jobs differ: Used for Default Code model writing and editing section markup Gemini 3.7 Flash Chat model conversation about the page Gemini 3.5 Flash Lite The code list runs from Claude Opus 5 and Sonnet 5 through GPT-5.6 Sol to Gemini 3.1 Pro and 3.7 Flash. The chat list is a smaller set chosen for speed and cost. Cost and quality track each other closely. The Flash-class defaults are the sensible starting point; move up to Opus or GPT-5.6 for a section that is fighting you, not for routine edits. Image generation defaults to Gemini 2.5 Flash Image, with GPT-5 Image and larger Gemini image models available. The endpoint only accepts models from a fixed list — a tampered request cannot bill your account for an arbitrary model. Limits and safeguards 40 requests per minute per member. Beyond that you get a clear error and the counter resets on the next minute. Image prompts are capped at 2,000 characters. Only members who can access the control panel can use it. Every AI endpoint checks that independently of the editor UI, so the panel cannot be reached by URL. Generated images are uploaded as the member who asked for them, so the file manager shows who created what. Working with it well Be specific about structure. \"A three-column feature row with an icon, heading and short paragraph in each\" produces something usable. \"Make it pop\" does not. Iterate on one section at a time. Building a full page in one prompt gives you a lot to check; building section by section gives you something to correct while it is still small. Read what it writes. It produces real markup in your page, and you are the one shipping it. Check the copy for invented specifics — capacities, dates, client names — which language models will supply confidently and wrongly. It composes from raw markup, not from the block picker, so AI-built pages tend to contain no plugin blocks. That is fine, but it means such a page exercises different code paths from a hand-built one; if something renders oddly, mention that it was AI-generated. Troubleshooting No AI Assistant button. The toggle is off, or no API key is saved. Both are required — check Global Settings and Advanced Settings. \"Unauthorized\" or nothing happens on send. Your session is not being seen by the endpoint. Usually the same host mismatch that affects the editor frame — see Installation. Errors mentioning credit or billing come from OpenRouter, not PageCraft. Check your balance there. Generated images do not appear in the file manager. Check Global Settings → Upload Directory is set and writable. The image is uploaded through EE's own file handling, so anything blocking a normal upload blocks this too. Responses cut off mid-section. Raise the model's output limit in the panel's settings, or ask for a smaller piece of work.","breadcrumb_path":"AI Assistant","url":"/docs/pagecraft/ai-assistant"},{"page_id":23,"title":"CSS Framework","navigation_title":"CSS Framework","summary":"","headings":["The three options","What a framework profile actually does","Why the tailored stylesheet exists","What you give up","Changing an existing site","How it relates to the grid-compat CSS","Reference"],"body":"Audience: Site Builder. The CSS Framework setting tells PageCraft which framework your content is written in. It is not permission for ContentBox to manage your grid. Set it under Add-Ons → PageCraft → Global Settings → CSS Framework, or override it per field on the field's settings (leave a field on \"Use global setting\" to inherit). The short version: building from PageCraft's own blocks? Leave it on Native. Working with imported Bootstrap or Tailwind templates? Set it to match — that is now the right answer, and it used to be the wrong one. The three options Setting What you get Use when Native (default) ContentBox's own grid, with its full structural tooling — add/remove rows and columns, drag to resize. You build pages from PageCraft's bundled blocks. Bootstrap A framework profile: ContentBox never touches layout, structural tools are hidden, and a tailored stylesheet stops its CSS competing with Bootstrap's. Your sections come from an imported Bootstrap template. Tailwind CSS The same, for Tailwind — plus the bundled Tailwind build so generated classes always resolve. Your sections are authored in Tailwind. Most sites are all-in on one of these. The setting is designed for that. What a framework profile actually does Three things, together: 1. ContentBox stops managing the grid. It switches to a mode where it builds new rows and cells from your framework's classes and never rewrites markup that already exists. Your responsive ladder is safe permanently — not by convention, but because the code path that rewrote it is switched off. 2. Structural tools are hidden. No row add/remove, no column tool, no drag-to-resize. On an imported template the grid is a code concern: if you need a different column split, change the classes in the section's HTML. Everything else stays — the element toolbar, the side panel, and every content panel. 3. A tailored stylesheet is served. This is the part that fixes the styling conflicts, and it is worth knowing why it exists. Why the tailored stylesheet exists ContentBox's own utility classes are Tailwind. Its stylesheets define , , , , , — Tailwind's exact scale, from a compiled Tailwind subset baked into the bundle. On a Bootstrap site those class names collide and the values do not match. Bootstrap's is 1.5rem; ContentBox's is 1rem. Wherever ContentBox marked its version , it won, and your template's spacing quietly changed. The Bootstrap and Tailwind profiles serve the same stylesheets with removed from the ~148 rules whose class names belong to the host framework. Nothing is deleted and no value is rewritten — ContentBox's value still applies wherever your framework defines nothing, and your framework wins wherever it does. What you give up Drag-to-resize on framework columns. In ContentBox, column resizing and the layout rewriting are the same mechanism — you cannot have one without the other. The profile turns that mechanism off, so resizing a column means editing its classes. That is the deliberate trade: a grid that never changes underneath you, in exchange for a control that was damaging the thing it edited. Native is unaffected and keeps full resizing. Changing an existing site Switching a field from Native to a framework profile does not convert anything — no markup is rewritten in either direction. The setting only changes what the editor is allowed to do from that point on, so it is safe to try and safe to switch back. Imported sections do not need re-ingesting after a change. Tailwind note: Tailwind builds purge unused utility classes, so a class the editor generates may not exist in your compiled CSS. The Tailwind profile loads PageCraft's bundled full Tailwind build so generated grids always resolve. How it relates to the grid-compat CSS PageCraft also ships a small Bootstrap grid-compatibility stylesheet ( ) that keeps imported / grids laying out correctly. It counters a class-name collision on , which ContentBox's runtime CSS also claims. That stylesheet applies on both the front end and the editor canvas, and regardless of this setting — it is scoped by to rows that really do contain Bootstrap column tokens, so it never touches native ContentBox sections. You don't configure it, and the profile does not replace it; the two solve different problems. Reference Setting storage: key in (global) / field settings (per-field) Resolution: — the single resolver for every surface Editor options: Structural lock: Profile stylesheets: generated by , committed alongside the stock sheets Compat CSS: — canvas and front end alike","breadcrumb_path":"CSS Framework","url":"/docs/pagecraft/css-framework"},{"page_id":22,"title":"Dynamic Content","navigation_title":"Dynamic Content","summary":"","headings":["Workflow","What's stored","Front-end render","Editor preview","Caveats","Restricting which templates can be embedded","Reference"],"body":"Audience: Editor and Site Builder. Dynamic Content is the bundled section that embeds an EE template inside a PageCraft canvas. Use it when part of the page should render at request time — a blog listing, a product grid, a featured-entries strip — instead of being baked into the saved entry HTML. Workflow Open the section picker → PageCraft category → Dynamic Content. Drop it into the canvas. Click the dashed placeholder (\"Click to select an EE template\"). The slideout opens with a dropdown listing every template in your EE site (flat-file or DB-backed; both work). Templates are grouped and sorted; templates whose names start with are dimmed but still selectable. Pick a template (e.g. ). The canvas immediately fetches the rendered HTML and shows a live preview in place of the placeholder. Save the entry. The selected template path persists. What's stored The placeholder div carries a single attribute: Two notes on the attribute: namespace is intentional. ContentBox aggressively strips empty attributes during snippet insertion, which would lose the template path if we used . The PC namespace is round-trip safe. The sentinel is used as the value before a template has been chosen. ContentBox would otherwise drop the attribute entirely (empty string is treated as \"no value present\"), and there'd be no key to write into when the user finally picks a template. Front-end render When the entry renders, walks the saved markup, finds every element, reads its , and replaces the placeholder's inner HTML with the rendered template. The substitution happens server-side at request time — the consumer never sees the placeholder. The render path: (front-end render path) (shared with the editor preview path) Template lookup: flat file in first; DB fallback via the table. Parser annotation cleanup: and markers are stripped before the result is returned. EE's normal post-process handles these on a real page render, but the embed path runs in isolation so it does the cleanup itself. Editor preview Inside the canvas, the same render runs through (the ACT) which returns a small JSON envelope . That keeps the editor preview byte-identical to what your visitors see — if a template parse error happens, you see it in the editor before publishing. Caveats Templates that depend on / always render as if the visitor is logged out in the preview path. The preview process zeroes out the session member ID before parsing so private content doesn't leak into draft previews. Embedded templates shouldn't include their own tag — the embed strips it because the wrapping page is responsible for layout, not the embedded fragment. Heavy templates render every time the entry is saved (preview) and every time the entry is rendered (front-end). Add EE's normal or template caching at the wrapping template level if you need to throttle the cost. An embed renders when the page renders, so any page cache freezes it with the page. That includes EE template caching and static or full-page caches (Speedy, CE Cache, a CDN). A change to the embedded template, or to the entries it lists, appears only after that page's cache entry is cleared or expires. Restricting which templates can be embedded By default any site template can be embedded. To limit it, list template groups (or exact paths) in : This is enforced where an embed renders, front end and editor preview alike, not only in the picker. That matters because anyone who can edit a field's HTML can type any path into . The picker then lists only the allowed templates too. Remove the line to allow everything again. An embed that would render itself, directly or through a template that renders the same field, is skipped and leaves an HTML comment explaining why. Embeds nested more than three deep are skipped the same way. Reference Plugin source: Front-end render: Editor preview: Shared render service:","breadcrumb_path":"Dynamic Content","url":"/docs/pagecraft/dynamic-content"},{"page_id":26,"title":"Editing Existing Templates","navigation_title":"Editing Existing Templates","summary":"","headings":["The Sections manager","Section editor fields","Thumbnail formats","Regenerate File button","Save-as-Section from the canvas","Reference"],"body":"Audience: Site Builder. PageCraft's bundled section templates aren't carved in stone — every section the picker shows can be edited, renamed, recategorised, or replaced from the CP. This page covers the basic CRUD flow plus the regeneration step that keeps the picker in sync with the database. The Sections manager CP path: Add-Ons → PageCraft → Sections. The list shows every row in for the current site, with thumbnail, name, category, description, and Edit / Delete actions. Toolbar buttons across the top: Regenerate File — see \"Regenerate File button\" below Export Sections — downloads a JSON file (the input format for Sections Import) Import Sections — uploads a JSON file (replaces or appends) Import Pack (.zip) — see Importing Custom Templates Ingest Template (.zip) — see Importing Custom Templates Add Section — opens the section editor for a new row Section editor fields Click Edit on any row, or click Add Section. The edit screen exposes: Name — shown under the thumbnail in the picker Description — shown only inside the Sections manager (free-form note for your own reference) Category — the picker grouping the section appears under (Grid Builder, PageCraft, or any custom category you've added under PageCraft → Categories) Thumbnail — see \"Thumbnail formats\" below HTML body — the actual section markup (the source of what gets dropped into the canvas) Sort order — picker order within the category Saving the form re-runs automatically, so the picker reflects your change immediately. Thumbnail formats The Thumbnail field accepts four shapes: EE file reference — resolves through the EE file manager Portable file reference — (legacy, still supported) Absolute URL — Plain filename — resolves to The plain-filename path is the most ergonomic for SVG previews you commit to the repo alongside the section. The bundled Grid Builder thumbnails use this pattern ( , , etc.). decides which shape it has and returns the right absolute URL when generating the picker JS. Regenerate File button The picker reads from . That file is regenerated by after any section/category save. Two situations the button helps with: Permission-related failures. If the file isn't writable by the PHP user, the auto-write fails silently. The Regenerate button surfaces the exact error inline (\"file is not writable by the PHP user — fix permissions on …\"). Sections that show in the manager but not in the canvas picker. The DB and the JS file have drifted. Click the button to force a clean rewrite. The writer is non-destructive: if the DB has zero categories and zero sections (e.g. an empty fresh install) it refuses to overwrite a non-empty existing file, so you can't accidentally clobber the bundled defaults. Save-as-Section from the canvas Inside the editor, every section toolbar has a 💾 Save as Section button. Click it, name the new section, pick a category. The flow: Clones the rendered HTML out of the canvas Strips ContentBox editor UI (toolbars, drag handles, click hooks) and the snapshot via Inserts a new row into Triggers so the new section appears in the picker on next page load Reference Schema: and in Generation pipeline: Save-as-Section action: Sections list page: Section editor:","breadcrumb_path":"Editing Existing Templates","url":"/docs/pagecraft/editing-existing-templates"},{"page_id":18,"title":"Editing Sections","navigation_title":"Editing Sections","summary":"","headings":["Canvas anatomy","The section toolbar","The block picker","Typography","Saving an arbitrary canvas section"],"body":"Audience: Editor. Canvas anatomy A PageCraft page is a stack of sections. Each section is a wrapper containing one or more rows, each row containing one or more columns, and each column containing blocks (heading, paragraph, image, button, plugin, etc.). You don't have to memorise that. The canvas surfaces it visually: Hover any section → green toolbar at the top-left (\"section toolbar\") Hover any row → blue handle on the left (\"row toolbar\") Click into any text → ContentBox's text-editing toolbar floats above Click any image → upload / replace handles appear The section toolbar Each section's toolbar (the green strip with icons) gives you: + Add a new section above this one … Section settings (margins, background, padding, alignment) 🗑 Delete this section 💾 Save as Section — clones the current section into your PageCraft → Sections library so you can reuse it on other pages 🔒 Lock (super admins only) — promotes the section to a sitewide global header or footer. See Global Header & Footer. The block picker Click the + button on any section to open the section picker (full-screen drawer). Sections are grouped into packs with their own categories: Simple Start — minimalist hero, slider, video, navigation, plugins, legacy Quick Start — hero, article, photos, list, quotes, FAQ, call-to-action, logo list, pricing, shop, profile, contact, footer Animated Sections — pre-animated hero / list variants PageCraft Sections — your bundled custom sections, including: Grid Builder — 1–5 column rows + Wide+Narrow / Narrow+Wide pairs (see Grid Builder) PageCraft — Dynamic Content (an EE-template embed; see Dynamic Content) Drag the chosen section's thumbnail onto the canvas, or click it to insert at the bottom. Typography The Typography panel applies a font pairing — a style — to your content. Above the list of styles is an Apply to switch: This section — styles only the section you have selected. This is the default, and it resets to this every time you open the panel. Whole page — styles every section in this field at once. It resets deliberately. A sticky page-wide setting is destructive by surprise: you would set it once for a global font, come back later to restyle a single section, and silently overwrite every other section's typography. Applying page-wide is a deliberate act each time. \"Whole page\" means this field. A Global Header or Global Footer is a separate component with its own typography, so site chrome keeps whatever style it was given. To match them, open each and apply the same style there. Fonts are not stored in your content. The style is recorded as a class on each section, and the matching stylesheet is loaded at render time from that class — which is why saved content stays clean and portable between environments. Saving an arbitrary canvas section Building a custom layout that you want to reuse? Click the 💾 Save as Section button on its toolbar. PageCraft asks for a name and category, strips ContentBox's editor-only UI (the toolbars, draggable hooks, click handlers), and inserts the cleaned HTML into your Sections library. From then on the saved section appears in the picker for any PageCraft field that has access to its category. If a section ever stops appearing in the picker even though it's listed under PageCraft → Sections, click Regenerate File on that page. See Editing Existing Templates.","breadcrumb_path":"Editing Sections","url":"/docs/pagecraft/editing-sections"},{"page_id":24,"title":"Forms","navigation_title":"Forms","summary":"","headings":["Adding a form","Editing the fields","Where the submission goes — the Form Delivery button","Who actually receives the email","What the redirect does","Spam protection","Forms from PageCraft 1.x","Converting an old form","Troubleshooting"],"body":"Audience: Editor. PageCraft builds forms visually and posts them to its own endpoint, which emails the submission. No third-party form service, and no EE channel-form template code. The short version: insert a Form block, edit the fields with Edit Form, and set who gets the email with the Form Delivery button on the section toolbar — not in the form's own Settings tab. Adding a form Click the + between sections and choose FORM. You get a starter form — name, email, message — that you then edit. The form is written into the page's HTML, so visitors see it immediately and search engines can read it. Editing the fields Select the form and click Edit Form. The form builder opens with four tabs: Tab What you set Edit Form the fields themselves — labels, types, order, required Settings the success and error messages, and the reCAPTCHA site key Designer the form's colours and typography Workflow AI steps on submit — not enabled in PageCraft Field types include short and long text, email, phone, number, dropdown, select, multi-select, switch, slider, date, time, URL, colour and file upload. Where the submission goes — the Form Delivery button This is the one that is easy to miss. Notification Email and Redirect URL are not in the form's Settings tab. They live on a Form Delivery button — the blue envelope icon at the bottom of the section toolbar, the vertical strip of buttons on the right edge of the section. It appears on any section containing a form. Two fields: Notification Email — who receives this form's submissions. Leave blank to use the site-wide default. Redirect URL — where the visitor lands after a successful submit. Leave blank to show the success message on the page instead. They are deliberately not in the vendor's Settings tab: keeping PageCraft's additions outside the form plugin's own files is what lets that plugin be replaced wholesale on every ContentBox upgrade without a merge conflict. The trade is that the two settings live one panel away from the others. Who actually receives the email Resolved in this order, first match wins: The form's own Notification Email (Form Delivery button) Global Settings → Default Form Notification Email The site's from EE's own settings The per-form address is encrypted server-side before it reaches the page, so it never appears in page source and a crafted submission cannot redirect a site's form mail somewhere else. What the redirect does Setting a Redirect URL switches the form to a standard browser submit, and the server answers with a redirect — so the visitor leaves the page and the success message never appears. That is usually what you want: send them to a thank-you page. Leave it blank and the form submits in the background, staying on the page and showing the success message from the Settings tab. Redirects are restricted to your own site. An off-site URL is rejected. Spam protection Two layers, both on by default: A honeypot field. Every form renders a decoy field that real people never fill in. A submission that fills it is discarded silently. reCAPTCHA v2, optional. Put the secret key in Global Settings → reCAPTCHA v2 Secret and the site key in the form's own Settings tab. Both are needed — one without the other does nothing. Forms from PageCraft 1.x Sites upgraded from PageCraft 1.x may still contain forms built with the older Form Builder block. PageCraft 2.x no longer includes its editor: such a form can't be edited, and its submissions aren't routed to PageCraft. Convert it to the current Form block. Converting an old form Existing classic forms are migrated with a script rather than rebuilt by hand — fields, labels, types, validation, the notification address and the redirect all carry across: That is a dry run and writes nothing; it reports what it would change. Add to convert, which backs up every original value first and prints the backup location. Afterwards, open each converted entry once and save it. That regenerates the copy of the form that visitors see before JavaScript runs — a server-side script cannot produce it. The form works either way; without that save it is simply missing from the page source. Troubleshooting The Form Delivery button isn't there. It only appears on sections containing a Form block. If the section holds an old Form Builder block from PageCraft 1.x, convert it first (see above). No email arrives. Check the resolution order above — with no per-form address and no global default, it falls back to EE's , which may not be a mailbox anyone reads. Check EE's own email settings and the Developer Log. Submissions stopped after an upgrade. Submit the form yourself and watch for the redirect. A form that silently stops emailing looks completely normal from the outside, so test it rather than assume it. The form shows briefly then disappears, or appears empty. The form is rendered by the ContentBox runtime; make sure is present in your template.","breadcrumb_path":"Forms","url":"/docs/pagecraft/forms"},{"page_id":17,"title":"Getting Started","navigation_title":"Getting Started","summary":"","headings":["Adding the fieldtype to a channel","Per-field settings","Saving the first entry","Front-end output","Previewing on a headless front end","Override it per environment, and why you should","The home page needs one line on the front end","Which server you point at changes the workflow","Where to next"],"body":"Audience: Editor and Site Builder. Adding the fieldtype to a channel Develop → Channels → Fields, click New Field. Choose PageCraft Builder as the field type. Give it a short name like or . Save. Add the field to a channel via that channel's Fields tab. You can have more than one PageCraft field on a channel, but in practice one is usually enough — a single PageCraft field can build an entire page. Per-field settings Every PageCraft field exposes a settings group on the field-edit screen. The most common knobs: Upload directory — overrides the global default for image uploads inside this field. Leave blank to inherit the addon-wide setting (Add-Ons → PageCraft → Global Settings → Upload Directory). Allowed block packs — restrict which block packs (Simple, Quick, Animated, PageCraft, etc.) appear in the picker for this field. Allowed categories — narrow the section picker to specific categories (e.g. \"Hero\" + \"Photos\" only). Custom CSS / Custom JS — per-field stylesheet and script that load alongside the editor canvas. See Template Tags Reference for the runtime story. Anything not overridden falls back to the addon's Global Settings. Saving the first entry Open an entry that uses your new field. The PageCraft canvas mounts in place of a normal text area. Click anywhere to start: the section picker opens on first interaction, and you can drag any section in. When you save the entry, PageCraft serializes three things into the field as JSON: — the full canvas markup, before dynamic resolution — global stylesheet for the page (set in the editor's style panel) — per-section CSS that the editor accumulates as you tweak section styles The JSON lands in like any other custom field value. Front-end output In the template that renders the entry, output the field with one or more of: Or, if you want a single tag that returns the full rendered page (HTML + CSS combined with sensible defaults): The tag also resolves dynamic content — embedded EE templates render in place, and the structure-driven nav menu (if enabled) injects the live menu data. See Template Tags Reference for parameter detail. Previewing on a headless front end The editor's Preview button opens the EE page for the entry. If your site is built with Astro, Next, Eleventy or anything else that consumes EE as a data source, point it at that instead: CP → Add-Ons → PageCraft → Global Settings External Preview URL — e.g. . Blank is the off switch; leave it empty and Preview behaves exactly as before. External Preview Path — appended to the URL above. Placeholders: Placeholder Gives Use when the Structure URI, e.g. Your site uses Structure. Start here just the entry's URL title Flat sites with no nesting the numeric id Routes like Prefer if you use Structure. The two agree on top-level pages and diverge the moment one is nested: a page under Services has the URI but the URL title , so sends you to a page that does not exist. That failure only appears the first time someone nests a page, which is a bad time to discover it. If Structure has no URI for the entry, Preview falls back to the EE page rather than building a URL that is probably wrong. Override it per environment, and why you should These settings live in the database, so they travel with a database clone. A preview URL of copied to staging points every editor there at their own machine, and nobody notices until someone clicks Preview. Set it in instead, which is per-environment and never travels: The config value wins over the stored setting. A config value that is set but empty switches the feature off, so a production config can force it off no matter what a cloned database says: The home page needs one line on the front end Most headless front ends render the home page from an index route ( , ) at , and exclude it from the dynamic route so it is not built twice. EE still knows that entry by its real URI — usually — so Preview sends you there and you get a 404. PageCraft reports the CMS path deliberately; guessing which entry is \"the index\" would be inventing your app's routing convention. Map it in the app instead. In Astro that is: That fixes every link that follows the CMS path, not just the Preview button. Restart the dev server after changing the config. Which server you point at changes the workflow This is the part worth getting right: A dev server ( , ) fetches your content per request, so preview shows what you just saved. No build step, nothing to remember. A built static site serves the last build, so preview lags behind your edits until the site is rebuilt. For day-to-day editing, the dev server is the one you want. A new, unsaved entry has no URL title yet. Rather than send you to the front end's index page — which would look like a working preview of the wrong page — Preview falls back to the EE URL until the entry has been saved once. Where to next Editing Sections — how the canvas picker works Nav Builder — the most complex stock section Dynamic Content — embedding EE templates","breadcrumb_path":"Getting Started","url":"/docs/pagecraft/getting-started"},{"page_id":20,"title":"Global Header & Footer","navigation_title":"Global Header & Footer","summary":"","headings":["Permissions","Locking a section as global","Storage","Rendering the global header / footer","Where to place them — the sitewide wrapper","Editing locked content","Scoping note"],"body":"Audience: Editor (super admin) and Site Builder. PageCraft lets a super admin \"lock\" any section as a sitewide global header or global footer. The locked section then renders on every page that includes the appropriate template tag — so updates happen in one place and ripple across the site immediately. Permissions Lock and unlock buttons appear only for super admin members. Regular editors see the section as ordinary content and can edit normally on whichever page they're on, but their edits won't propagate. Locking a section as global Build the section (or pick one from the picker). Hover the section to reveal its toolbar. Click 🔒 Lock in the toolbar. PageCraft asks which slot — header or footer. Save. PageCraft strips ContentBox's editor-only UI before storing — toolbars, drag handles, click hooks, the snapshot, and any legacy attributes are all removed so the saved markup is clean. See if you want to audit exactly what's stripped. Storage Locked components live in the table, one row per × (header or footer). Columns: — primary key — MSM site — or — cleaned markup — accumulated section CSS — flag (1 when active) , , You can copy these rows between environments via a normal SQL dump. Rendering the global header / footer In any front-end template: Accepted parameters: (default) — wrap the rendered HTML in a element (the class the front-end runtime expects). Set to omit it when you're supplying your own wrapper. — extra classes on the wrapper. — also enqueue the runtime stylesheet+script. Useful when the global header includes ContentBox plugins that need front-end JS (sliders, accordions, etc.). Both tags are safe to drop on every page even before any header/footer has been locked — they return an empty string when no row exists. Where to place them — the sitewide wrapper Because the locked header/footer are entry-independent (they're keyed only on the site, not on the page being viewed), the tags belong in your layout/wrapper template, not in individual page templates — and they should be called unconditionally so the header and footer appear on every page. A minimal PageCraft wrapper ( ): Notes on this pattern: Call them unconditionally. A common mistake is wrapping the header in — that hides it on the home page. The locked header is meant to be sitewide; if home appears to \"already have a nav,\" that nav is almost certainly built into the home entry's content, not the global header. Pick one source of truth: either use the global header everywhere (and remove any nav baked into the home entry), or keep the home entry's own nav and condition the global header off for home. Don't run both, or home shows two navs. + your own div. The runtime's looks for an element with class ; giving the header/footer their own wrapper (as above) satisfies that and lets you style/position the bar via . ( , the default, wraps the output in for you — use only when you supply your own wrapper, as here.) is the default, so plugin-driven headers (a nav-menu, social links, etc.) get their front-end JS/CSS automatically. Editing locked content Open any entry that's editable, click the locked section's 🔓 Unlock toolbar button. The section becomes editable on that page. When you're done, click 🔒 Lock again to push the changes back to the global slot. The version on every other page updates next request. Scoping note Each MSM site has its own header and footer slot. Switching site (the site-picker in CP) shows the section row for that site only.","breadcrumb_path":"Global Header & Footer","url":"/docs/pagecraft/global-header-footer"},{"page_id":21,"title":"Grid Builder","navigation_title":"Grid Builder","summary":"","headings":["Bundled sections","Column split buttons","When to use which","Reference"],"body":"Audience: Editor. The Grid Builder is a small bundled section pack plus a pair of column-split shortcuts. It's the fastest way to lay out a section without building columns by hand. Bundled sections Open the section picker → Grid Builder category. Seven sections ship out-of-box: 1 Column — single full-width column with a heading + paragraph stub 2 Columns — two equal columns 3 Columns — three equal columns 4 Columns — four equal columns 5 Columns — five equal columns Wide + Narrow (2/3, 1/3) — first column 66.6%, second auto-fills Narrow + Wide (1/3, 2/3) — mirror of the above Each is a plain with an and the column structure. Drop one in and start editing — text and images are immediately editable. Column split buttons ContentBox's column popup (\"…\" icon when you select a column) gets two extra buttons: Horizontal split — adds a sibling column to the right of the active column. The new column inherits styling, so 1+1 split into 2+2 quickly. Vertical split — divides the active column vertically into two stacked nested rows. Useful when you want a column to contain its own mini-grid (image on top, text underneath, both inside the same outer column). The buttons read / to find the target column, so they only fire when a column is actually selected. When to use which Bundled section — when you're starting a new section from scratch and want a clean layout in one click. Horizontal split — when an existing 2-column section needs to become 3 without losing content. Vertical split — when one column needs to hold two stacked elements that should resize independently of the rest of the row. Reference Section seed data: in (inserts the 7 rows on every install/update; idempotent) Column-split logic: lines 876–1027 Bundled CSS / JS: and Generated picker entry: (regenerated by ; see Editing Existing Templates)","breadcrumb_path":"Grid Builder","url":"/docs/pagecraft/grid-builder"},{"page_id":27,"title":"Importing Custom Templates","navigation_title":"Importing Custom Templates","summary":"","headings":["At a glance","Sections Import","Pack Import","Template Ingest","Choosing the right path","Set the CSS Framework to match your import","Reference"],"body":"Audience: Site Builder. PageCraft offers three import paths, each suited to a different source format. They live side-by-side as buttons on Add-Ons → PageCraft → Sections. This page covers when to use which. At a glance Source Tool Action class JSON export from another PageCraft install Import Sections Structured with a manifest Import Pack (.zip) of raw HTML pages from a template marketplace Ingest Template (.zip) Sections Import For moving sections between PageCraft installs. Use Export Sections on the source install to download , then Import Sections on the destination to replace or append. The JSON shape (excerpt): Categories are matched by name on import — if a target site already has a \"Grid Builder\" category, the imported sections attach to it instead of creating a duplicate. Pack Import For distributing self-contained section packs (your own or third-party). Input is a file containing: The manifest format: PackImport extracts to , registers the pack with PageCraft's pack indexer, and inserts category + section rows into the DB. Thumbnails are stored as absolute URLs (resolved against the imported pack's location) so they survive future regenerations of . A starter manifest ships at — copy it and adapt. Template Ingest For converting a raw HTML template marketplace download — a zip of standalone HTML pages ( , , ) plus the usual , , and asset folders — into PageCraft sections automatically. Workflow: Click Ingest Template (.zip), upload your archive. PageCraft extracts to . Each page becomes a category named after the file ( → \"About\"). Sections are derived from the page's headings — / / boundaries split the page into individually reusable section rows. Asset URLs ( , , ) are rewritten to point at the extracted location. SVG placeholder thumbnails are generated for every section (real screenshots can be added later via the Sections editor). CSS / JS files are registered with the canvas so the imported sections render correctly inside the editor as well as on the front-end. Compared to PackImport, this is a \"best-effort\" ingest — you'll usually want to do a follow-up pass through Sections to clean up names, replace placeholder thumbnails, and trim any sections you don't actually need. Choosing the right path Moving content between PageCraft installs → Sections Import Distributing a polished pack with categories + thumbnails already curated → Pack Import Bringing in a raw HTML template you bought on a marketplace → Template Ingest Set the CSS Framework to match your import Imported templates are built on a specific CSS framework — most ThemeForest / marketplace templates use Bootstrap; some use Tailwind. Set Add-Ons → PageCraft → Global Settings → CSS Framework (or the per-field override) to match. That setting no longer hands ContentBox permission to manage your grid — it tells PageCraft which vocabulary your content is written in. Choosing Bootstrap or Tailwind switches the field to a framework profile: ContentBox stops touching layout entirely, the structural tools are hidden because grid changes belong in code, and a tailored stylesheet stops ContentBox's own utility classes competing with your framework's. Text, images, links and buttons stay fully editable. If you are reading older notes that say imported templates must stay on Native — that was correct for the previous behaviour, where selecting a framework let ContentBox rewrite every it found. It no longer does. See CSS Framework. Reference — JSON ingest — manifest-driven ingest — raw-HTML ingest — pack registry/discovery used by all three paths","breadcrumb_path":"Importing Custom Templates","url":"/docs/pagecraft/importing-custom-templates"},{"page_id":16,"title":"Installation","navigation_title":"Installation","summary":"","headings":["Requirements","Steps","File permissions","Recommended EE settings","Verifying the install"],"body":"Audience: Editor and Site Builder. Requirements ExpressionEngine 7.x (tested through 7.5) PHP 8.1 or newer Write access to your EE site's directory Steps Clone or download this repository into . The repo root is the addon root — there's no nested tree to extract. Copy the bundled theme tree into your EE installation: On a FIRST install that is all you need. On an UPGRADE, exclude the generated files — the copy above overwrites two kinds of file the running install owns rather than the package: is the section-library picker, regenerated from the database — on a live site it is often hundreds of KB against the package's few. are regenerated per install by the pack indexer and reflect the packs that site has. Both are rebuilt eventually, but overwriting them empties the section picker and the block panel until something triggers a regeneration. If is unavailable, copy the subdirectories you actually changed instead of the whole tree. After a release, that is usually just , and . That copy includes the ContentBox 6.x core, ContentBuilder, the front-end runtime, every stock asset directory (fonts, styles, scripts, modules, images, ionicons, frameworks, formfiles, placeholders, videos), and the stock block / template packs (Simple Start, Quick Start, Animated, plus PageCraft's custom packs). No separate ContentBox download is required. In the EE control panel, go to Add-Ons and click Install on PageCraft. Add a field to any channel. Render it in your front-end template with the field tag (see Template Tags). File permissions PageCraft writes to whenever sections change, so PHP needs write access there. On managed hosts (Cloudways, etc.) this often fails on first deploy because uploaded files end up owned by the SFTP user, not the PHP user. If the canvas section picker is missing categories that show up under PageCraft → Sections in CP, that's almost always a write-permission issue. Two fixes: Use your host's \"Reset File / Folder Permissions\" panel to chown the app tree back to the PHP user. Then click Regenerate File on PageCraft → Sections in CP. The button reports the exact failure inline if anything else is wrong. Recommended EE settings PageCraft's editor runs in a canvas that stays open while an editor builds a page — often for many minutes at a time on a single publish screen. EE's CSRF/secure-form token is tied to the CP session, so a session that times out (or whose identity shifts) while the publish form sits open causes the next Save to fail with \"This form has expired. Please refresh and try again.\" PageCraft does not change your security settings for you — that's your site's call. But for the smoothest editing experience we recommend, under Settings → Security & Privacy → Session options: Session type → \"Cookies and session ID\" ( ). A cookie-only session ( ) has no database session-ID fallback, so it's the most prone to expiring under a long-open publish form. \"Cookies and session ID\" keeps the session — and its form token — valid far longer. \"Require IP address for posting\" → No (only if expired-form errors persist after the change above). If editors are behind a VPN, mobile network, or a proxy that rotates IPs, a mid-edit IP change is treated as a different client and the POST is rejected. CSRF tokens still protect the form when this is off. These are EE-wide settings, not PageCraft settings, so they affect the whole control panel. If you can't loosen them site-wide, the alternative is to save more frequently while building. Verifying the install After CP says installed, visit Add-Ons → PageCraft. You should see six sidebar entries: Global Settings, Editor Permissions, Advanced Settings, Block Library, Sections, Categories, Documentation. The Sections list should already contain seven Grid Builder rows and one PageCraft \"Dynamic Content\" row — those seed automatically on install.","breadcrumb_path":"Installation","url":"/docs/pagecraft/installation"},{"page_id":19,"title":"Nav Builder","navigation_title":"Nav Builder","summary":"","headings":["Opening the editors","Slideout content editor","PageCraft mode (manual)","Structure mode (driven by EE Structure)","Per-item visual modal","Per-item toolbar","Reference"],"body":"Audience: Editor. PageCraft ships a navigation block ( ) that renders a full top nav with logo, menu items, CTA buttons, and social links. It's the most full-featured stock section and has two distinct edit surfaces: a slideout panel for content and a per-item visual modal for styling. Opening the editors Drag the nav-menu section into the canvas, or use a stock pack section that already includes one (most footer / header packs do). Click anywhere on the nav (but not on a link) to open the slideout content editor. Click any rendered menu item or CTA button to open the per-item visual modal. Slideout content editor The slideout shows, in order: Logo — image upload or text label Source — a segmented toggle between PageCraft (manual menu) and Structure (driven by the EE Structure addon's page tree) Menu items — the list, mode-dependent (see below) Buttons — CTA buttons (Add Button, per-row Delete; click the rendered button in the canvas to edit its styling) Social Links — Twitter, Facebook, LinkedIn, etc. — paste each profile URL PageCraft mode (manual) The menu items list is fully editable: per-row Label, URL, \"Open in new tab\" checkbox, Delete icon, and drag-to-reorder. Submenus follow the same pattern nested under their parent. Use this when the nav doesn't track Structure or when you want to handcraft the menu. Structure mode (driven by EE Structure) The menu items list is replaced by a read-only notice: \"Menu items derived from Structure pages (2 levels max).\" The rendered nav pulls live data from EE Structure: top-level pages plus one nested level, ordered by the Structure tree, respecting each page's \"Hidden in nav\" flag. Switch modes anytime — manual edits aren't lost when you flip to Structure, they're just inactive while Structure is selected. Per-item visual modal Click any rendered or in the canvas to open the modal. The modal exposes visual styling only — the content (label, URL, new-tab) lives in the slideout (PageCraft mode) or in the EE Structure page (Structure mode), not the modal. Field set: Background color (with separate hover variant) Text color (with separate hover variant) Font size, Font weight Width — auto / full Border — style (transparent / current), thickness (none / 1 / 2 / 3), radius (default / none / sm / normal / md / lg / xl / 2xl / 3xl / full) Padding — left/right grouped, top/bottom grouped Margins — all four sides Any change is applied live to the canvas; close the modal and the nav reflects it immediately. Per-item toolbar While editing, every menu item shows a small floating toolbar with three icons: ✏ Edit (always shown) — opens the visual modal 🔗 Link (CTA buttons only) — opens the modal with the URL field focused 🗑 Delete (hidden in Structure mode for menu items) The toolbar disappears when you click outside the nav. The Link icon is intentionally absent on plain items because their URL lives in the slideout (PageCraft mode) or in Structure (Structure mode); a Link shortcut on the toolbar would be confusing in both cases. Reference Plugin source: (≈2,400 lines) Mode flag: on the nav element Structure data fetcher: and the ACT","breadcrumb_path":"Nav Builder","url":"/docs/pagecraft/nav-builder"},{"page_id":30,"title":"Template Examples","navigation_title":"Template Examples","summary":"","headings":["1. Out of the box — the minimal render","2. Out of the box — URL-routed pages","3. Mixed — out of the box render + custom EE markup around it","3b. Mixed — split CSS / HTML / runtime manually","4. All custom — full site with global header & footer","Why keeps its wrapper","5. All custom — multiple PageCraft fields on one entry","Quick reference"],"body":"Audience: Site Builder. Copy-paste starting points for wiring PageCraft entries into front-end templates. They progress from the simplest possible render to a full multi-page site with global chrome. Before you start — two things that cause 90% of \"nothing renders\": Use your real field short name. Every below is written as . Replace it with your PageCraft field's short name (Develop → Channels → Fields). A wrong name renders nothing and emits . Keep the asset placeholders. / go in ; / go just before . Without them, plugin sections (sliders, nav menus, accordions) won't load their CSS/JS. Put before your own stylesheets — ContentBox ships utility classes with common names and many carry , so loading it first lets your CSS win a collision. See Template Tags Reference. If a page comes up blank, View Source and check for an HTML comment — see the diagnostics table in Template Tags Reference. 1. Out of the box — the minimal render The smallest template that renders a PageCraft entry. No routing, no chrome. Good for confirming the pipeline works before adding anything else. (layout) (the template that renders an entry) This grabs the most recent open entry and renders it. supplies the inline CSS, the div, and the runtime — so the layout only needs the four asset placeholders. 2. Out of the box — URL-routed pages One template that serves any page by its from the last URL segment. This is the typical \"flat pages\" setup. — matches → entry with url_title . Use if the template lives one group deep, or for nested/Structure URLs. — a clean miss instead of a half-rendered page when the URL matches nothing. Home page note: an empty URL means is blank, which matches no entry. Handle home with a dedicated condition — see example 4. 3. Mixed — out of the box render + custom EE markup around it PageCraft renders the page body, but you hand-author the surrounding template: your own , breadcrumbs, sidebar, other channel fields, an entries loop of related posts, etc. Mix freely — just drops resolved HTML into wherever you place it. The key idea: is just one tag among many inside the entries loop. Everything outside it is ordinary EE templating. 3b. Mixed — split CSS / HTML / runtime manually When you need the page CSS in (cleaner than 's inline ) but the HTML lower down, use the granular tags instead of . Use the field tag (fastest, you're already in the loop) or the equivalent module tags. …and in the layout , output -set styles: defaults to . Add whenever the page uses plugin sections, or the sliders/menus won't initialise. 4. All custom — full site with global header & footer A complete production layout: fixed global header, segment-based routing, a dedicated home case, and a global footer. This is the pattern to grow into once the basics render. (layout) (router with a home case) Why keeps its wrapper / default to , emitting a . Do not set on chrome that contains plugin sections (a nav menu, social links, etc.). The runtime's runs with no null guard — if the header boots the runtime but has no , init throws and the entire page fails to render, main content included. The fixed-position styling lives on the outer div, so the inner doesn't affect layout. 5. All custom — multiple PageCraft fields on one entry If a channel has more than one PageCraft field (e.g. a builder and a builder), target each by name. is per-field, so call it once per field. The runtime and CSS enqueue is de-duplicated across calls, so multiple tags on one page won't double-load assets. Quick reference You want… Use Whole page, one tag, simplest HTML only, manage CSS yourself or Page CSS in + Sitewide header / footer / See Template Tags Reference for every parameter.","breadcrumb_path":"Template Examples","url":"/docs/pagecraft/template-examples"},{"page_id":29,"title":"Template Tags Reference","navigation_title":"Template Tags Reference","summary":"","headings":["Field tag","Module tags","Canvas Assets","Asset placeholders","Put before your own stylesheets","When to use field tag vs. module tag","Reference"],"body":"Audience: Site Builder. PageCraft exposes two tag families: Field tag — and its modifiers. Use inside to output the field's stored data. Module tags — for sitewide concerns (resolved HTML, locked global header / footer). Field tag The field tag works like any other custom field tag. Its parameter selects which slice of the stored JSON you want. Parameters: — the canvas HTML, with dynamic content already resolved (template embeds rendered, structure-driven nav menus injected). Default. — the page-level main stylesheet — the accumulated per-section CSS — also enqueue the front-end runtime JS/CSS (for sections that include ContentBox plugins like sliders, accordions, FAQ blocks). Defaults to so simple text-only pages don't pull the runtime. Module tags The all-in-one front-end tag. Returns a complete render of a specific entry's PageCraft field: an inline block (main + section CSS), the resolved HTML wrapped in , and — unless disabled — the enqueued runtime JS/CSS. Parameters: — required. The entry to render. Inside use the variable; the tag also accepts a literal id. — required. The PageCraft field's short name. This must match the field exactly — a wrong name produces and renders nothing. (default) / — enqueue the ContentBox runtime so plugin sections (sliders, accordions, nav menus, FAQ) initialise on the front end. (default) / — wrap the output in . Leave this on. The runtime's selects unconditionally; if no exists on a page that boots the runtime, init throws and all PageCraft content on the page fails to render. — extra classes added to the wrapper div. Diagnostics: never fails silently. If output is missing, View Source for an HTML comment: Comment in source Cause resolved to (parse order) or is blank Entry matched but the field short name is wrong, or the entry has no saved data (no comment at all) matched zero entries — never ran vs : use when you want the full package (styles + wrapper + runtime) for one entry. Use (below) when you want just the resolved HTML and you're managing CSS/runtime yourself. Returns the entry's PageCraft content as fully resolved HTML — no wrapper, no CSS, no runtime. Use it when you are handling those yourself. Parameters — both required, and the tag renders nothing without them: — the field's short name This tag does not resolve \"the current entry\" on its own. Earlier versions of this page said it did and that you needn't know the field name; neither has ever been true. A bare returns nothing at all. Inside , reach for the field tag instead — or . The channel module resolves a field per row, so it cannot hit the parse-order problem described under , where has not been substituted by the time a nested module tag runs. The module tags are for when you already have an id — a layout variable, a known entry, a second channel. Outputs a block containing the entry's main CSS and section CSS combined. Use it when you are rendering with and managing assets yourself. Parameters — both required, and the tag outputs nothing at all without them: — the entry to read — the PageCraft field's short name Earlier versions of this page listed and . Neither has ever existed — the module has no such methods, so both tags rendered nothing. is the tag that does the job, and it returns the two stylesheets together. To output them separately, use the field tag's and . Enqueues the ContentBox runtime JS and CSS and outputs nothing. For templates that want explicit control over when assets load rather than letting enqueue them. Renders the locked global header for the current site (see Global Header & Footer). Parameters: (default) / — wrap in a element — extra classes on the wrapper — enqueue the front-end runtime alongside Returns an empty string if no header has been locked. Same as but for the footer slot. Same parameters. Canvas Assets Custom CSS and JS that should ride alongside the editor canvas (and optionally the front-end render). Set per field or globally. Custom CSS — additional stylesheet that loads inside the canvas iframe. Useful when your section markup uses utility classes (Tailwind, custom design tokens) the canvas doesn't otherwise have access to. Custom JS — additional script that loads inside the canvas iframe. Common case: third-party plugin code you want active so editors see exactly how the front-end will look. Both are injected into the editor frame. The parameter on the field tag (or the tag) controls whether the same assets enqueue on the front-end. Security: the addon strips outer / tags and HTML comment wrappers before persisting, so editors can paste asset blocks copied from another tool without the wrapping tags accidentally breaking ContentBox's iframe init. See and if you want to audit the strip rules. Asset placeholders Four placeholders are replaced by the extension's hook, so they work in layouts and embeds as well as templates. They emit the CSS and JS that block and plugin sections need: Placeholder Where it goes What it emits tags for block/plugin CSS inline from directives before tags for block/plugin JS before inline from directives Without them, plugin sections — sliders, nav menus, accordions, FAQs — render as inert markup. Put before your own stylesheets ContentBox ships utility classes with common names — , spacing and sizing helpers — and many carry . If your theme defines the same names, whichever sheet loads later wins, so loading PageCraft's first lets your own CSS take precedence. Watch in particular: ContentBox reads it as a percentage ( = 8%) while many themes read it as tenths ( = 80%). A theme class that survives elsewhere can be silently rescaled on a PageCraft page. Where it collides, use a value only one of the two defines — rather than . When to use field tag vs. module tag Field tag ( ) — preferred when you're already inside and you know the field name. Slightly more efficient because it avoids the extra channel lookup the module tag does. Module tag ( ) — preferred for shared layouts that render different entries via different channels. Works without knowing the field name as long as the channel only has one PageCraft field. Reference Field tag: Module tags: — , , , , , Canvas Assets: ,","breadcrumb_path":"Template Tags Reference","url":"/docs/pagecraft/template-tags-reference"},{"page_id":28,"title":"The Class Marker System","navigation_title":"The Class Marker System","summary":"","headings":["The four markers","Auto-injections","Why this exists","Live examples","Reference"],"body":"Audience: Site Builder. When you author a custom section by hand (or edit an existing one through PageCraft → Sections → Edit), you're writing plain HTML that gets stored in the database. To make that HTML editable inside ContentBox — text inline-editable, images droppable, columns sortable — the markup needs ContentBox-specific class names like , , , . Asking section authors to memorise those is an ergonomics problem. PageCraft solves it with a small set of marker classes. You add the marker; PageCraft rewrites the marker into the verbose ContentBox classes when it generates . Your stored HTML stays clean and portable; the editor scaffolding is added at generation time. The four markers Marks any element as a text or image editing zone. The class is left in place and is appended to the same element. Use on every heading, paragraph, and standalone span the editor should be able to click into. Marks an image wrapper. The class stays on the wrapper, but is injected onto the element inside — not on the wrapper itself. That's a deliberate ContentBox quirk: image editing handles attach to the image element, not its parent. Marks a layout container. PageCraft appends so ContentBox treats the element as a content boundary and a drop zone for nested rows/columns. Use this on the wrapper around a row of columns inside an . Marker for the bundled Dynamic Content section. It's styling-only — it scopes the placeholder's CSS so the dashed-border placeholder visual doesn't leak into other sections. No class rewriting happens; the marker is purely a CSS hook. Auto-injections In addition to the explicit markers, PageCraft auto-fills two pieces of ContentBox structure if they're missing on the section's root element: If the root doesn't have , it gets added. If the root doesn't already start with an first child, one is inserted. (ContentBox uses the overlay for drag/select hit testing.) Authors can ignore both — write a plain as your section root and PageCraft fills in the boilerplate. Why this exists Two practical reasons: Portability. A section's HTML in the DB is the same shape you'd find in any static HTML template — copy/pasteable into other systems, easy to lint, easy to read at a glance. Forwards compatibility. ContentBox's class names have changed across major versions ( was renamed at one point). Centralising the rewrite means a future ContentBox upgrade only needs updated, not every stored section. Live examples Open in a browser. It contains nine annotated section examples — two-column layouts, unequal columns, hero with background image, locked footer, multi-row sections, plugin embeds — each showing the marker classes in their author form alongside the generated ContentBox classes. Reference Rewrite logic: — (lines 81–85), (lines 88–100), (lines 102–111), auto-injections (lines 113–154) Annotated examples:","breadcrumb_path":"The Class Marker System","url":"/docs/pagecraft/the-class-marker-system"},{"page_id":1,"title":"PageCraft License","navigation_title":"License","summary":"","headings":["PageCraft Commercial License Agreement","1. License Grant","2. Development and Staging","3. PageCraft 1.x","4. Licensing and Future Versions","5. Permitted Use","6. Restrictions","7. Client Projects","8. Ownership","9. Third-Party Software and Services","10. Your Content","11. Updates and Support","12. Termination","13. Disclaimer of Warranty","14. Limitation of Liability","15. Changes to This License","16. Contact"],"body":"PageCraft Commercial License Agreement Version 2.0 Copyright © 2026 Bison Digital. All rights reserved. This Commercial License Agreement (\"License\") governs the use of PageCraft (\"Software\"), an add-on for ExpressionEngine developed and distributed by Bison Digital. It applies to PageCraft 2.0 and later. PageCraft 1.x remains under the PageCraft Commercial License Agreement Version 1.0 (see section 3). 1. License Grant Subject to the terms of this License and payment of the applicable license fee, Bison Digital grants you a non-exclusive, non-transferable license to install and use PageCraft on one production ExpressionEngine website for each license purchased. A \"production website\" is one ExpressionEngine installation serving a public domain, including its subdomains and language versions run from the same installation. 2. Development and Staging Each license also covers any number of local, development and staging copies of the licensed website, provided they are used only to build, test or maintain that website and are not publicly offered as a separate site. 3. PageCraft 1.x PageCraft versions 1.x were provided free of charge under Version 1.0 of this License. A copy of PageCraft 1.x lawfully obtained under Version 1.0 may continue to be used under those terms. Upgrading a website to PageCraft 2.0 or later requires a license under this Version 2.0 for that website. Providing a version of the Software without a license fee did not place PageCraft in the public domain, make it open-source software, or waive any ownership rights held by Bison Digital. 4. Licensing and Future Versions Each license applies to the website it was purchased for and is validated by ExpressionEngine's add-on licensing. A website that uses PageCraft without a valid license will display a notice in the control panel until a license is added; the Software is not disabled. Bison Digital may change the pricing, licensing model, features, support terms or availability of future versions of PageCraft. A version of PageCraft lawfully obtained under this License may continue to be used under the terms that applied to that version. Major future releases may require the purchase of a new license, upgrade or other commercial arrangement. This License does not guarantee access to future major versions, premium features, services, updates or support. 5. Permitted Use You may: Install and use PageCraft on websites you have licensed, including websites you own, manage, or build for clients. Use PageCraft in commercial website development projects. Modify PageCraft for the purposes of integrating it into a website for which you are licensed. Make reasonable backup, development and staging copies associated with licensed installations. 6. Restrictions You may not: Install PageCraft on more production websites than you hold licenses for. Sell, sublicense, publish, distribute or redistribute PageCraft as a standalone product. Repackage PageCraft and offer it as your own add-on, product, library or development tool. Make PageCraft available for download or distribution to third parties except as necessary to deliver a licensed client website. Extract the bundled ContentBox.js, ContentBuilder.js or FormBuilder components and use or distribute them apart from PageCraft (see section 9). Remove, bypass or interfere with PageCraft's license notice, or remove or obscure copyright, licensing, attribution or proprietary notices contained within the Software. Use PageCraft or substantial portions of its source code to create and distribute a competing page-builder product or ExpressionEngine add-on. Claim ownership or authorship of PageCraft or any portion of the Software owned by Bison Digital. 7. Client Projects You may include PageCraft as part of a completed ExpressionEngine website delivered to a client, provided that website is licensed. The client may use PageCraft as part of that website but does not receive the right to separately redistribute, resell, sublicense or repackage PageCraft. A license may be transferred with the website it was purchased for, for example when a client takes over hosting, where ExpressionEngine's licensing allows it. 8. Ownership PageCraft is licensed, not sold. Bison Digital retains all right, title and interest in PageCraft, including its source code, interface, documentation, branding and other original materials, except for third-party components identified separately. No ownership rights are transferred under this License. 9. Third-Party Software and Services PageCraft incorporates third-party software, libraries, assets and other components. ContentBox.js, ContentBuilder.js and FormBuilder are commercial libraries from InnovaStudio, redistributed with PageCraft under a developer license held by Bison Digital. They may be used only as part of PageCraft. Using or redistributing them in any other way requires your own license from InnovaStudio. Other components, such as icon sets, fonts and scripts, remain subject to their respective licenses and copyright notices, included with them. Nothing in this License is intended to restrict rights granted by, or override obligations imposed by, those third-party licenses. PageCraft's optional AI features connect to OpenRouter using an API key that you supply, and through it to the AI models you choose. Your use of those services is governed by your agreements with their providers, and any charges are billed to you by them. Bison Digital does not provide, resell or control those services and is not responsible for their availability, charges or output. 10. Your Content PageCraft runs on your server. When you use its optional AI features, the requests and content involved are sent to the AI provider you configure, as described in the documentation. You are responsible for reviewing content, including AI-generated content and images, before it is published, and for ensuring that sending content to an AI provider is consistent with your obligations, including any privacy or confidentiality requirements that apply to your website. 11. Updates and Support Unless separately stated by Bison Digital, this License does not guarantee technical support, maintenance, updates, compatibility updates, new features or future releases. Bison Digital may discontinue support or development of any version of PageCraft at its discretion. 12. Termination Your rights under this License terminate automatically if you materially violate its terms. Upon termination, you must stop using PageCraft on unlicensed websites and stop distributing or creating new installations of it. Bison Digital may provide an opportunity to remedy a violation before termination where appropriate. 13. Disclaimer of Warranty THE SOFTWARE IS PROVIDED \"AS IS\" AND \"AS AVAILABLE,\" WITHOUT WARRANTIES OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT, TO THE MAXIMUM EXTENT PERMITTED BY LAW. 14. Limitation of Liability TO THE MAXIMUM EXTENT PERMITTED BY LAW, BISON DIGITAL SHALL NOT BE LIABLE FOR ANY INDIRECT, INCIDENTAL, SPECIAL, CONSEQUENTIAL, OR PUNITIVE DAMAGES, OR FOR LOSS OF DATA, REVENUE, PROFITS, OR BUSINESS ARISING FROM THE USE OF OR INABILITY TO USE PAGECRAFT, INCLUDING ANY CHARGES OR OUTPUT FROM THIRD-PARTY AI SERVICES. 15. Changes to This License Bison Digital may publish different licensing terms for future versions of PageCraft. Changes to the license for a future release do not retroactively alter the license granted for a version you previously obtained unless you expressly agree to the new terms. 16. Contact Questions regarding commercial licensing, multi-site or agency licensing, redistribution, OEM use, or other uses not permitted by this License may be directed to Bison Digital. PageCraft is a product of Bison Digital.","breadcrumb_path":"License","url":"/docs/pagecraft/license"},{"page_id":1,"title":"PageCraft Changelog","navigation_title":"Changelog","summary":"","headings":["PageCraft Changelog","[Unreleased]","Fixed","[2.6.0] — 2026-11-16","Added","Changed","Removed","Fixed","Docs","[2.5.3] — 2026-10-08","Fixed","Added","Changed","Verified","[2.5.2] — 2026-10-07","Fixed","Added","Verified","[2.5.1] — 2026-10-02","Fixed","Added","Verified","[2.5.0] — 2026-09-26","Changed","Added","Verified","[2.4.0] — 2026-09-23","Changed","Fixed","Note","[2.3.1] — 2026-09-23","Fixed","Note for the suite","[2.3.0] — 2026-09-23","Changed","Verified","[2.2.0] — 2026-09-22","Added","Verified","Note on existing installs","[2.1.2] — 2026-09-16","Added","[2.1.1] — 2026-09-16","Fixed","Added","Documentation","Verified","[2.1.0] — 2026-09-16","Added","Verified","Not yet verified","[2.0.8] — 2026-09-15","Fixed","Documentation","[2.0.7] — 2026-09-15","Fixed","Investigated, not reproduced","[2.0.6] — 2026-09-14","Added","Verified","[2.0.5] — 2026-09-14","Fixed","Added","Changed","Verified","Known gap","[2.0.4] — 2026-09-14","Fixed","Known remaining","[2.0.3] — 2026-09-13","Added","Documentation","Known scope","[2.0.2] — 2026-09-12","Fixed","[2.0.1] — 2026-09-11","Added","Fixed","[2.0.0] — 2026-09-11","Headline changes since 1.1.25","Upgrade notes","[2.0.0-a49] — 2026-09-11","Fixed","Verified on real content","[2.0.0-a48] — 2026-09-11","Added","Known limitation","Fixed","[2.0.0-a47] — 2026-09-11","Changed","Not removed, deliberately","[2.0.0-a46] — 2026-09-10","Fixed","Changed","Root cause of the report that prompted this","[2.0.0-a45] — 2026-09-10","Added","Fixed","Security","Changed","Verified","[2.0.0-a44] — 2026-09-10","Changed","Added (on disk, deliberately NOT registered)","[2.0.0-a43] — 2026-09-10","Fixed","Known, not fixed","[2.0.0-a42] — 2026-09-08","Fixed","Removed","Note","[2.0.0-a41] — 2026-09-07","Removed","[2.0.0-a40] — 2026-09-07","Changed","[2.0.0-a39] — 2026-09-07","Fixed","[2.0.0-a38] — 2026-09-07","Fixed","[2.0.0-a37] — 2026-09-06","Fixed","Added","[2.0.0-a36] — 2026-09-06","Fixed","[2.0.0-a35] — 2026-09-06","Removed","[2.0.0-a34] — 2026-09-06","Removed","[2.0.0-a33] — 2026-09-06","Fixed","[2.0.0-a32] — 2026-09-06","Fixed","[2.0.0-a31] — 2026-09-04","Fixed","[2.0.0-a30] — 2026-09-03","Fixed","[2.0.0-a29] — 2026-09-03","Changed","Added","Fixed","Documentation","[2.0.0-a28] — 2026-09-03","Fixed","Notes","[2.0.0-a27] — 2026-09-03","Fixed","Added","Changed","Documentation","[2.0.0-a26] — 2026-09-02","Fixed","[2.0.0-a25] — 2026-09-02","Fixed","[2.0.0-a24] — 2026-09-02","Added","[2.0.0-a23] — 2026-09-02","Fixed","Added","Changed","[2.0.0-a22] — 2026-08-31","Fixed","Changed","[2.0.0-a21] — 2026-08-31","Added","Changed","Fixed","[2.0.0-a20] — 2026-08-29","Changed","Added","Fixed","[2.0.0-a19] — 2026-08-28","Added","Fixed","[2.0.0-a18] — 2026-08-27","Added","[2.0.0-a17] — 2026-08-27","Changed","[2.0.0-a16] — 2026-08-27","Added","[2.0.0-a15] — 2026-08-27","Fixed","[2.0.0-a14] — 2026-08-27","Fixed","[2.0.0-a13] — 2026-08-27","Fixed","Fixed","[2.0.0-a12] — 2026-08-27","Added","[2.0.0-a11] — 2026-08-26","Fixed","Notes","Removed","Notes","[2.0.0-a10] — 2026-08-26","Fixed","Notes","[2.0.0-a9] — 2026-08-26","Changed","[2.0.0-a8] — 2026-08-26","Fixed","[2.0.0-a7] — 2026-08-26","Fixed","[2.0.0-a6] — 2026-08-26","Fixed","[2.0.0-a5] — 2026-08-26","Fixed","[2.0.0-a3] — 2026-08-26","Changed","Fixed","[2.0.0-a2] — 2026-08-26","Changed","Notes","[2.0.0-a1] — 2026-08-26","Changed","Fixed","Added","Fixed","Added","Changed","Known issues","Notes","[1.1.25] — 2026-08-21","Fixed","Notes","[1.1.24] — 2026-08-20","Added","[1.1.23] — 2026-08-18","Fixed","Added","Notes","[1.1.22] — 2026-08-18","Changed","Notes","[1.1.21] — 2026-08-18","Changed","Removed","Notes","[1.1.20] — 2026-08-18","Removed","[1.1.19] — 2026-08-16","Changed","Added","Notes","[1.1.18] — 2026-08-13","Fixed","[1.1.17] — 2026-08-12","Added","Changed","Known gaps","[1.1.16] — 2026-08-12","Added","Changed","[1.1.15] — 2026-08-05","Fixed","[1.1.14] — 2026-08-05","Fixed","[1.1.13] — 2026-07-14","Fixed","Changed","[1.1.12] — 2026-07-14","Added","Notes","[1.1.11] — 2026-07-13","Changed","[1.1.10] — 2026-07-13","Fixed","[1.1.9] — 2026-07-13","Fixed","[1.1.8] — 2026-07-13","Added","[1.1.7] — 2026-07-05","Fixed","Added","[1.1.6] — 2026-06-30","Fixed","[1.1.5] — 2026-06-22","Fixed","[1.1.4] — 2026-06-20","Fixed","[1.1.3] — 2026-06-18","Fixed","[1.1.2] — 2026-06-18","Fixed","[1.1.1] — 2026-06-18","Fixed","[1.1.0] — 2026-06-18","Added","Notes","[1.0.0] — 2026-06-12","Added","[0.9.66] — 2026-06-12","Fixed","[0.9.65] — 2026-06-12","Added","[0.9.64] — 2026-06-12","Security","Fixed","Changed","[0.9.63] — 2026-06-11","Changed","Security","[0.9.62] — 2026-06-11","Security","[0.9.61] — 2026-06-11","Security","Fixed","[0.9.60] — 2026-06-10","Added","[0.9.59] — 2026-06-08","Fixed","[0.9.58] — 2026-06-05","Added","Documentation","Tooling","Note","[0.9.57] — 2026-06-04","Fixed","Changed","Internal","[0.9.56] — 2026-06-03","Fixed","Added","Documentation","Changed","[0.9.55] — 2026-05-31","Fixed","[0.9.54] — 2026-05-31","Fixed","[0.9.53] — 2026-05-30","Fixed","[0.9.52] — 2026-05-30","Added","[0.9.51] — 2026-05-30","Changed","Added","[0.9.50] — 2026-05-30","Added","Changed","[0.9.49] — 2026-05-30","Added","Fixed","[0.9.48] — 2026-05-30","Added","[0.9.47] — 2026-05-20","Added","[0.9.46] — 2026-05-17","Added","Changed","[0.9.45] — 2026-05-17","Fixed","Changed","[0.9.44] — 2026-05-17","Changed","Fixed (in progress)","[0.9.43] — 2026-05-17","Changed","Fixed","Internal","[0.9.42] — 2026-05-17","Changed","Internal","[0.9.41] — 2026-05-17","Fixed","Changed","[0.9.40] — 2026-05-17","Fixed","Changed","[0.9.39] — 2026-05-17","Fixed","Changed","Internal","[0.9.38] — 2026-05-16","Added","[0.9.37] — 2026-05-16","Added","Internal","[0.9.36] — 2026-05-16","Fixed","[0.9.35] — 2026-05-16","Fixed","[0.9.34] — 2026-05-15","Added","Internal","[0.9.33] — 2026-05-12","Fixed","[0.9.32] — 2026-05-12","Fixed","[0.9.31] — 2026-05-12","Fixed","Internal","[0.9.30] — 2026-05-12","Reverted","Internal","[0.9.29] — 2026-05-12","Changed","Internal","[0.9.28] — 2026-05-11","Fixed","Internal","[0.9.27] — 2026-05-11","Fixed","[0.9.26] — 2026-05-11","Fixed","Removed","[0.9.25] — 2026-05-11","Diagnostic","[0.9.24] — 2026-05-11","Fixed","Internal","[0.9.23] — 2026-05-11","Fixed","Internal","[0.9.22] — 2026-05-11","Fixed","Changed","Internal","Note on the canvas-side container constraint","[0.9.21] — 2026-05-11","Fixed","Internal","Why this works where 0.9.20 didn't","[0.9.20] — 2026-05-11","Fixed","Internal","Why this took several attempts to diagnose","[0.9.19] — 2026-05-10","Changed","Why this is different from 0.9.12 and 0.9.17","What you can verify","[0.9.18] — 2026-05-10","Reverted","Behavior restored","Migrated","What we learned (worth not re-litigating)","[0.9.16] — 2026-05-09","Fixed","Changed","Migrated","[0.9.15] — 2026-05-09","Fixed","Internal","Coming next","[0.9.8] — 2026-05-07","Fixed","[0.9.7] — 2026-05-07","Added","Changed","[0.9.6] — 2026-05-06","Fixed","[0.9.5] — 2026-05-06","Fixed","[0.9.4] — 2026-05-06","Fixed","[0.9.3] — 2026-05-06","Added","Fixed","[0.9.2] — 2026-05-06","Added","Fixed","[0.9.1] — 2026-05-05","Added","Fixed","[0.9.0] — 2026-05-04","Added","Fixed","Internal","[0.8.0] — 2026-05-04","Added","Changed","[0.7.0] — 2026-05-01","Added","Fixed","[0.6.0] — 2026-04-15","Added","Fixed","[0.5.0] — 2026-04-11","Added","Changed","Fixed","[0.3.0] — 2026-03-23","Added","Changed","[1.3.0] — 2026-03-17","Added","Changed","[0.2.0] — 2026-03-17","Added","Fixed","Changed","[0.1.0] — 2026-03-16","Added","Requirements"],"body":"PageCraft Changelog All notable changes to this project are documented in this file. The format follows Keep a Changelog. Versioning follows Semantic Versioning. [Unreleased] Fixed The front-end runtime init no longer polls forever. It waits for every 50 ms, and with no limit a page whose runtime never loaded (a CDN miss, a CSP block) polled 20 times a second for as long as it stayed open. It now gives up after 10 seconds. Both call sites, and . Raised by WMD in the Craft 1.4.0 test. [2.6.0] — 2026-11-16 Added : PageCraft Commercial License Agreement, Version 2.0. PageCraft 2.x is a paid product: one license per production website, with any number of local, development and staging copies of that website. Copies of 1.x obtained free under Version 1.0 keep those terms; upgrading a site to 2.x needs a 2.0 license. New against 1.0: the bundled ContentBox.js, ContentBuilder.js and FormBuilder may only be used as part of PageCraft; the license notice must not be bypassed; the optional AI features are the customer's own OpenRouter account and terms. Ships in the add-on folder of the release package ( packages every tracked file). Settings → Demo images: download the real demo photos and videos. The release replaces ContentBox's demo media (about 125 MB) with grey placeholders, so blocks and templates inserted on a customer's site showed grey boxes. A Super Admin can now fetch the real files, one template set per request. The build zips each set's real media before the placeholder step and writes a manifest with a checksum per zip and per file ( ). attaches them to a GitHub release tagged on the public content repo. The shipped theme carries with each placeholder's size and checksum. A file is replaced only while it is still that placeholder, so a customer's own file is never overwritten. Only paths named in the manifest are written, each verified, so a tampered or truncated download writes nothing. Filenames are unchanged, and existing pages pick up the real images with no edits. (owner/repo) or (any HTTPS base) point it elsewhere, for example your own server. New records the bundled ContentBox version, since the bundle's own version string is unreliable. Update it on every vendor upgrade: it names the media release. Tested end to end against a locally served release: 199 of 200 placeholders replaced byte-identical, the one changed file kept, a second run replaced nothing, and a corrupted zip was refused. Changed ContentBox.js 6.0.9 → 6.0.12. Bundles and assets from stock 6.0.12. What arrives with the bundle: select several blocks at once (drag from the empty area beside them, then Delete), category tabs in the Snippets dialog, undo for Image panel changes, editing a design-layer image from the panel, and fixes to the element and image tool positions and to content added after a wrapped image. 6.0.12's and options are not set, so the defaults (on) are unchanged. Animated templates: 33 → 36. Three new animated headers made with photos only. They use only , which is registered. The Animated pack index ( ) is regenerated. It had not been since 0.9.1 and still listed 39 old designs, so the Sections tab counted from stale data until the site rebuilt it. The Simple Start index is regenerated too: it still listed the navbars pruned from that pack (73 → 65). Swiper Slider fork merged three-way against 6.0.9. Upstream added per-device Slides Per View (desktop, tablet, mobile), a 9:16 ratio, embedded video slides (YouTube, Vimeo and others) next to local video, and inline SVG placeholders instead of requests to placehold.co. PageCraft's additions are kept: the Image Overlay (Dim) option, the richer new-slide caption, the overlay div on new slides, and jumping to a slide once it is added. The runtime bundle and stylesheet are unchanged from 6.0.9, so the scoped sheets, the framework profiles and stay as they are. The cache-buster is re-applied to (+81 bytes, 3 sites). gains 51 templates that use Site Logo and Site Menu. That set is not offered in PageCraft, so nothing changes in the editor. is now 6.0.12, so Settings → Demo images looks for the release. Run after the release build. ContentBox.js 6.0.8 → 6.0.9. New in the vendor release, and what PageCraft does with it: Light and dark mode for sections (Box panel → Mode) comes with the bundle and the runtime sheet, which adds 8 colour utilities ( , …). The Quick templates now carry . Automatic plugin registration is on, as a safety net. A plugin that content uses but does not list now loads from the plugins folder instead of rendering as dead markup. That was the 6.0.0 failure, where 21 new plugins could be inserted and did nothing. The runtime is given on the front end (field and module tags) and in the editor canvas. Without it, the runtime would derive the folder from a listed URL ending in , and ours end in , so the feature was off by accident and could have switched on by itself in a later vendor release. The list stays primary because its URLs carry the cache-buster; an auto-loaded plugin has none, so behind a CDN it can be stale after an upgrade until it is added to the list. This does not change the block picker. Site Logo, Site Menu and Site Menu (always visible) ship as plugin folders and are not offered. Their only blocks are the vendor's four new navbar templates in templates-simple, which are pruned like the earlier navbars, since the Nav Builder is PageCraft's navigation. The new Header templates ( ) are on disk but not wired into the editor. Forks: and were unchanged upstream and are kept as they were. and were three-way merged against 6.0.8: all 9 tags and the single Navigation entry survive, and a stale button in templates-quick now takes upstream's . The stock the sync brought back is removed again. The bundle cache-buster (+81 bytes), the runtime scoping and the embed guards (1,507 rules, up from 1,501) are re-applied by . reads the patched runtime sheet again. It found 0 classes on the sheet as leaves it, scoped and carrying the embed guards. It now reads inside , strips the guard, and prefers a bare class rule over an -prefixed one, so the type scale reads as font sizes. The reference is 834 classes, the 8 new ones the only difference. Removed The classic Form Builder. Its forked module conflicted on every ContentBox upgrade, and it could only go once no production site held a classic form. katiesway staging and production are converted. Removed with it: , the render-time -tag rewrite that pointed classic forms at , and the honeypot check in . The current Form block is unaffected: its rewrite, , and its honeypot are separate. A site with classic forms left must convert them before upgrading. Without the module the block can't be edited, and its action is no longer rewritten, so it posts to the vendor's placeholder. Run (dry run by default; see docs/08-forms.md). The converter stays, and so does the picker filter that hides the classic block. Fixed \"Could not regenerate sections file\" when belongs to another account. Seen on Cloudways, where a file uploaded by the master SFTP user can't be overwritten by PHP, which runs as the application user. When the folder is still writable, now writes a new copy beside the file and swaps it in, so the file ends up owned by the PHP user, and logs that it did. If the folder isn't writable either, the error is the same as before. Docs Dynamic Content under a page cache. now says that template caching or a static or full-page cache freezes an embed with its page until that cache entry is cleared. Raised by WMD testing the Craft port. [2.5.3] — 2026-10-08 Fixes from a review of the Craft port's Dynamic Content, by WMD (the Craft developer). Everything below that is not port-specific applied here too. Fixed The runtime no longer restyles embedded templates. An embed renders inside a ContentBox section, wrapped in , so the host's own markup sat inside and , and the runtime styled it. On a Craft site's Tailwind footer partial, 43 of 117 elements changed: collapsed to a column, gaps shrank, borders went to 0. Two halves: the scoped rules now stop at the embed: ; the 1,501 unscoped rules that reach descendants ( , the preflight ) each get on their subject. has zero specificity, so for PageCraft's own content the cascade is unchanged. Only elements inside an embed stop matching. The unscoped twins carry the guard on every rule, since they have no scope to bound them. re-derives a sheet scoped by any earlier release from the file itself, so EE's committed tree still needs no vendor copy. A template embedding itself no longer loops. An embedded template that renders the same field re-entered the renderer forever. A Craft test page ran 23.7 s and 1.3 GB before a blank 500. Stripping closed one route to it, not all. now keeps a render stack: a template already being rendered is skipped, nesting stops at 3, and the reason is left as an HTML comment. Both render paths use it, and the fieldtype's inline path. Picking a template now marks the content changed. The picker modal bypasses ContentBox's editor flow, and the event it dispatched reached nothing, so autosave missed the choice. It now calls the builder's . An empty embed can be configured again after a reload. The \"click handler attached\" flag was a DOM attribute, so it was saved with the content. After a reload the click did nothing. It is now tracked in memory and stripped from old content. The unset sentinel is also filtered on the copy ContentBox passes to . That copy reached the render endpoint as \"unset\" and left the embed on \"Loading…\". Added limits which template groups (or paths) Dynamic Content may embed. It is enforced where an embed renders, not only in the picker, because anyone who can edit the HTML can type any path. Unset allows every template, as before. See docs/06-dynamic-content.md. Changed The template-embed plugin is shared with the Craft and Statamic ports. They carry byte-identical copies synced from this repo. The picker's wording no longer names EE. The render URL joins with or depending on whether the base URL already has a query, and EE's base produces the URL it always did. Treat this file as shared: change it here, then run each port's . Verified Both scoped sheets differ from 2.5.2 only by the guards and the lower boundary. In Chrome, a page of 30 ContentBox sections plus an embed of Tailwind-style host markup: 663 content elements unchanged from 2.5.2, and host elements changed by the runtime from 13 to 0. The render stack skips self- and mutual embeds and caps depth at 3. Unit-tested here; exercised end to end on the Craft and Statamic ports, which carry the same logic. The plugin fixes were exercised in the Statamic editor, on the identical file: a saved empty embed with the old flag opens the picker, a pick fires , and the saved HTML has the path and no flag. With an EE-shaped URL the plugin requests , as before. Not clicked through in the EE editor. [2.5.2] — 2026-10-07 Fixed Content stays styled when a host theme moves its sections. 2.5.0 scoped the runtime to alone, which assumed our sections stay inside the wrapper. Crafto's runs on every modern and full-screen-menu page, which lifts each out of the wrapper. Every scoped rule then matched nothing: the form plugin's styles and all the bare utilities. On katiesway.com a sign-up form rendered as bare text while the canvas looked right. Both scoped sheets (the runtime and its variant) now scope to . Content stays styled wherever the theme moves it, and nothing leaks, because host markup never carries . Inside the wrapper nothing changes: every scoped rule shares the one , so they still tie on proximity, and a scoped rule still beats an unscoped one at equal specificity. upgrades a 2.5.0–2.5.1 sheet by swapping the prelude in place, which is exact. The rules inside are what the transform would write from stock, so EE's committed tree needs no vendor copy for it. The unscoped twins have no scope block and do not change. Not rescued, and never were: the unscoped rules written as . On a page where the theme moves the sections, section min-height, the container's 30px padding and the wrapper's font size still drop. That was already true before 2.5.0. The front-end runtime is cache-busted. , its variant, their unscoped twins and were linked with no version, on both the field-tag and the module-tag path. After an upgrade a browser or CDN kept the previous runtime, so a stylesheet fix like the one above never reached visitors. They now carry , which changes on the first CP visit after an upgrade. Added A pointer to Form Delivery in the form's Settings tab. ContentBox's block takes its recipient and redirect from the blue envelope button on the section toolbar, never from its own Settings tab. But the Settings tab has \"Form Submission Settings\" in it, so that is where everyone looks first. Twice now that has been read as \"the recipient setting is gone\". A note under that heading now says where the setting is. It is injected into the plugin's editor iframe on each load, like the button itself, so stays stock. Verified Both scoped sheets changed by exactly one line each: the prelude. On a local page, moving the sections out of the wrapper changes only properties set by rules. The same two-root prelude, rebuilt from stock for the Craft port, restores the moved content completely in a reproduction of Crafto's , with the host's own , and untouched. Swapped into the live katiesway.com sign-up page, it restored the form, and reverting the swap broke it again. Both front-end paths emit versioned runtime links ( on the field tag, plain on the module tag). With loaded, the vendor's gets exactly one note, directly under \"Form Submission Settings\", including when its iframe is inserted before its is set. The plugin builds that iframe in the editor document, under , which the observer covers. Not yet clicked through in the CP. [2.5.1] — 2026-10-02 Fixed The editor canvas now has an fallback. 2.5.0 scoped the runtime stylesheet and gave both front-end paths a probe that loads an unscoped twin where is unavailable. The canvas got neither, and it loads the same sheet. Below the floor (Chrome 118, Safari 17.4, Firefox 128) the browser drops the entire scoped block, so the canvas kept the rules and lost every utility — , , , . The section skeleton survives while the styling inside it does not, which reads as a content bug rather than a browser-support one. That is a worse failure to diagnose than the front end's would have been, and the front end was the half that already had the fallback. The probe is injected by rather than written into the file, because on the Craft and Statamic ports these canvases are vendor files replaced wholesale on every ContentBox upgrade. It derives the twin's URL from the stylesheet link already in the document, so it does not care where the theme is served from, and it parses a real rule rather than sniffing a feature flag — the same test the PHP uses. Added now refuses to package an unpatched tree. It checked the cache-buster and nothing else, so a tree cache-busted before the scoping existed — or one whose canvases a vendor upgrade had replaced — passed and shipped a runtime that restyles the customer's page. It now also requires both runtime sheets to carry , both unscoped twins to exist, and to carry the probe. Each failure names the fix. Verified by removing each in turn and confirming the build stops. Verified In Chrome on the 6.0.8 canvas: with supported the probe is a no-op and only the scoped sheet is linked. Forcing the fallback branch loads the twin and takes outside the wrapper from to — the pre-scoping behaviour, leak included — while inside the wrapper stays styled. The also re-confirms the scoping itself from a second direction. leaves byte-identical; a second run reports the probe as already present on all three platforms. [2.5.0] — 2026-09-26 Changed ContentBox 6.0.8, up from 6.0.7. The vendor's own headline is keyboard access: Esc steps out of the text into the tools of whatever you are in and then one level per press — text tools, a picture or table's tools, element, column, row, box, section — with Shift+Esc stepping back in, arrows along a toolbar, and Enter or Space to use a button. Also improved drag & drop placement, and a new for plugin settings panels. That last one closes a CDN dependency we had reported upstream. Every bundled plugin now uses instead of pulling a drag library from a CDN at panel-open time — 81 of the 94 changed vendor files are that one refactor. The upgrade touched no PageCraft code. Four of the seven locally-patched vendor files changed upstream and were three-way merged; the merge base is 6.0.4, not 6.0.7, because that is when these forks were last synced: — ours adds the field. Merging against the true ancestor also picked up 6.0.6/6.0.7's asset-field rework, which this fork had been missing: the plugin's image field still used a hand-rolled browse button instead of , so it never offered the asset manager. Fixed as a side effect of merging correctly. — ours adds ; upstream had moved the demo markup to and we were still carrying the old handlers. — ours adds the Navigation category and prunes the vendor's Legacy navbar section ( ). Both survived the merge: category 4 present, category 6 at 20 entries not 21. — not merged. Ours differs from stock by 4,295 lines against upstream's 78; it is a different plugin under the vendor's filename, and the standing decision is to rebuild rather than keep patching. No new plugins or block categories in 6.0.8, so both hardcoded registries ( , ) are unchanged. and remain deliberately unregistered. The vocabulary reference regenerated identical at 826 classes; the framework profiles regenerated at the same 90 / 122 rules. Added — the local vendor patches, reproducible. Craft and Statamic have had this since 1.3.0. EE did not, and EE is the platform where it matters most: the upgrade recipe is over the vendor tree, and every copy silently overwrites a patched file with stock. Nothing errors. The editor still boots. You find out when a CDN serves stale module HTML, or when a customer's turns out to be 8% instead of 80%. It applies the three-site module cache-buster and the runtime stylesheet scoping, is idempotent, and reports without writing. Point it at any site's theme folder to audit that install — there are six local EE sites carrying their own copy and they drift. The ContentBox runtime stylesheet is now scoped to . Ported from the Craft and Statamic 1.3.x round, where an outside review measured the leak. ships ~2,000 bare utility selectors — , , , , — with no ancestor, so they restyled the whole host page, not just PageCraft content. On a Bootstrap host that is the gutter collapse; on any host it is the percent-vs-tenths collision already recorded in PAGECRAFT_STATE.md section 4. Only the leaking half is scoped. Selectors already rooted at , , or stay exactly where they are — wrapping the sheet wholesale breaks the content instead, because inside a bare selector gains an implied prefix and can then never match. Keeping them out also sidesteps scope proximity, which is weighed before order of appearance: a scoped would outrank the typography presets' at equal specificity. Because it never enters the scope, the 348 preset sheets need no change. The global rule is reduced to rather than dropped. breaks page-wide on a customer's site; is load-bearing, and without it a bare host renders the content 16px narrower than the editor showed. A fallback for browsers without . A browser that does not know the at-rule drops the whole block rather than ignoring it and keeping the contents — which would leave PageCraft content completely unstyled, far worse than the leak. needs Chrome 118+, Safari 17.4+ or Firefox 128+. So both emission paths now probe for it — by parsing a real rule, not by sniffing a flag — and load an unscoped twin of the sheet when it is missing. Older browsers get exactly what they got before: styled content, some leakage. is deliberately not treated as \"there is no wrapper to scope to\". It means the opposite in practice: the theme supplies the itself and asks PageCraft not to add a second one, as this repo's own does for the global header and footer. A first attempt did switch sheets on that parameter, and because the runtime CSS is enqueued once per request and the global header runs before , it would have turned the scoping off for every page on the stock layout. Verified leaves all three checksums untouched, and reports the patched tree as already applied. The reviewer's , run against this tree in headless Chrome: 9 / 0 / 0 and 0 / 6 / 41 for no-CSS / Tailwind 4 / Bootstrap 5 — identical to Craft 1.3.2, and matching their reference transform's numbers. Scoping changed no content element on any host. Front end on ee-pb: scoped sheet linked once, probe emitted once, twin referenced, 7 sections rendering, with and alike. canvas in Chrome on the 6.0.8 bundle: constructs, 1,094 rules parsed from the scoped sheet with the block intact. passes on all three vendor bundles and all three merged forks. [2.4.0] — 2026-09-23 Changed The editor's JavaScript now lives in files, not PHP heredocs. carried 2,028 lines of JavaScript inside heredoc strings — 67% of the file. It now carries none, and emits one configuration object plus ten plain files in . The file itself went from 3,028 lines to 1,268. This is preparation, not a feature. Ported as-is to the Craft and Statamic builds those 2,028 lines would have become three copies that drift, which is exactly how the gap between the three builds opened in the first place. Extracted, they are roughly 2,000 lines all three can share. Nothing about the editor's behaviour changes. Every block moved byte-for-byte, verified by diffing the extracted file against the removed text; where indentation had to shift (object-literal members becoming statements) the changelog entry for that commit says so. is the new interface between the CMS and the editor. It carries version, user permissions, URLs, global-component lock state, feature flags, section categories, and the ContentBox options object PHP assembles from add-on settings, block packs, template packs and the framework profile. The extracted scripts read only from it, so they never learn which CMS they are running under. Live runtime handles keep the existing convention; joins and as . Extracted: , , , , , , , , , . Fixed Three extracted blocks referenced the page IIFE's variable, which a shell scan had reported as absent. Two threw on first load; the third, , had thirteen more references that had not thrown only because they sit in observer callbacks nobody had triggered yet — it would have shipped looking fine and broken on first use. Each file now resolves once from . Caught by the browser console, not the scan. Note The cache key on these files is the add-on version, so this release invalidates them cleanly. Editing an extracted file without bumping the version serves the stale copy from browser cache — worth knowing during development. On a development install the repo's and the site's are separate directories. Changes to an extracted script must be copied across, or you will debug a change that never reached the browser. Packaging is unaffected: this script hoists from . [2.3.1] — 2026-09-23 Fixed \"Array to string conversion\" from , raised on every install that had not yet written its grace key — which is every install, since the key is only written when something is wrong with a licence. is a real EE idiom: returns the named column when a matching row exists. When none does, fails on the cached row data, resets to , and it returns a row instead. Casting that to string produced the warning — and the literal string . That had a side effect beyond the noise. calls on a licensed site; compares against , and is not , so it concluded there was something to clear and wrote an empty row into . One spurious row per site, on the first render of a publish form or the settings screen. Both storage reads now use and read the property, which behaves the same whether or not a row exists. Verified against a reproduction of EE's own : with a row present, old and new agree; with none, the old returns and warns while the new returns silently. The grace clock itself was never wrong — is , the same as — so no licence state was misreported. Checked all six local installs: no spurious rows exist, because none has rendered a PageCraft field since 2.2.0 landed. If one turns up elsewhere, key` = 'page_craft_license_grace_since'` is safe — the value is recreated on demand. Note for the suite This bug is in the shared source, so Mason has it too, as will any add-on that took the same copy. The porting guide says to change only the namespace, which faithfully carried the defect across. [2.3.0] — 2026-09-23 Changed ContentBox.js 6.0.4 → 6.0.7. Cleanest bump yet, and it fixes a bug EE users have today: changing a link's URL in the link dialog did not take effect (6.0.7), a regression introduced upstream by a ContentBuilder update. Also arriving: quick section controls on the Box panel and switches to hide the on-page section/box tools, both opt-in and off by default ( , , — 6.0.6); plugin image and video fields now offer an asset manager and an upload button (6.0.6); and a colour-picker fix for editing a value by paste or caret movement (6.0.6). Cache-buster re-applied exactly as the recipe predicts: 3 modulePath sites, +81 bytes, clean. No registry drift. 57 plugins on disk, 55 registered; the two unregistered are and , which is the deliberate state from a45/a47, not a miss. No new plugins and no block-category changes in 6.0.5–6.0.7. No authoring guidance moves. The class vocabulary is unchanged at 826 classes — only the generation date differs — and the framework profile still weakens exactly 90 runtime rules, so 6.0.5–6.0.7 added no bare utilities. 22 vendor files changed: the six bundles plus 14 plugins touched by 6.0.6's asset-field rework. Investigated and cleared: 6.0.6 replaces each plugin's hand-rolled browse button with , which shows the asset-manager button only when passes — and that tests / and friends, none of which PageCraft sets. That looked like a silent loss of the asset picker across 14 plugins. It is not: ContentBox maps the option onto all five of those properties at boot, so the button appears as before. Recorded because the next person to read will reach the same wrong conclusion. The three-way merge was again unnecessary — but for a new reason worth writing down. Three of the seven forked files did change upstream after 6.0.4 ( , , , all dated 2026-09-14). For nav-menu it does not matter: ours is 3,879 lines against stock's 684, differing by 4,576, while upstream changed 17. It is not a fork any more, it is a different plugin under the vendor's filename — which is what the standing \"rebuild it, don't keep patching\" note has been saying. Verified Confirmed working in the control panel on 2026-09-23, on 2.3.1 (which carries this upgrade plus the storage fix). That makes all three platforms confirmed on ContentBox 6.0.7 the same day — ExpressionEngine, Craft and Statamic — which is the first time the suite has been on one version since the Craft and Statamic scaffolds were written in March. [2.2.0] — 2026-09-22 Added Licence notice — Bison's shared component, ported from Mason 1.16.0. PageCraft is an EE store product as of 2026-09-21, so EE now reports a real licence status where it previously reported . Nothing is gated on it. The class produces one thing — a sentence — and the add-on does exactly two things with it: prepend it to the publish field and raise it as an inline alert on the settings screen. and are never read outside the class, so no code path anywhere branches on a licence state. An unlicensed install is a fully working install with a message on it. That is deliberate, not an oversight. An author cannot fix a billing problem, usually does not know what a licence is, and would lose the afternoon — while the person who can fix it is not the one writing pages that day. It also means a licence check that gets it wrong costs a notice rather than someone's work. Mason shipped the opposite and reversed it. Grace clock runs from the problem first seen, not from installation, and resets on success — so a two-year-old site whose card expires gets seven soft days, not the firmest wording on day one. Dev hosts ( , , , , ) are always licensed. Publisher domains via one shared config line, not one per add-on: Owner matching is exact host, so listing does not quietly cover . No table, no migration, no settings screen: the clock lives in EE's own . Ported with a single change to the source — the namespace — verified by diffing against Mason's copy line for line. Two deviations from the porting guide, both because it described a different checkout: the directory here is (plural), matching the six services already present, and the commit belongs in the page_craft repo, not the jontoney site repo, which holds a deployed copy. Verified All thirteen rows of the guide's behaviour table reproduce against a harness: / / / / all resolve to licensed; gives grace at day 1 and 4, lapsed at day 9; renewal clears the clock; and owner domains are exempt; and a host that merely ends with an owner domain is not. Confirmed by grep that no code outside the class reads the licence state. Note on existing installs Versions before 2.2.0 contain no licensing code and are unaffected by this release — there is nothing in them to change behaviour. On upgrade, an unlicensed site gains a notice and loses no functionality. [2.1.2] — 2026-09-16 Added overrides for External Preview, because the setting lives in the database and therefore travels with a database clone: A preview URL of cloned to staging points every editor there at their own machine. That is the same shape of bug as a cloned , which cost a day on staging.katiesway.com earlier this month — worth closing before it happens rather than after. A config value that is set but EMPTY forces the feature off, so a production config can disable it regardless of what a cloned database says. The check is for presence, not truthiness: would fall through to the database on an empty string and defeat the point. Credit where due — this was spotted in an independent review of the integration, not by me. [2.1.1] — 2026-09-16 Fixed External Preview did nothing at all. It read the entry's URL title from , which EE populates when a fieldtype renders a tag on the front end — not when it draws the publish form. So the title came back empty on every entry, hit the new-entry guard, and fell through to the EE preview. The guard behaved correctly; the fault was trusting an EE internal for a value that can be looked up. It now uses as a fast path and falls back to keyed on the already resolved above. Added placeholder — the Structure URI, and the one to reach for on any Structure site. and agree on top-level pages and diverge as soon as one is nested: a page under Services has the URI but the URL title , so previews a page that does not exist. That only shows up the first time someone nests a page. It reuses the same lookup the EE preview button already did, hoisted into so the two cannot drift. If Structure has no URI for the entry, Preview falls back to the EE page rather than building a URL that is probably wrong. Documentation The home page gets its own note. Most headless front ends render home from an index route at and exclude it from the dynamic route so it is not built twice, while EE still knows that entry as — so Preview 404s on exactly one page. PageCraft reports the CMS path on purpose; guessing which entry is \"the index\" would be inventing the app's routing convention, and differently for each front end. The docs show the one-line Astro redirect that maps it, which also fixes hand-written links following the CMS path. Verified Confirmed working on ee-bones against : resolves through , and home resolves once the app maps to . [2.1.0] — 2026-09-16 Added External Preview — point the editor's Preview button at a headless front end (Astro, Next, Eleventy) instead of the EE page. Two settings under Global Settings: External Preview URL — e.g. External Preview Path — appended to it, default . and are the placeholders, so and both work. Deliberately not a toggle plus a URL. Two controls means two ways to be half-configured — switched on with no URL, or a URL doing nothing because the switch is off. A blank URL is the off state, so the setting cannot disagree with itself. A new, unsaved entry falls back to the EE preview. It has no URL title, so a pattern would resolve to the front end's index — which looks like a working preview of the wrong page. Falling back cannot mislead. Which server you aim at changes the workflow, and the docs say so: a dev server fetches per request, so preview is live the moment you save and no build is needed; a built static site serves the last build and lags until rebuilt. For day-to-day editing the dev server is the one you want — which is why this shipped before any build-trigger button. Verified The URL builder was exercised across nine cases: trailing slash on the base, missing leading slash on the pattern, -only patterns with no URL title, a new entry with no URL title, empty pattern falling back to the default, blank base switching the feature off, and a URL title needing percent-encoding. Not yet verified The button has not been clicked in a live control panel — the CP session expired mid-test and logging in is not something I do. The logic is covered above; what is unconfirmed is only that the rendered matches. [2.0.8] — 2026-09-15 Fixed and failed silently. Both require and , and returned an empty string without them — a blank page and no explanation. They now emit an HTML comment saying what is missing, the way already did. Documentation The reference described as rendering \"the current entry … without knowing the field's name\". It has never done either. The method has required both parameters since v1.3.0; a bare tag returns nothing. The README's layout example showed it with no parameters at all, which is exactly the template someone would copy and then watch do nothing. Both corrected, and the page now says what to use instead: inside , use the field tag ( ), which the channel module resolves per row. The module tags are for when you already hold an entry id. This also sidesteps the parse-order trap already documented under , where is not yet substituted when a nested module tag runs. Third false claim found in this reference in two days, after and in 2.0.5. The page was written from intent rather than from the code. [2.0.7] — 2026-09-15 Fixed Duplicate heading ids on the CP Documentation page. All fifteen docs render into one page with one renderer instance, but reset its slug counter on every call — so seven elements carried and two . Invalid HTML, and any in-page link to one of them landed on the first. The counter now carries across calls so the existing collision suffix does the work ( , , …); is there for a standalone render that wants a clean namespace. Verified: 119 ids on the assembled page, 119 unique, 0 duplicated. Investigated, not reproduced A report of stray bordered \"pill\" artifacts on the Documentation page, diagnosed elsewhere as unclosed fenced code blocks leaking tags. That does not reproduce against this codebase at any version. Checked three ways: Every doc renders with balanced tags, and the assembled page has no inside , no nested , and no empty . Loaded in a real browser — whose HTML5 parser is what would do the reconstructing — the live CP page at 2.0.6 reports 401 elements, zero empty, zero nested. The 2.0.1 and 1.1.25 doc sets render the same way. The measured pill styling in that report ( , radius 5px) is not PageCraft's: is with no border. So the elements described were not inside our docs body. The duplicate ids above are a genuine defect found while looking, but they do not produce that visual. If the artifacts persist after updating, the missing piece is which site and version they appear on. [2.0.6] — 2026-09-14 Added AI Assistant documentation ( ) — closing the gap 2.0.5 recorded. A shipped 2.0 feature with two settings surfaces, five image models, a rate limiter and an OpenRouter dependency had no page at all. Covers what a user cannot work out alone: that PageCraft does not resell AI and you bring your own OpenRouter key; that the key is encrypted and never shown again, so a blank field after saving is correct rather than a failed save; that the toggle and the key are both required, which is the cause of a missing button; and that generated images land in the EE file manager as ordinary files. Every figure was read from the code rather than recalled — 40 requests per minute per member ( ), the 2,000-character image prompt cap ( ), the code and chat model lists, and the fixed image-model allowlist that stops a tampered request billing an arbitrary model. The button is described as the code creates it: sparkles icon, tooltip AI Assistant, in the left toolbar. It also records the thing this week taught us the hard way: AI pages compose from raw markup rather than the block picker, so they exercise different code paths from hand-built pages, and saying \"it was AI-generated\" is useful when reporting a rendering problem. Verified 15 docs now agree across all four places — on disk, registered in the CP, linked from the index, and in the package. [2.0.5] — 2026-09-14 Fixed The Template Tags Reference documented two tags that have never existed. and have no matching methods on the module, so anyone following the page got nothing and no error. Replaced with the tag that actually does the job, , including the detail the old entries omitted: both and are required, and it outputs nothing at all without them. The note explains what happened rather than quietly swapping the names, since anyone whose template already uses the old tags needs to know why they render nothing. exists and was undocumented. Now listed. The \"Reference\" footer listed the same two non-existent methods. Corrected to , , , , , . Added An Asset placeholders section in the tags reference. The page bills itself as the full listing and omitted all four placeholders, which were documented only in passing on three other pages. Guidance to put before your own stylesheets, in both the reference and the examples page. ContentBox ships utility classes with common names, many carrying , so load order decides collisions. Calls out specifically: ContentBox reads it as a percentage ( = 8%) while many themes read it as tenths (80%), which silently rescales a theme class that works everywhere else. Written from the gobison.digital overlay that rendered at 8% instead of 80%. Changed called page 07 \"Grid Framework\"; the CP sidebar and the page itself call it CSS Framework. Aligned. Verified All 14 docs agree across four places: on disk, registered in the CP, linked from the docs index, and present in the package. Every tag appearing in the docs now resolves to a real method, checked mechanically rather than by eye. Known gap AI Code Chat has no documentation at all — not the OpenRouter key, not enabling it, not image generation. A shipped 2.0 feature with a settings surface and no page. Worth writing; not written here. [2.0.4] — 2026-09-14 Fixed \"+ → Image\" inserted nothing visible. Same for Video and Audio. ContentBox builds the sample media from , and PageCraft sets to empty on purpose — already rewrites every block path to an absolute URL, because packs live in different directories and a shared prefix cannot serve them all. So the sample references collapsed to a bare , resolved against the canvas , 404'd, and inserted an with an empty — which renders as nothing at all. Fixed with ContentBox's own escape hatch for this, which PageCraft had never set: / / , each pointed at the real asset in . stays empty, so block thumbnails keep working. Applied to the editor frame and the global-component frame. The release build was deleting from every package. It was on a hardcoded \"verified orphan\" list, added because grepping the package for the basename found no reference — which it never could, since the path is assembled at runtime from . The asset only looked unreferenced because of the bug above: the same defect both broke the reference and hid the evidence. Removed from the list, with a note that a basename grep cannot prove a file unreferenced when paths are built by concatenation. An empty array would have broken the build on macOS. Bash 3.2 errors on for an empty array under ; the expansion is now guarded. Known remaining Two built-in row templates insert and are still broken for the same reason. ContentBox exposes no option for those, so the only fixes are duplicating a vendor asset to the theme root or forking the bundle — neither worth it without the case actually coming up. [2.0.3] — 2026-09-13 Added An \"Apply to: This section / Whole page\" switch on the Typography panel. ContentBox could always apply a style page-wide — branches on and walks every instead of just the active one. What it never had was a way to set that. is defined once in and called by nothing — not the vendor's own UI, not PageCraft — so the value stayed , fell back to , and the branch was dead code in every install. Choosing a font \"for the page\" quietly styled one section. So this is the missing control, not a new capability. Injected into the vendor's panel rather than forked into it — the same technique as the Form Delivery button — so stays overwritable on upgrade. It resets to \"This section\" every time the panel opens, deliberately. A sticky page-wide scope is destructive by surprise: set it once for a global font, come back later to restyle one section, and every other section's typography is silently overwritten. Page-wide is a deliberate act each time. Nothing changed on the render side, which was checked before concluding: both scopes emit identical markup ( on ; the wrapper never receives one), the existing regex already emits the right tags, and all 174 files are present. Section-level typography was never broken. Documentation gains a Typography section covering the switch, why it resets, and the fact that \"whole page\" means this field — Global Header and Footer are separate components and keep their own typography. Known scope The switch reaches sections in the current field only. Site chrome must be styled in its own component. [2.0.2] — 2026-09-12 Fixed A page with no plugin blocks loaded the ContentBox runtime and never started it, so motion, , , marquees, split text and horizontal scroll were all dead — and the page rendered invisible, not merely unanimated. emitted only when the content contained at least one plugin block. The runtime has no listener of its own, so nothing else ever constructs it: the script tag was served and then sat inert. It renders invisible rather than static because the editor bakes each animated element's first keyframe into its inline style. Without the runtime to advance them, , , and stay exactly as written. Found on an AI-generated page at gobison.digital that rendered blank while every hand-built demo beside it was fine — those happened to contain a plugin block, which is the only reason their runtime ever started. AI-generated pages are disproportionately exposed: they compose from raw markup and motion attributes rather than from the block picker. Fixed on both render paths ( and ): the runtime is now constructed whenever it has just been loaded, plugins or not. Verified that only this case changes — a page with a plugin block, a second field registering a new plugin, and a second field with no new plugins all emit exactly what they did before. [2.0.1] — 2026-09-11 Added Forms documentation ( ) — PageCraft had none, for a feature with a global setting, a per-form override, reCAPTCHA and two different blocks. It leads with the thing that actually costs people time: Notification Email and Redirect URL are on the Form Delivery button on the section toolbar, not in the form's own Settings tab. That is a deliberate design consequence — it is what keeps PageCraft's additions outside the vendor plugin's files so the plugin can be replaced wholesale on every upgrade — but nothing said so outside a commit message, and the settings were looked for in the Settings tab first, which is exactly where they are not. Also covers the recipient resolution order (per-form → global default → ), what a redirect actually does to the success message, both spam layers and which key goes where, the two form blocks and where each keeps its settings, and running the converter. Registered in the CP docs list and the docs index. Fixed still said ContentBox 5.x is bundled. It has been 6.x since a44. [2.0.0] — 2026-09-11 First stable release on the ContentBox 6 line. Supersedes 1.1.25; the through entries below are the development history of this release and are kept for reference rather than repeated here. Headline changes since 1.1.25 ContentBox.js 5.9.5 → 6.0.4. Vendor assets resynced, all seven local forks preserved and re-verified, the module cache-buster reapplied. 21 new plugins registered that the hardcoded allowlist would otherwise have left inert. Nav Builder rebuilt on ContentBox 6 — logo variants, mobile menu, theming that supplies values rather than properties, undo checkpoints. Framework profiles. Selecting Bootstrap/Tailwind now serves a de-importantised profile stylesheet and puts ContentBox in its non-destructive grid mode, instead of arming grid normalisation. Reverses the old \"set it to native for imported templates\" rule. Template Ingest hardened and, for the first time, measurable — scores a real pack and gates on marker violations. Section names now come from the filename, closing a silent data-loss path that destroyed 42% of one 43-section pack. AI Code Chat works. The proxy request/response contract, the CSRF gate, , image attachments, vision and the image-generation protocol were each separately broken. Forms. ContentBox 6.0.4's block is registered and extended — per-form notification email and success redirect — as an extension around an untouched vendor folder rather than a fork. migrates classic Form Builder blocks onto it. Authenticated editor frames are never cached, and the Unauthorized page now names its own cause instead of telling a logged-in user to log in. Upgrade notes is idempotent and does not gate on the previous version, so 1.1.25 → 2.0.0 applies in one pass. EE runs it when it notices the version change — visit each site's CP once. Copy both and , but never blanket-copy the theme tree over a live install: exclude , and , which are generated per install. See docs/00-installation.md. Sites behind a CDN should purge their pull-zone once after deploying. [2.0.0-a49] — 2026-09-11 Fixed The converter now also removes flattened classic-form script text — the long-running \"form renders its own JavaScript down the page\" report, finally diagnosed from real stored markup. It is a separate problem from the conversion, which is why a48 left it behind: an earlier save committed a canvas in which the module's had been broken open, so part of its body was parsed as markup and persisted as real content beside the block. Converting the block does not touch it — it lives outside the block — so a converted entry renders a perfect new form with the old script's text still spilling down the page underneath. Signature: — a div close immediately followed by a JavaScript string terminator. No legitimate HTML produces that. The trap: the same sequence occurs inside the intact , where it is correct. Script bodies are masked before matching, offsets preserved. Boundaries are structural, never textual. Start is found by walking back with depth counting to the element the corrupt close belongs to; end is the first unbalanced , stopping before it — that one is the row's own close, and swallowing it would unbalance the document while \"cleaning\" it. Anchoring on the message text would have been wrong: both messages are per-form settings, so a site with custom wording would be missed. The row filter now also matches , because an entry converted by a48 no longer contains while still carrying the damage — a filter on the old marker alone would silently skip exactly the entries that still need cleaning. Verified against a fixture built from real katiesway markup: remnant removed, intact preserved, form block and map column preserved, div balance 9/9. And against the real payload: both wrapper attributes written, correctly forced to by the redirect, all four fields carried, theme pruned to its one non-empty value. Verified on real content katiesway staging, 2026-09-11 — 10 forms in 10 entries, 1 flattened remnant, 0 warnings, applied. A second dry run afterwards matched zero rows, and the converted forms render correctly in the editor with their per-form delivery settings carried across. A live submission through a converted form has not been run separately; the new block's delivery path was proven on a hand-built form in a45. [2.0.0-a48] — 2026-09-11 Added — migrates classic Form Builder blocks to ContentBox 6.0.4's plugin, so the permanently-forked can eventually be deleted. The fork cannot go while entries still contain classic forms, because the module IS their editor. What makes it safe to automate: both blocks render through the same FormViewer, so the form definition — fields, labels, types, validation, order — is the same schema on both sides and moves across verbatim. Nothing is re-derived or guessed. Only the storage location and the settings key names differ: classic new / / (pruned) (HTML-unescaped) (HTML-unescaped) (wrapper attribute) (wrapper attribute) The last two are PageCraft's own per-form features, and they map exactly onto the two wrapper attributes a45 built. That is why the conversion loses nothing. Dry run by default; writes every original field value to a timestamped backup first and refuses to run if the backup directory cannot be created. The enclosing is preserved — only the module attributes and the block's contents are replaced, so rows and sibling columns are untouched. Verified against real content (ee-pb, 2 forms in 2 entries): 0 classic attributes left, valid JSON, all 3 fields carried with names intact, theme preserved. Known limitation The pre-JavaScript snapshot is not carried. The new block stores a copy of FormViewer's rendered output inside so visitors see the form before scripts run; producing it means running FormViewer in a browser, which a PHP script cannot do, so the container is written empty. re-renders from the definition, so the form is correct for every real visitor — what is missing is only the no-JS paint. Open each converted entry in the CP once and save it to regenerate the snapshot permanently. Fixed Two defects found by running the converter against real data rather than trusting it: The row filter matched in SQL, which returns zero rows — field data is stored as JSON, so the HTML inside has its quotes backslash-escaped. SQL now narrows loosely and the converter decides precisely, after decoding. did not catch the classic module's empty-string settings, and an empty is not harmless: the plugin's only fills keys that are ABSENT, so an explicit overrides the default and the form submits in no mode at all. A real form converted with before this was fixed. [2.0.0-a47] — 2026-09-11 Changed Retiring the classic Form Builder block — which turns out to be mostly already done, upstream. The ask was to remove the old form in favour of 6.0.4's plugin. What measurement found: The picker file PageCraft serves is , and 6.0.4 already retired the classic block there, commented out with LINE comments — which is why a block-comment scan reports it as live. It has not been in the block panel since the 6.0.4 sync landed in a44. The quick-add \"+\" menu independently prefers the new plugin: the bundle branches on , and always sets while PageCraft never sets . So the → FORM button inserts . Consequently a45's \"Form Builder (classic)\" rename never had any visible effect — it renamed a block that is not served. Removed here, and the a45 entry corrected. A content-matched guard is kept in : it drops any snippet whose html contains . Measured as a no-op today (267 snippets in, 267 out) and kept deliberately — the upstream retirement is a commented-out block in a vendor file re-synced wholesale on every upgrade, and the sibling still carries a live classic entry. Matching on content rather than block index means it survives the index shifts every vendor sync causes. Not removed, deliberately still ships and still loads. It is the editor for every classic form already living in an entry — deleting it makes those forms uneditable, so it cannot go until existing content is migrated. Same for and 's honeypot branch. Census across the three running local sites: 3 classic forms, 0 new-style (ee-pb field 1 ×1 and field 58 ×1, jontoney field 25 ×1, northstar-energy 0). katiesway was not running and holds at least one more. At that scale hand-rebuilding the forms in the new block is cheaper than writing and testing a → converter, and it is the recommended path. [2.0.0-a46] — 2026-09-10 Fixed An authenticated frame could be stored by a shared cache. Found while investigating an \"Unauthorized\" report on staging, and not its cause — see Root cause of the report that prompted this below. A latent defect on its own terms, fixed on its own terms. Every ACT endpoint behind the + gate serves per-user content, but only the editor frame said so. The canvas document, the global-component frame, the FilePicker bridge and all three error pages were emitted with no cache directives at all, so any shared cache in front of the site — Varnish on Cloudways, a CDN pull-zone — was free to store one response and replay it to everyone. Two details made it stick rather than flicker: The error page returned 200 OK. To a cache that is a successful response, not a failure, so a single anonymous miss pins \"Unauthorized\" onto the URL for every logged-in editor. Logging in again cannot clear it, because the request never reaches PHP again. The canvas URL's cache-buster was the literal string — frozen since that release while everything the canvas emits (base tag, canvas assets, library shims, Grid Builder JS, framework-profile CSS) changed underneath it. Every release from 0.6.7 to a45 shared one cache key. That combination is also why the symptom appeared inside the canvas while the editor chrome around it worked: the chrome has sent since it was written, and the canvas never has. All of the above now send and , via one . The error pages return 403, not 200. The canvas cache-buster is the add-on version, in step with . Because the canvas URL changes with the version, deploying this release bypasses any already-poisoned cache entry without a manual purge. Changed The Unauthorized page now diagnoses itself instead of saying \"please log in\" to someone who is already logged in. The frames are addressed from — that is, from the setting — not from the host the CP is being browsed on. When those disagree the frame is a request to a different EE install, where your session does not exist, and the gate fails while you are perfectly well logged in. A cloned site is the usual way they come to disagree: lives in the database and travels with the clone, so a new staging site addresses its editor frames at production until that setting is corrected. The page now names the host that served it, the host of the CP that framed it (from the Referer, when sent), and where to fix it. Hostnames only — the page is reachable without a session by design, so it must not become a way to read configuration. Applies to the editor frame, the global-component frame and the FilePicker bridge. Root cause of the report that prompted this It was neither of the above. had been deleted and re-cloned, and the domain — though present in the Cloudways domain setup — was not set as primary. Setting it primary fixed the site immediately. The family was right and the lever was one level up from where this release looked: the frame was being served by a host the CP session did not belong to, but the control was Cloudways' vhost, not EE's field. Check both, and check the host in view-source first — it settles the whole question in seconds and needs no deploy. The caching defect fixed here was never reproduced on that site and a fresh clone has a cold cache, so it is hardening, not a fix for that report. It stands because an authenticated per-user response with no cache directives is wrong regardless of whether a cache happened to act on it. [2.0.0-a45] — 2026-09-10 Added ContentBox 6.0.4's block, with PageCraft's per-form Notification Email and success Redirect URL — as an extension, not a fork. Nothing of ours lives inside . That folder can be overwritten wholesale by every future ContentBox release, which is precisely what cannot do. Storage — / on the block wrapper. The plugin's rebuilds its definition from a fixed key list, so anything stored in its JSON is dropped on the next save; wrapper attributes it never touches survive. UI — a Form Delivery button injected onto the section toolbar of any section containing a form, following the Global Header lock/unlock pattern. The vendor's Settings tab and are untouched. Render — rewrites the block's JSON, not the tag: the plugin's re-applies from that JSON on every run, front end included, so a tag rewrite would be undone the moment scripts ran and the form would go back to POSTing at the vendor's placeholder — a 404 on an EE site. Server — learns the vendor's control fields and answers a browser POST with a 303. The endpoint lookup shared by both form rewrites is now rather than duplicated. Fixed The new form would have shipped with no spam protection at all. checked , the old FormBuilder's honeypot. The 6.0.4 form renders instead, so every new-style form would have accepted every bot — silently, since the field is always present and the form keeps working. Both are now enforced. Security The success redirect is validated server-side: site-relative paths or this site's own host only. is injected by us but a crafted POST can set anything, and without the check the endpoint would be an open redirect. Protocol-relative URLs are rejected before parsing. Changed With two form blocks now in the picker, the classic one is relabelled \"Form Builder (classic)\" — done in , which already rewrites the served snippet JS. The obvious place, , is a vendor file that changed between 6.0.0 and 6.0.4; editing it would have forked a moving file. Correction (a47): the premise was wrong and this rename never did anything. There are not two form blocks in the picker. The served file is , not , and 6.0.4 already retired the classic block there by commenting it out — with line comments, which is why a block-comment scan reports it live. The rename was removed in a47. and remain on disk and unregistered. Verified End to end on staging.katiesway.com, 2026-09-11: a real submission, mail delivered, and both per-form overrides applied from the Form Delivery button. (This entry shipped saying it was unverified; it no longer is.) The one friction worth recording: the settings were looked for in the form's own Settings tab, which is where the classic block keeps them and the one place this design deliberately does not touch. The button is appended to the section toolbar and appears only on a section containing a new-style form. [2.0.0-a44] — 2026-09-10 Changed ContentBox.js 6.0.0 → 6.0.4. The cleanest vendor bump so far: all seven of our forked files are byte-identical between 6.0.0 and 6.0.4 upstream, so there was nothing to merge. They were restored from git after the asset sync rather than hand-merged, and both local patches — the nav-background fix (a43) and the single-nav prune (a42) — verified intact afterwards. The cache-buster re-applied exactly as the recipe predicts: 3 sites, +81 bytes. , and all still export, and every minified bundle passes . Upstream fixes worth noting, both in areas we have fought: 6.0.2 — a resized column could store its width in pixels instead of a percentage, which is the grid-math area a38 worked around. 6.0.4 — adding a row (or moving a column) next to a plugin block stopped formatting from working inside that block until reload. Regenerated both derived artifacts. grew 4.7KB but added no new utility classes — the vocabulary reference still reports 826, with zero added and zero removed, so the growth is all component rules. The framework profiles did move materially: now weakens 90 rules where 6.0.0 needed 26, so 6.0.4 marks considerably more bare utilities . Added (on disk, deliberately NOT registered) , , , plus . Unregistered means insertable in the editor but inert on the page, so none of them are reachable yet — this is a decision, not an oversight: / are two variants of the same block, and the vendor says to register only one. \"replaces the form module\" — and PageCraft's is a fork of exactly that module. PageCraft already owns the server half the plugin requires: a action, the submissions table, notification email (1.1.8) and success redirect (1.1.12). Adopting it means re-implementing all of that, which is its own piece of work. No pressure to: still ships in 6.0.4 unchanged, and no module was removed. is self-contained (no server, no dependencies) and is the one worth registering; awaiting the go-ahead. [2.0.0-a43] — 2026-09-10 Fixed Nav editor froze the page when Bar Background was ticked. A MutationObserver feeding itself. writes and on nodes inside the section. Its observer watches that same section with and . So every write it made re-triggered the observer that called it. It stayed quiet only by accident. With no bar background is empty, so the pass called on absent properties and on an absent class — both queue no mutation record, so the loop never started. Ticking Bar Background made write a real value on every pass, each write feeding the observer. MutationObserver callbacks are microtasks, so the queue never drained and the tab hung outright. Fixed at the source: compares value and priority before writing, so a settled value produces no mutation and the observer goes quiet on its own. additionally detaches while it writes and calls before re-attaching, so its own mutations can never be delivered back to it even if a future write is added without the guard. The same sweep was applied to every other unconditional write in the file, because fixing only the one the stack named would have left the bug a scroll event away from returning. 's wrote ~40 custom properties per call, and wrote one on every scroll event and every ResizeObserver tick — each of those queued a mutation record the nav-background observer then woke on. Nothing in this file writes unconditionally any more. Found by instrumenting the running editor rather than by reading: a trip-wire on / / that threw after 150k calls turned the hang into a stack, and the repeating frame named directly. Three earlier hypotheses — an orphaned modal overlay, the snapshot, unbounded growth — were all wrong, and all three were disproved in minutes once the loop could be caught in the act. Known, not fixed Each nav mount still leaks one capture-phase listener on the outer document; the two beside it are torn down explicitly and that one was missed. Left alone pending the Nav Builder 2.x rebuild. [2.0.0-a42] — 2026-09-08 Fixed a41's prune only reached ee-pb. Every site keeps its own copy of the theme, so ee-bones, ee-pagebuilder, jontoney and northstar-energy still offered all eight nav sections. They have each been pruned in place. A copy would have been wrong: the four files had drifted from ee-pb's and from each other, so overwriting them would have discarded whatever else was in them. instead locates entries structurally — brace matching that respects , , backticks and comments — keeps the single Navigation/ entry, and drops the rest. It refuses to run if it cannot find exactly one entry to keep. Removed The Legacy navbar (category 6, , ). ContentBox's own sticky navbar, a different system from the Nav Builder rather than a duplicate of the seven. Jon's call, asked and answered: one nav section, in Navigation. Pages already using it keep their markup; it can no longer be inserted. Category 6 still holds 19 other designs, so it stays declared. Note a41 reported \"73 designs -> 66\". That count came from grepping , which also matched three entries commented out inside . The live counts were 70 -> 63, and are now 62 with the Legacy navbar gone. The seven removals a41 described were correct; only the totals were inflated. [2.0.0-a41] — 2026-09-07 Removed Seven of the eight shipped nav sections. carried one section per nav variant — , , , , , , — plus an eighth in Basic/Plugins. They differed only by ; everything else was identical. The Nav Builder's LAYOUT tab now sets that variant, and the Nav Items modal owns every other setting — behaviour, theme, height, spacing, colours, dropdowns. So the seven were seven ways to insert the same thing, and choosing between them in the picker implied a decision that is actually made afterwards in settings. One nav section remains, in the Navigation category, defaulting to . Add it and pick the variant. 73 designs → 66; the file loses ~26KB. keys its cache on the JS file's mtime, so the block index regenerates on the next read with no action needed. Note for vendor upgrades: was already on the locally-patched list, and this deepens that patch. [2.0.0-a40] — 2026-09-07 Changed Ingest no longer registers canvas assets. It reports them and you decide. It used to append every / it found in an imported template to the global / settings. Three problems, all structural rather than bugs, and none fixable by tightening the dedupe: A global side effect of a per-section action. One import changed the editor for every field on the site. Unbounded, with no removal path. Every ingest appended; nothing ever cleaned up, and deleting the sections did not undo it. One install reached 24 canvas scripts including three copies of jQuery — each load discards the plugins registered against the previous one, which broke the editor outright (a33). Invisible. Nothing surfaced that it had happened until something broke. That is why it took days to find. Finding the assets is still worth doing, since a marketplace pack buries its stylesheets several directories down. So the same detection runs, the same hygiene is applied — one jQuery rather than one per pack, no tags, no placeholders — and the result is shown in the ingest modal with a copy-pasteable list and a note saying nothing was added. Add what you want under Advanced Settings → Canvas Assets, use the existing Custom CSS / Custom JS fields, or link externally. Measured against the list that broke that install: 17 CSS + 24 JS in, 8 CSS + 14 JS reported, nothing written. a33's dedupe helpers are kept but demoted to report hygiene — they no longer stand between a user and a broken editor. is deleted. Existing installs are untouched. What is already registered stays; the Canvas Assets UI has per-row delete. [2.0.0-a39] — 2026-09-07 Fixed A framework-profile field had no grid settings at all. a29's structure lock hid — and that tool carries the Grid Editor button, the only way to set column widths without hand-editing classes. It also hid the row-add tool, which was only useless because a29's was broken; a38 fixed that and adding a row works now. The reach was worse than the intent. A profile is field-wide while the reasoning behind the lock — \"an imported template's grid is a code job\" — is per-section, so a field set to lost grid tooling on its native and newly inserted sections too. The lock now hides only what is genuinely inert under format mode: the column tool (a new column would arrive unclassed, since must stay empty for row insertion to work) and the column resize handles (with empty, a drag writes an inline width that ContentBox's own clears). The guarantee that a profile cannot rewrite an imported grid was never this CSS — it is 's empty / , which is untouched. The lock is only about not offering a control that does nothing. [2.0.0-a38] — 2026-09-07 Fixed Under a framework profile, adding a block or element silently inserted nothing. a29's was an empty , and ContentBox's insertion algorithm cannot use one: The loop is the only thing that converts from that array into an element, and it needs the row to have at least one child. With none, set a property on an array and vanished — every insert produced an empty row and dropped the block. The block picker appeared to reject the section. The cell now lives inside and is empty. That reads backwards but is what the algorithm wants, verified against a faithful replay: An empty is safe — is , so the splice is a no-op and content passes through — and it cannot re-arm the native grid, since the constructor's fallback requires both formats empty. Known limit recorded in the code: the add-column path builds its cell from , so a new column would arrive unclassed. Under a profile the column tool is hidden by , so that path is unreachable — but the two must be revisited together if the structure lock is ever relaxed. a29 shipped this untested. The failure is invisible from PHP: the options are valid JS and the editor loads normally; only the insert does nothing. [2.0.0-a37] — 2026-09-06 Fixed A card grid built as a was marked as one editable region, and editing it flattened the cards. Ingest marked any list containing text as a single region. That is right for a list of text items and destructive for a list of components: ContentBox treats a marked element as a rich-text container and normalises its contents into paragraphs, so loses its images, headings and wrappers the first time anyone edits any part of it. One marker, the whole grid gone. Both real corpora do this constantly — (×3) and in a 43-section Crafto pack, , (×2), and across 19 Figma-derived layouts. A list is now marked only when passes — the same guard the promotion already uses. A list of components is left alone so its headings, images and paragraphs get their own finer markers instead. Known cost, measured rather than estimated. On the Crafto pack markers went 309 → 351 (finer), coarse markers 5 → 0, and coverage 90% → 76%. The lost coverage was never real — it was text inside a marker that would have destroyed it — but some of it is now not editable at all: a holding a headline, a paragraph and a nested fails the text-level guard, so neither the headline nor the paragraph is promoted. Whether that guard can be relaxed depends on whether ContentBox actually flattens a nested block inside a marked region or only wraps loose inline content, which needs checking in a browser rather than reasoning about. Added now reports coarse markers, and fails on them. Coverage alone could not see this class of problem: one marker spanning an entire card grid scores as good coverage while being the most destructive shape there is. The scorer would have passed every section this release fixes. [2.0.0-a36] — 2026-09-06 Fixed Ingest named sections from the first heading, so files sharing a heading overwrote each other. Ingest upserts by , which makes a name a KEY — and a heading is not one. Two files with the same were the same section as far as the upsert was concerned, so the second silently replaced the first ( ) or was skipped ( ). Either way one of the pair did not survive, with no error either time. Not an edge case. On the 43-section demo-corporate pack, 18 of 43 sections collided — 42% destroyed on import. Across a 619-page Crafto corpus it was 510 collisions in 2554 sections, the worst heading repeating 29 times. A template family that reuses one hero heading across its pages collides on nearly every file. Names now come from the filename, which is unique within a zip by construction, stable across copy edits, and already what pairs thumbnails on — so name and preview key on the same thing. The heading is not discarded: it becomes the section's description, which is what the Sections list shows beneath the name. Readability moves to the field built for it and the name goes back to being an identifier. Descriptions are refreshed on overwrite, so a re-ingest updates them. Note for existing libraries: sections imported before this keep their heading-derived names. Re-ingesting the same pack will create new, filename-named rows alongside them rather than updating them, so the old ones want deleting once. [2.0.0-a35] — 2026-09-06 Removed The CSS Cascade Layer setting (a27) — it broke native grid layouts. It wrapped ContentBox's base stylesheets in so a site's own CSS would outrank them without depending on load order. The flaw is in the mechanism, not the configuration: an unlayered rule beats any layered rule, so it did not only demote the ContentBox utilities that collide with a framework — it demoted the rules ContentBox's own layout depends on. On a site that has imported a template, that template's CSS is registered as a canvas asset and is unlayered. So Bootstrap's and beat ContentBox's protections, native columns could no longer shrink, and two-column sections stacked into one. Diagnosed on a real install by enumerating the canvas's stylesheets and finding ContentBox's runtime CSS was not among them, then bisected by toggling the setting: with it on, / and the columns stacked; with it off, / and they sat side by side at 401px + 639px. a27's own docblock predicted this — \"it deprioritises ContentBox against the host theme for native PageCraft blocks as well… that is the regression surface to check on a real site\" — which is why it shipped default-off. What the prediction missed is that the feature is most tempting in exactly the situation where it is most harmful: you enable it because template CSS is fighting ContentBox, and that is precisely when template CSS also beats ContentBox's layout. Superseded by the a29 framework profiles, which remove from ~148 specific colliding rules instead of demoting ContentBox wholesale — surgical rather than blanket, and with no effect on layout rules. The setting row is deleted on update rather than left at , so an install that had it on does not keep a dead setting that once broke its layouts. keeps its other job: one helper for both surfaces, so the canvas and the front end cannot drift apart again. [2.0.0-a34] — 2026-09-06 Removed debug instrumentation. It was logging to the browser console on every autosave — once every 1.5s for as long as an editor was open — serialising the live DOM of every element each time, plus two writes on every field save. It was added to chase a template-embed attribute loss, that investigation is closed, and it has been drowning the console since: it was the only thing left in the log while diagnosing the a33 canvas-asset failure. [2.0.0-a33] — 2026-09-06 Fixed Canvas asset registration was accumulating duplicate copies of jQuery, and that is what made the editor look broken. Found by opening the editor and reading the console rather than reasoning about it: a real install's canvas was loading 24 scripts — jQuery three times, three times, three times, Google Maps four times — and throwing . Every jQuery load replaces and discards the plugins registered against the previous instance. So a second pack's jQuery silently unregistered , and the template's own then died on an uncaught exception that abandoned the rest of its initialisation. That is why blocks added to the canvas — the Nav Builder among them — rendered nothing. Three defects, all in : The dedupe never matched. Incoming URLs are raw, stored ones are -encoded, and it compared one against the other. So re-ingesting a template appended everything again, every time. No cross-pack dedupe. Two packs cut from the same marketplace theme ship byte-identical vendor files under different pack paths, and both were registered. No sanity filter. Unresolved EE tags ( ) and placeholder keys ( ) were stored verbatim, 404ing or throwing on every canvas load. Dedupe is now by basename + file size rather than URL — basename alone would drop a second template's genuinely different , while size still collapses the identical vendor copies that cause the jQuery problem. URLs that cannot resolve are dropped. The merge is idempotent: re-ingesting the same pack now adds nothing. Verified against the list from the affected install: 24 tags → 14, and a re-ingest of the same pack leaves it at 14. The exceptions are gone from the editor console. Existing installs need their list pruned once — this fixes registration, not data already stored. The setting is / under Advanced Settings. [2.0.0-a32] — 2026-09-06 Fixed Content saved before a31 is now repaired on load, not just prevented. a31 stopped ingest creating markers ContentBox cannot hold, but did nothing for content that already had them — and re-ingesting does not reach it: re-ingest rewrites the section library, while a section already placed in an entry keeps its own saved copy and goes on ejecting text on every save. strips from any element that is a , sits inside one, or is inline. It runs on the load path ( ), which is what makes it a repair rather than a record of the damage: the marker is gone before ContentBox can act on it, so the session cannot eject any more text. Nothing is written until the entry is saved. It also runs on save as a net for content that arrives by paste or programmatic write, and on the global header/footer editor, which a re-ingest never touches either. It deliberately does not try to undo damage already done — no moving ejected text back, no deleting husks. Telling a husk from a paragraph someone left blank for spacing is guesswork, and this runs unattended over real content. Stripping a marker can only cost editability on one element; guessing at cleanup can destroy authored work. Ejected text stays where it landed: visible, editable through its cell, and no longer multiplying. Safety property worth knowing: when there is nothing to repair the input is returned byte-identical — the DOM round trip is discarded rather than serialised back — and a parse failure returns the input unchanged. Verified against the real reported section: 3 markers removed, zero unsafe remaining. [2.0.0-a31] — 2026-09-04 Fixed a28's rule was not strong enough: an inline element must never be marked at all. a28 stopped marking anything that had a ancestor at ingest time and recorded that \"marking an inline element inside a is unaffected and still supported\". A real Crafto import disproved that. ContentBox normalises a cell's loose inline content into a paragraph first, so it wraps the span in a and only then injects a into the span it is treating as a rich-text container. The colliding ancestor is one ContentBox created — which ingest cannot see, so no ingest-time guard can catch it: -> <p><span class=\"… edit\"></span></p><p>Join the 10,000+…</p><p></p> , , , , , and are now routed through their nearest block cell instead of being marked, using the same promotion the branch uses (extracted as ). Where no legal cell exists the element is left uneditable rather than marked, unchanged from a28. This matches ContentBox's own convention exactly: all 22 occurrences in the shipped block library sit on a , none on an inline element. Editing gets coarser — one region per cell — and in practice better: the reported hero's accordion title now marks rather than the span inside it. Re-ingest to clear markers already placed on inline elements. [2.0.0-a30] — 2026-09-03 Fixed Clicking near the bottom-right of the editor canvas resized the field instead. carries to give the field its drag-to-resize handle. The browser paints that handle in the bottom-right corner of the element's border box, on top of whatever is there — which was the editor iframe — and the handle also swallows the pointer, so a click landing in that corner never reached the canvas at all. Any click carrying a pixel or two of drag silently rewrote the wrapper's inline height, overwriting the configured Editor Height. Reproduced in a standalone harness of the same markup: a 16px drag on the corner over the iframe left the canvas receiving nothing and the wrapper resized 302px → 344px, with written to its style attribute. now moves the content box up so the handle sits in a reserved strip below the iframe rather than over it. Verified in the same harness against the real chrome CSS: a drag at the iframe's own bottom-right corner reaches the canvas and leaves the height untouched, while the handle still resizes normally from the strip. The affordance is kept — it just no longer overlaps the thing being edited. is set explicitly so the strip comes out of the configured height rather than being added to it, and so the result does not depend on what the CP's global reset happens to say. The wrapper's background now shows through that strip, so the handle sits on chrome matching the toolbar above it. Note this was never a ContentBox or PageCraft script behaviour — no height ever crosses the postMessage bridge. It was one CSS declaration and where the browser chose to draw its handle. [2.0.0-a29] — 2026-09-03 Changed The Grid Framework setting is now the CSS Framework setting, and it no longer hands ContentBox permission to rewrite your markup. It used to weld together two unrelated things — who owns the grid, and which CSS vocabulary applies — so every value was wrong for somebody. Native was correct but left ContentBox's CSS fighting the template; Bootstrap and Tailwind fixed nothing about CSS and damaged the markup, which is why a23 had to tell people to leave imported templates on Native and give up the CSS half. Selecting Bootstrap or Tailwind now switches the field to a framework profile, which is three things together: ContentBox stops managing the grid. It moves to the mode where new rows and cells are built from / templates and existing markup is never touched. is deliberately passed empty — passing the preset name is precisely what repopulates / , and those two options are the gate on the normalisation loop that iterates every child of anything classed with no check. With , , and all empty, falls through both branches, so the rewrite is structurally impossible rather than merely discouraged. ContentBox's own shipped preset uses this mode, so it is a supported path and not a trick. Structural tools are hidden — row add/remove, the column tool, and the resize handle. Grid changes belong in code. This is a UI restriction in the same spirit as ; the engine-level guarantee is (1). Deliberately not , which would suppress the same tools but also make return null for everything inside it, taking the button label and URL panels with it. A tailored stylesheet is served (below). Native is unchanged — same tools, same CSS, same insertion behaviour. Existing / values keep working and simply mean something better, so there is no migration. Switching a field converts nothing in either direction, and imported sections do not need re-ingesting. Known trade, stated plainly: under a profile, column drag-resize no longer swaps → . In ContentBox, resizing and the layout rewriting are the same mechanism, gated on the same options — you cannot keep one without the other. Resizing is done by editing classes. Added Framework-profile stylesheets, generated by and committed alongside the stock sheets. ContentBox's utility classes are Tailwind: its CSS defines , , , , , , and one rule still emits . carries a compiled Tailwind subset. On a Bootstrap site those class names collide and the values differ — Bootstrap's is 1.5rem, ContentBox's is 1rem. That is the same root cause as a27's button bug, where ingest's stamp activated ContentBox's Tailwind spacing on Bootstrap-classed anchors. Most of the collision resolves itself: of 420 bare single-class utility rules, 313 carry no and Bootstrap's own utilities are by design, so the host already wins. The profile sheets therefore apply exactly one operation — remove from the ~148 rules whose class names belong to the host framework. Nothing is deleted and no value is rewritten, so ContentBox's value still applies wherever the host defines nothing, and the failure mode of any mistake is a style losing rather than a style being wrong. The generated sheets differ from stock by 180 removed tokens and nothing else, verified by stripping every from both and comparing byte-for-byte. Grid-vocabulary collisions ( , ) are deliberately not handled this way — they need scoping rather than weakening, and already does that with detection on both surfaces. Fixed The framework value was read in four places that disagreed. EditorFrame's chrome resolved per-field over global; did the same for the canvas but the canvas URL never carried , so it silently fell back to the global setting — a field overriding to Tailwind got the Tailwind builder and native CSS. read the global value only, so the front end could disagree with the editor about the same field. And passed no framework at all while its canvas (which reuses ) did get the framework stylesheet, so the builder ran native against a Tailwind-styled canvas. All four now call , and the canvas URL carries . This is the \"one value living in several places\" shape that produced most of the Nav Builder's bugs. is gated to native. It exists to repair the rounding ContentBox's framework conversion produces; under a profile that conversion never runs, so it had nothing to repair and rewriting a template's own classes would be the exact damage the profile prevents. Documentation rewritten again — it was corrected earlier the same day for semantics this release replaces. now says to set the framework to match the import, and says plainly that older advice to stay on Native was correct for the old behaviour. [2.0.0-a28] — 2026-09-03 Fixed Imported sections were still accumulating empty pairs — a26 fixed the smaller half of the bug. a26 established that an element is a ContentBox rich-text CONTAINER, so CB injects a into whatever is marked, and marking a is therefore illegal. What it did not follow through: the same auto-close happens whenever the marked element merely sits inside a . The parser closes the open ancestor at the injected tag, ejects the text as a sibling, and leaves a husk — and the marker survives, so it repeats on every save. -> <p><span class=\"… edit\"></span></p><p><br></p><p>Beauty salon focus on</p> Marking an inline element inside a is unaffected and still supported: a inside a is invalid nesting, but with no open there is nothing for the parser to close, so it round-trips. It is specifically the ancestor that does the damage. ContentBox's own block library agrees on the shape — every in it sits on a , and not one appears inside a . still contained . a26 removed it from for exactly the p-inside-p reason and missed this list, so a button sitting in a — the ordinary shape for a CTA in a marketplace template — had that marked as a rich-text cell and produced the same accumulating husk ( ). a26's promote-the-paragraph's-parent rule could swallow a whole column. The guard against promoting a layout element was , which tests for / / / / . An imported Bootstrap cell carries , and only gains if the adoption pass has run — which it does not, being switched off. So a single loose anywhere in a column promoted the entire column to one editable region and collapsed every finer marker inside it: a hero column holding a heading, an accordion and a CTA became one rich-text blob, and CB would flatten the accordion's markup into paragraphs. The fix is not to treat every Bootstrap cell as structural — a cell holding only copy is a perfectly good editable region, and Crafto's is one whose marking is what makes that section's text editable at all. The question the rule needed to ask is what the cell contains, so promotion now requires : inline formatting, paragraphs, headings, lists and images only, with any layout class or plugin disqualifying the cell. Known cost, stated plainly. Where a loose has no legal cell — its parent also holds structure — the paragraph is now left uneditable rather than marked. In the reported hero that means the eyebrow line and the CTA label are not editable after re-ingest. Making them editable requires wrapping the paragraph in a , which this pass still deliberately does not do; that is a separate change with its own DOM-shape risk, to be decided and verified on its own. Re-ingest a section to clear pairs already accumulated. Notes Marker safety is now expressible as one invariant, and it is the thing to test against after any change to or the cell passes: no element carrying may be a , or have a ancestor. [2.0.0-a27] — 2026-09-03 Fixed Ingest no longer stamps on imported buttons — it was silently repadding every one of them. ContentBox's never reads . It takes , rejects anything inside / / / , returns a outright, drops an image-only link, and otherwise decides purely on computed being block, inline-block, flex or inline-flex. The attribute did nothing for editability — a comment in the button-cell pass had said as much for some time; it is now verified against the 6.0.0 bundle. It was not merely inert. carries 32 rules shaped , covering – and – . – and – are also Bootstrap 5 spacing utilities, and Bootstrap's are too — so on both applied and ContentBox's (0,2,1) beat Bootstrap's (0,1,0). Stamping the attribute is what made the selector match, so ingest was overriding the template's own button padding with ContentBox's values on every import. The failure was invisible in the editor, which is why it lasted: the canvas loads only, and those 32 rules live in , which only the front end loads. Buttons looked right in the editor and were repadded on the page. Button detection is unchanged — computes it from tag and class tokens before anything is written, so the editable button cells are found exactly as before. A the template author wrote is left alone and still honoured as a detection signal. Removing our own stamp is also correct for accessibility: on an with an announces a link as a button while keeping link semantics and no Space activation. Re-ingest to clear the attribute from sections already imported. Added CSS Cascade Layer (Advanced Settings, default off). Loads ContentBox's two base stylesheets inside a CSS . An unlayered author rule beats any layered one regardless of specificity, so the site's own CSS — and an imported template's — wins by construction rather than by whichever stylesheet happens to load last. It addresses a genuine inconsistency rather than a preference. PageCraft injects ContentBox's CSS at the fieldtype's output position on the front end, i.e. after the theme's , but the editor canvas links it from 's head with the template's CSS appended after. Where a rule ties on specificity — at (0,1,0) against Bootstrap's , also (0,1,0) — source order settles it, and source order is opposite on the two surfaces. The same markup can therefore lay out one way in the editor and another on the page. Off by default, and worth testing before enabling. A layer is document-global; it cannot be scoped to imported sections. So it also deprioritises ContentBox against the host theme for native PageCraft blocks, and a theme with broad / / rules will override block styling it currently loses to. That regression surface is the reason this is a setting rather than the new behaviour. On the inversion inside layers (a layered beats an unlayered one): of the 277 rules in whose selector touches / / / , 270 are scoped to ContentBox's own class vocabulary ( , , , ) that a marketplace template never uses. Seven can match arbitrary markup, and in the one that matters most the is not — only the adjacent . The inversion is real and small, and it does not cover the rules this setting exists to fix. Requires Chrome/Edge 99, Firefox 97 or Safari 15.4 (all March 2022). An older browser drops the entirely rather than falling back, taking ContentBox's CSS with it — a further reason for the default. Changed Both surfaces now emit ContentBox's base stylesheet tags through one helper ( ) instead of writing the tags in three places. Writing them separately is how the two came to disagree. With the setting off the output is byte-identical to a26. Documentation The Grid Framework docs still told people to break their imports. a23 corrected the setting's own help text in the CP but not , which the CP's Documentation page renders — so Settings said \"leave imported templates on Native\" while Documentation, two clicks away, said to set the framework to match the template, and gave that instruction its own heading in the import guide. Both files predated the finding. now leads with what the setting decides (who owns the grid, not which CSS the site loads) and shows the failure concretely; is inverted to match. Corrected a claim in the same page that selecting a matching framework means PageCraft \"no longer has to inject compatibility CSS\". It does regardless — answers a class-name collision that exists independently of the setting, and is injected on both the front end and the canvas. Three code comments claimed the editor canvas does not load . It does, via . In two of them that was the stated reason the canvas-only dance is safe; the conclusion survives on different reasoning, now recorded. The rule those notes called unanswerable — at (0,2,0) — is ContentBox's mobile stacking rule, scoped to . still advertised the ContentBox 5.x core. [2.0.0-a26] — 2026-09-02 Fixed Imported paragraphs no longer accumulate empty pairs on every save. Ingest marked elements as , but ContentBox treats such an element as a rich-text container and normalises its contents into paragraphs — so it put a inside a . That is illegal; the parser auto-closes the outer one, leaving the marked paragraph empty with its text ejected as a sibling and a placeholder in the husk. The marker survived, so the cycle repeated on every save; sections were found carrying eight empty pairs and growing. A is now marked through its block parent instead, which can legally hold paragraphs. Headings are unchanged and still mark themselves — only a auto-closes a , so round-trips intact, which is why headings never showed the problem. Two deliberate consequences. Where there is no legal cell — an inline or structural parent — the paragraph is left alone rather than marked or wrapped, because this pass does not create wrapper elements and an accumulating paragraph is worse than an uneditable one. And promoting a parent collapses any marker already sitting on a descendant, since the guard that prevents nested editable regions cannot see a parent that is marked later in the walk. Editing is therefore one region per cell rather than one per element: coarser, and the same shape ContentBox's own blocks use. Re-ingesting a section clears any pairs already accumulated. [2.0.0-a25] — 2026-09-02 Fixed The a24 canvas shim relaxed far too broadly. is a Bootstrap utility used throughout ordinary layouts, not just by JS-sized full-height sliders — Crafto's interactive banners put over a slide image to hold its caption, and collapsing that detaches the overlay from the picture. The rule was carried over from per-site shims where it only ever applied to . It is now scoped to inside a full-height or fullscreen slider context, which is the case that actually depends on JS sizing. a24 shipped this and should not be deployed. [2.0.0-a24] — 2026-09-02 Added Sliders and reveal animations now render in the editor canvas. Ingest registers a page's tags as canvas assets, so a slider's library loads — but it skips inline , which is where templates call , and bundled init code runs on , long before ContentBox injects the section via . The library was therefore present and never initialised, and an uninitialised slider is a flex track whose slides have no width and whose wrapper collapses to zero height: the section rendered as an empty band that could not be clicked into. Reveal libraries failed from the other direction, their CSS hiding the element until a class arrived that never did. lays these out statically rather than trying to run the JS — deliberately, because a working carousel in the editor moves content under the cursor mid-edit and leaves every slide but the first unreachable. Covers Swiper, Slick, Owl, the reveal libraries (Crafto's , plus , , ), full-height wrappers that size themselves from the viewport, and restoration on parallax/mask/hover-zoom wrappers, which templates disable during animation and which otherwise makes their images impossible to select and replace. Scoped to — added to the wrapper by the builder at init, so the front end never carries it — and injected into the canvas document only. Slide width is exposed as (default 300px) so a site can retune it from custom_css without a patch. This bundles the library-generic half of shims that previously existed only as a per-site database row, where they were neither versioned nor discoverable. The Arts/Kinsey-specific selectors stay per-site. [2.0.0-a23] — 2026-09-02 Fixed Imported Bootstrap templates keep their responsive grid. With Grid Framework set to , ContentBox normalises every it finds — the loop iterates the row's element children and skips only its own tool elements, with no check — so every child of anything classed was assigned a width class. Bootstrap's own is the trigger, so this fired on every Crafto import. A six-breakpoint ladder came back with a conflicting appended, resolved by Bootstrap's source order rather than the design, and the same pass restructured cell contents, hoisting the out of an so labels stopped being editable. The fix is a setting, not code: imported templates need Grid Framework = native. The setting's own help text had been recommending the opposite (\"Match this to the framework your section templates use\"), which is what put the test site on bootstrap; it now leads with what the setting actually decides — who owns the grid, not which CSS the site uses — and shows the failure concretely. Also mentions the per-field override, which it never did. Added Per-section thumbnails read from the ingest ZIP. Previews were never read from the ZIP at all: the only slot was a single image posted alongside it, applied to the first section, with everything else getting a generated placeholder. Ingest now pairs an image to each section by the HTML file's basename — for — looking in a directory beside the HTML, then at any ancestor up to the ZIP root, then as a plain sibling. Format preference is webp, png, jpg, jpeg, gif, svg. Pairing is on the filename rather than the section name because the name comes from the first heading and moves whenever the copy does. Ancestors are walked rather than only checking the root because compressing a folder (rather than its contents) puts the package one level down, where a root-only rule finds nothing and silently substitutes placeholders. No extraction code was needed — every image extension is already an ingest asset, so the file is written under the same relative path and the thumbnail is just its URL. SVG previews inherit the existing check. Precedence is ZIP preview, then the paired upload, then the generated SVG, so anything imported previously is unaffected. Changed Bootstrap column adoption ( ) stays off but is no longer described as blocked. The canvas-only machinery it needs is in place and inert; under native Grid Framework the width rewriting is gated off, so it is plausible rather than doomed. It was never required for editability — imported content edits fine without it — and only buys column selection tooling. [2.0.0-a22] — 2026-08-31 Fixed Structure-driven navs no longer hardcode into every link. composed each href as unconditionally, to match Structure's \"View Page\" button. That button is a CP convenience which has to resolve whether or not URL rewriting is configured, so is right for it; a public site nav is the opposite case and has to match the URL form the site actually serves. It now defers to , so a default install keeps and a site with blanked gets clean URLs — both correct without the method knowing which case it is in. The home page is fixed as a side effect: its URI is stored as , which left the path segment empty and produced — the site root dressed up as a path. The existing guard only caught entries with no Pages URI assigned, never the root itself. A nav in an entry's PageCraft field is re-derived at render time. The injection step was a private method on the module class, and that class only renders global components — so the global header/footer got current nav hrefs while a nav placed in an entry field shipped whatever was baked into the saved markup when it was authored. The editor canvas fetches the nav live from the preview endpoint, so it showed correct URLs the whole time and the published page showed stale ones. and its three helpers moved to , beside the they already depended on. All three render paths now share it, which makes the \"editor preview and front-end nav can never drift\" claim in that file's docblock true rather than aspirational. Mobile nav: a dark nav with both an alt-logo and a mobile-logo showed two logos. takes the specificity of its argument, so the rule hiding the alt-logo is only (0,4,0) and lost to the dark theme's at (0,6,0). The fix restates the hide at dark's own weight. This regressed once before: the dark-theme conversion in a20 treated it as a no-op because its value matched the base rule's, without noticing it existed to out-rank a third rule rather than its own base. The rule now carries a note saying so. Mobile nav: hover styling. Two causes. The same no-op sweep removed 's background, which was the only rule out-ranking and its fallback — so dark navs picked up a light-grey hover. That is restored as a token rather than a property rule, matching how the rest of the dark theme works. Separately, thirteen hover/focus rules were unscoped, so every desktop pointer affordance also applied inside the mobile panel. The worst was : on a touch device a tap latches , so it opened dropdowns while the panel's own toggle was also driving them. All thirteen now sit inside . Wrapping changes only where a rule applies, not its specificity or source order, so desktop rendering is unchanged — verified by diffing the declarations that apply at 1200px before and after. The three outlines stay unscoped, so keyboard navigation on mobile is unaffected. The editor canvas and the published page now render embedded templates the same way. is shared by both paths and its docblock said sharing it \"guarantees the canvas preview can never drift from what the published page renders.\" That was true of the code and false of the inputs: the front end passed a parent-entry context, the canvas passed none, and unknown keys resolve to an empty string. So an embed targeting rendered correctly on the page and showed nothing in the editor — the one thing a preview exists to prevent. The entry now travels the chain the plugin already uses: the fieldtype puts it on the editor frame URL, the frame appends it to the template-render URL it injects into the canvas, and the preview endpoint builds the same two-key context the front end builds. A new unsaved entry and the playground scratchpad have no entry, so the context is empty there and behaviour is unchanged. Changed Imported images inside links are editable. Ingest skipped any with an ancestor, so a linked image arrived with no way to replace it — and that is a common shape rather than an exotic one: portfolio and blog cards, logo grids and product tiles are all a link wrapping an image. For scale, 24% of the images in the shipped Simple Start pack sit inside a link. ContentBox's \"only ever edit an as a button\" rule is about the anchor, not about a child of it, so the image is now marked like any other. The surrounding link is left intact rather than unwrapped: unwrapping works but destroys markup in saved content and cannot be undone by re-importing. Content width is a setting, not a constant. was a literal in two places, forcing a 1200px content width on every import whatever the source design intended. Imported Content Width now sits on Advanced Settings, defaulting to the old value so an install that never touches it imports exactly as before. Both the DOM and regex paths resolve it through one method, so they cannot drift. Only a width ContentBox actually defines a rule for is accepted — the vendor CSS carries plus every 20px step from 300 to 2700, and as a one-off. Validated on save and again on read, because a value outside that set would be written onto every imported section and do nothing at all, and a silent no-op is worse than a rejected save. Lazy-loaded images are resolved at import. Imported markup kept whatever lazy scheme the source theme used, and the canvas compensated with a MutationObserver sweep — which fixed the view, not the content: the section saved to the library still had no . Import now promotes / / to , to , and and friends to an inline , using the same attribute list the canvas shim sweeps. A real attribute always wins, so a theme shipping a deliberate placeholder keeps it. The shim stays for content imported before this. [2.0.0-a21] — 2026-08-31 Added A mobile menu with a design behind it. The mobile nav was previously whatever the desktop stylesheet happened to do below 768px. It is now a deliberate full-screen overlay, built from the Figma \"EE-mock\" frames: a centred column of left-aligned links, / disclosure indicators in place of the chevron, a rule under an expanded parent at 25% of the link colour, and a submenu that sits flat against the overlay rather than in a panel of its own. Four treatments were built and three removed. Sheet, drawer and panel each restyled the same shared elements from a different direction, and keeping them all switchable is what made every correction collide with something else. The overlay is the one that works, so it is the one that ships — there is no Mobile Layout setting, because there is no longer a choice to make. Mobile-specific typography and colour. A MOBILE tab on the Nav Items modal: Menu Background, Text Color, Text Size, Text Weight, Divider Color and Divider Opacity. Each falls back to its desktop counterpart, so leaving a field alone means \"follow desktop\" rather than \"reset to a default\" — you set only what should differ. The page no longer scrolls behind an open menu. Derived from document state rather than one nav's own, so a page carrying two nav sections cannot unfreeze itself by closing the wrong one, and set inline as well as by class so a host theme's own on / cannot defeat it. Auto-fit for a crowded bar. is and the links keep , so nothing in the bar compressed — once the contents exceeded the width they simply ran off the right edge. The bar now degrades in order: tighten spacing, drop social icons, drop the CTA, and only then step the link type down. Every evaluation re-derives from a clean slate rather than measuring its own degraded state, which is what stops the hide/show oscillation that approach otherwise produces. Changed The dark theme supplies values, not properties. Every dark default was a property rule at (0,5,0)–(0,6,1) and unscoped, which meant it outranked anything a variant, a breakpoint or a setting wanted to say about the same element — silently, and regardless of intent. That one pattern produced six separate bugs in a single sitting: two logos on a dark nav, the overlay's dividers and banded rows, the submenu bleeding a panel background through the mobile menu, an invisible close button, a barely-visible ✕, and a toggle colour that could not be overridden. Thirty-three such declarations are now seven. Twenty-four dark defaults moved into tokens declared once, four were deleted as exact restatements of the base rule, and nineteen emptied rules went with them. Dark can still change what something looks like; it can no longer decide who else is allowed to. A rule wanting to override a dark default now only has to be more specific than the BASE rule. The seven that remain are genuinely dark-only — the submenu's backdrop filter, the logo-variant swaps, a drawer border — with no light counterpart to be the default of. Fixed A parent item is no longer a link. Tapping a nav item with a submenu navigated to its page instead of revealing its children, which on a phone made the children unreachable unless you happened to hit the indicator. The href is kept for desktop, the keyboard path and crawlers; only the mobile tap is redirected into the disclosure. The mobile menu meets the bar. Its offset assumed the bar's bottom edge sat exactly from the top of the viewport, which is untrue whenever anything offsets the bar. The anchor is measured now. Relatedly, the bar's was creating a containing block for descendants, so the menu and its scrim resolved against the 60px bar rather than the viewport; the filter is suspended while a menu is open. A dark nav no longer shows two logos. With both an and a defined, the rule hiding the alt at -weight lost to the dark rule showing it, and both rendered. Several rules that read correctly and lost. The mobile bar height set a property on one consumer while three others kept the desktop value; the submenu chevron was positioned against an element that grows when the submenu opens; the toggle had no containing block, so the collapsed landed in the middle of the row while the expanded was correct by accident. [2.0.0-a20] — 2026-08-29 Changed Nav Builder settings now live in one place. The Nav Builder's controls were split across two surfaces — ContentBox's slide-out panel held layout and appearance, while the Nav Items modal held every colour and spacing control. Which half a given setting lived in was not predictable from the setting. All eleven style controls move into the Nav Items modal, which grows a LAYOUT tab to hold them: Tab Now also holds GENERAL Active Style, Menu Item Radius TEXT Font DROPDOWN Dropdown Radius LAYOUT Layout, Behaviour, Nav Height, Horizontal Padding BAR Theme, Shadow, Bar Width The slide-out keeps Source (Manual / Structure), which belongs with the item editor beside it rather than with styling. Existing navs need no migration. The moved controls still persist to the same attributes ContentBox was already using — the storage did not change, only where the control is drawn. A nav saved before this release reads back identically. The eleven settings stay declared in the plugin's schema, marked , rather than being deleted. ContentBox's ignores , so it still reads the attributes and still hands them to ; and because its only harvests rendered inputs, a hidden field can never be overwritten by a panel save. The schema also stays the written record of each setting's type, default and options. Added Content Size for the nav bar. The nav's boxed width was a hardcoded with only a Boxed / Full Width toggle beside it. ContentBox has a Content Size control for sections, but it targets and the nav has none — so it could never reach the nav bar. The BAR tab gains a Content Size slider (960–1920px). It drives a new , and — declared in the stylesheet since the floating-bar work but never actually set from JavaScript — now derives from it, so a floating pill and the content inside it size together instead of drifting apart. Unset falls back to the same 1400px the rule used to hardcode, so existing navs are unchanged. Bar Width = Full Width still removes the constraint entirely, and below 768px the bar stays edge-to-edge regardless — both noted under the control. A Default link on the new sliders. Once a range input has been dragged there is otherwise no way back to \"not set\", and not-set is what lets a stylesheet fallback apply rather than a value being pinned. Content Size, Nav Height, Horizontal Padding, Menu Item Radius and Dropdown Radius each carry one. Fixed Two different controls were both labelled \"Width\" in the Nav Items modal. GENERAL has a per-item Width (Auto / Full); the bar-level one added here is now Bar Width. [2.0.0-a19] — 2026-08-28 Added A real image library in the public demo. Every \"choose an image\" in the demo used to fall through to an upload, and an upload there has no server to go to — it is inlined as a base64 data URI. On the live demo one photo had become a 2.1 MB blob: the HTML tab measured 2,162,785 characters, 99.7% of it base64, with roughly 6,400 characters of actual markup buried underneath. That is the one panel whose entire job is to show that PageCraft stores plain, portable HTML, and it was demonstrating the opposite of both claims printed beneath it (\"the exact markup PageCraft stores\", \"images kept as EE's portable file references\"). is now a curated picker of 24 real image files, wired in through ContentBox's own option — which propagates to , , , and , so all 16 bundled plugins that call are covered by one setting. It uses the same contract as the real install's . Upload survives as a button inside the picker, since seeing your own photo land in the page is worth keeping. Measured after the change, same flow: 2,638 characters, 0% base64, one ordinary reference. This replaces the hooks rather than joining them. They cannot coexist — checks those hooks before , so leaving even one would silently keep routing that asset type to an upload. Fixed Demo build no longer inflates the images it ships. Two compounding traps, both found by measuring the output rather than trusting the tool: resizes to fit a box and so happily scales a small image up, which turned the 2.3 MB source set into 5.0 MB; and re-encoding an already well-compressed JPEG makes it bigger (one 59 KB file came back at 103 KB), which still left 3.0 MB after the upscaling was fixed. The build now converts PNGs, resizes only genuinely oversized images, and copies everything else untouched — 24 images, 2.3 MB in, 2.1 MB out, none exceeding 1600px. Images are sourced from the full-resolution originals in the repo, never from a release package or deployed theme: the release build downscales and de-duplicates block images, collapsing 194 files to 33 distinct with one placeholder repeated 54 times. Seeding from there would have produced a library of near-identical stubs. [2.0.0-a18] — 2026-08-27 Added Scroll-aware nav theming. A new Theme option, Match section, makes the bar re-read whichever section sits under it as you scroll and switch its own light/dark treatment to suit. Because it toggles the same class the other themes use, the logo variants ( ) swap over with it for free — a dark logo over a light section, a light one over a dark section, with no extra configuration. Resolution runs in precedence order: / on a section — an explicit instruction. Markers only, with no styles of their own, so adding one can never change how the section itself looks. The prefix keeps them clear of Bootstrap, Tailwind and site CSS. ContentBox's own Text Color classes, / . These are not decoration we're borrowing: the editor's Text Color control writes them onto a section, box or column as you pick, so anywhere the Text Color has been set, the nav already knows what it's over with no extra markup. The shipped template packs also bake them into 71 sections (templates-simple 41, templates-quick 20, templates-animated 10). The block packs barely use them — a block gets its Text Color from the user in the editor rather than from the pack — so on a page built from blocks this tier is only as good as the Text Color choices actually made, and the markers in tier 1 are how you fill the gaps. No match — hold the current treatment rather than snapping back to light, so an unmarked gap between two marked sections doesn't flicker. Note the fallback's mapping is inverted from how it reads: the classes describe the text, the nav responds to the background behind it. Light text implies a dark background, so asks for a dark nav. The section is sampled at the bar's bottom edge — the boundary a reader perceives the nav as sitting against — so the switch lands as a section's top edge passes under the bar, not a nav-height early. The nav's own section, its ancestors, and anything inside the bar are excluded from the search: a fixed bar overlaps its own section, and that section carries a Text Color control like any other, so without the exclusion the nav resolves against itself and the theme locks on whatever it started as. [2.0.0-a17] — 2026-08-27 Changed An unlocked global header or footer now says so. renders only a locked component — locking is the publish switch, not just an editor guard — and returned an empty string otherwise. A configured header that produces a blank page is indistinguishable from a broken tag, and \"lock it\" is not guessable from that symptom. Both tags now emit an HTML comment saying whether the component is unlocked or has not been created. The two tags share one implementation. was a near-copy of differing only in the component key, and had already drifted — it never received the unlocked-state handling. Both now call one , so they cannot disagree about what publishing means. [2.0.0-a16] — 2026-08-27 Nav Builder rebuild, phase 4: undo. Added Nav edits are undoable. Opening the CTA-button editor or the nav-link styling modal now registers an undo checkpoint, so Ctrl/Cmd-Z returns the nav to its state before you opened the dialog. Checkpointed on open, not per change: those modals' update handlers fire on every keystroke and slider drag, so checkpointing there would bury the undo stack in hundreds of single-character steps. Only the modals opened from needed it. Edits routed through 's are already checkpointed by ContentBox, which calls inside the callback it hands the plugin — adding our own would produce two undo steps for one change. [2.0.0-a15] — 2026-08-27 Fixed Uploaded images were rejected as \"not an image\" in the demo — including SVGs. ContentBox validates a chosen asset by looking for or in the URL, or a known image extension on the end. produces neither, so every upload failed that check regardless of file type; SVG was simply where it got noticed. Uploads are now read as data URLs, which carry (and for SVGs) and pass. Data URLs also survive the localStorage restore. Object URLs are per-session and dangle after a reload, so images added to a demo page used to disappear on refresh — that limitation is gone rather than merely documented. Because the bytes are inlined into the page HTML, uploads are capped at 2 MB with an explanatory notice; an oversized image would otherwise blow the storage quota and lose the visitor's work on save. Every \"choose an image\" control in the playground now uploads. 16 of the bundled plugins call — swiper-slider alone has 8 call sites — and with no , or configured, ContentBox's falls through to nothing. All of those buttons did nothing on the demo, not just the nav's. Fixed centrally: the demo supplies the hooks, which checks before the file picker, so all 16 plugins are redirected at once. Fixing each plugin instead would have meant 26 edits and a second selection mechanism to keep in step — the duplication that caused most of this release's bugs. a14's plugin-local upload fallback is removed in favour of that. The nav now always defers to ContentBox's asset flow and lets the host decide what choosing means; button wording still reflects which it will be. Object URLs are per-session, so an image added in the demo survives editing but not a reload. Same limitation drag-and-drop already had there. [2.0.0-a14] — 2026-08-27 Fixed Image fields fall back to an upload where there is no asset library. The nav's logo fields called unconditionally. The editor configures , so it gets the EE file manager — but the public playground deliberately omits it, and ContentBox's falls through to nothing when no , or handler is set. The Browse buttons there simply did nothing. Selection now goes through one helper: the asset library when one is configured, otherwise an upload from the visitor's machine. The upload path prefers the host's own handler, so the result matches what drag-and-drop produces in that context — an object URL in the playground, a real upload on an install. Buttons and placeholders read \"Browse\" or \"Upload\" to match what will actually happen. [2.0.0-a13] — 2026-08-27 Fixed The public playground never registered ContentBox plugins, so anything built on one rendered as unstyled markup. copied and injected only a tag, leaving the bare it ships with — and with no map the runtime loads no plugin JS or CSS at all. patches that call for the real editor; the demo build did not. Most visible on navs: every nav in is a plugin (23 of them), so picking a template with a nav produced a nav that appeared not to render. The demo canvas now registers all 54 plugins, derived from the source theme's rather than a second hardcoded list. The build warns if a future no longer contains the call it patches. Fixed The Mobile Logo Size setting now does something. At 768px and below the logo height was hardcoded to (and for the rounded crop), overriding both the shared Logo Size and the new mobile one — so the field added in a12 was inert. Both now read . Blank still means 32px, exactly as before, so navs that never set a mobile size are unchanged. The difference is only that setting one now takes effect. The rounded variant is a square crop, so its width tracks the same value. Tablet (769–1024px) still hardcodes / . Left alone deliberately: that width shows the standard logo and has no field of its own, so changing it would alter existing sites with nothing to gain. [2.0.0-a12] — 2026-08-27 Added Light, dark and mobile logo variants. A nav can now carry up to three renditions — the standard logo, one for dark backgrounds, and a compact mark for narrow screens. ContentBox has no mechanism for this: stock supports text or a single image, and there is no or dark-image handling anywhere in the bundle. Bootstrap has none either; the three-image swap is a theme convention. Every supplied rendition ships in the markup and CSS picks one, following the / / convention. Doing it in CSS rather than JS means the swap follows the class however it arrives — including the theme, which toggles that class on scroll. Missing variants fall back rather than blanking the logo. only hides the standard logo when a replacement actually exists, so light-only navs behave exactly as before in dark mode and on mobile. Mobile outranks theme when both apply. Existing navs are unaffected. They carry a bare with no variant class, which nothing hides; it gains on the next save. Light and dark share the Logo Size — they are one lockup in two colourways. The mobile mark gets its own optional size, falling back to the shared one. Alt text is shared: the renditions are the same logo, and only one is ever visible, so a screen reader announces it once. Framework-neutral. The nav plugin emits its own class names and doesn't branch on framework; the bundled Tailwind build has no bare rules, and these rules outrank a Preflight reset (0,3,0) and (0,6,1) vs (0,0,1). [2.0.0-a11] — 2026-08-26 Fixed A floating nav bar stayed a pill on mobile. No rule below 768px touched , so the margin, radius and Width constraint applied all the way down — stranding the hamburger in a wide empty bar and wasting vertical space. A floating bar now goes edge-to-edge at 768px and below. This is a layout reset rather than a style override: colours, height and logo sizing still apply. The mobile menu panel dropped from a hardcoded , unrelated to the real bar height — so it overlapped the bar at the 70px default and drifted further with a taller logo. Both the mobile and hamburger panels now track . Notes There are no per-breakpoint settings today: all 12 settings apply at every width, and mobile appearance is governed by the stylesheet's media queries. Adding mobile-specific controls is a phase 2 decision. Removed (2.3 MB) and (430 KB) no longer ship. PageCraft loads , which already contains ContentBuilder; nothing loads the standalone bundle. The three mentions of it inside are exclusion filters (keeping editor scripts out of preview/export) and a probe that returns undefined when the tag is absent — none of them fetch it. is loaded and is kept. The pair are strays from a ContentBuilder package, never part of the ContentBox distribution. Excluded at build time rather than deleted, so the repo stays a faithful vendor mirror. Re-verify on each ContentBox upgrade — if a future release starts loading it, this exclusion would break the editor. Install drops 42 → 40 MB. The zip moves only 20.0 → 19.2 MB: minified JS compresses about 5:1, so the win is on disk rather than in the download. Notes For the record, since it comes up: the zip is 70% picker thumbnails ( 7.7 MB / 40%, 5.7 MB / 30% compressed). Demo content images are 1.8% — 1.1.22 already replaced them with flat placeholders that compress to nearly nothing, so swapping those for remote placeholder URLs would save around 0.3 MB and would make customer pages depend on a third-party service. [2.0.0-a10] — 2026-08-26 Nav Builder rebuild, phase 3 (first pass): theming by value, not by rule. Fixed Dropdown Background was ignored in dark mode, and on mobile and hamburger in both themes. Six rules set the submenu's background and only one of them consulted ; the other five hardcoded a value at higher specificity, so the setting was written correctly, shown as applied, and had no effect. The base rule now reads , and every themed or variant rule sets as a value instead of setting as a property. A value cannot outrank the user's inline , so the setting always wins — the divergence stops being expressible rather than merely being corrected. This is the shape the rest of phase 3 will follow. v1.1.23 fixed five of these by hand; the remaining hardcoded rules are theme chrome with no user setting behind them yet, and become relevant when phase 2 makes them settable. Notes still hardcodes its active colours in both themes. Left as-is: that is arguably the variant's own active state rather than the base link colour, and is worth a deliberate decision rather than a sweep. [2.0.0-a9] — 2026-08-26 Changed Removed Delete from the nav item hover toolbar. Removing a menu item already belongs to the slideout's item list, and a second delete sitting on a hover toolbar over live content was easy to hit by accident. The toolbar now offers Edit and, for CTA buttons, Edit URL. The Structure-mode special case that hid the delete for read-only menu sets goes with it. The toolbar is now a fully rounded pill with circular buttons. [2.0.0-a8] — 2026-08-26 Fixed \"Distance from Nav\" was measured from the link, not the nav bar. carried only , so it was as tall as its link and sat vertically centred in the bar. The submenu's therefore started somewhere mid-bar, and the configured distance was added to whatever arbitrary gap the link's padding and the bar height happened to leave — so the same setting produced a different gap at different bar heights. now spans the bar height ( ) and centres its link, so is the bottom edge of the bar and the distance means what it says. The link keeps its own padding, so nothing moves except the dropdown's origin. Scoped to horizontal navs: in the mobile and hamburger variants the submenu is and sits in normal flow, where making the item a flex row would put it beside the link rather than under it. Both reset to block flow. [2.0.0-a7] — 2026-08-26 Fixed Setting a bar margin silently disabled every nav dropdown. A floating bar carried , and submenus are inside , whose containing block sits inside that wrapper — so the clip removed them entirely. The rule existed to keep content inside the rounded pill, but and have no background of their own, and the wrapper's own background and backdrop-filter are already bounded by its , so nothing needed clipping. ( is not an alternative: with one axis clipped the other computes to rather than staying visible.) Pre-existing rather than new, but only reachable once a bar margin is set — which the previous release made worth doing. [2.0.0-a6] — 2026-08-26 Fixed The Width setting didn't resize a floating nav bar. only set on the inner , so with a bar margin set — where the bar is a visible pill — toggling Boxed/Full Width moved the contents while the pill stayed edge-to-edge. A floating bar now takes (1400px, the same constraint the content uses) when Boxed, and spans the section minus its margin when Full Width. Only applied while floating: an edge-to-edge bar stays edge-to-edge and lets Width govern its contents, as before. Bar margins were not symmetric. applied the value to all four sides and the width was separately reduced by twice the horizontal margin, so the left and right insets were doubled relative to top and bottom. Vertical inset now comes from the margin and horizontal from the width reduction, with side margins centring the result — one value, four equal gaps. Vertical margins could also collapse through the section overlay (which sets ), making the gap above the bar differ from the one below. The plugin root establishes a block formatting context while floating, which contains them without clipping dropdowns. [2.0.0-a5] — 2026-08-26 Fixed A logo taller than the nav bar overflowed instead of the bar growing around it. already auto-grew to , but , and the boxed active link stayed pinned to the raw . The bar grew while its contents did not, so a 100px logo in a 70px bar sat flush against the top and bottom edges with no padding. The computed height is now a single defined on the plugin root and used by all four rules, so they cannot diverge again. Padding is (20px total, 10px each side), keeping the logo centred. The mobile dropdown's hardcoded the default bar height in two places, so the panel was mis-sized whenever the bar wasn't 70px. Both now track . [2.0.0-a3] — 2026-08-26 Changed Nav colour controls now use ContentBox's own colour picker. The nav modal used a bare , so it had none of the picker used everywhere else in the editor. It now calls , the same control as the slide-out's Background Color: hex/rgb/hsl entry, hue and transparency sliders, eyedropper, the site's brand palette, saved colours, and \"No color\". The old comment explained the workaround: CB 5.x's picker (Pickr) \"didn't reliably mount from plugin context\". ContentBox 6 replaced Pickr with its own picker — the class is gone from the bundle entirely — so the workaround no longer applied, while the native input's missing alpha, palette and saved colours very much did. \"No color\" now clears the override, which is what the paired checkbox means. The two colour-field helpers were byte-identical copies; they are now one implementation with two local names. 12 call sites, unchanged. Fixed \"Lock colors\" silently stopped working in the 6.0.0 upgrade. It hid the free-pick controls via / / — Pickr classes, all of which have zero occurrences in ContentBox 6. The setting appeared to be on and locked nothing. Now targets the current picker's classes ( , , , ), leaving the brand palette and \"No color\" reachable as before. [2.0.0-a2] — 2026-08-26 Nav Builder rebuild, phase 1 of 4: one apply path. Changed The nav's CSS-variable mapping existed twice. One copy read on mount, the other read the settings modal's state live, and a comment asked maintainers to keep the two in sync by hand. They had not drifted — but a setting added to one and missed in the other would apply live and vanish on reload (or the reverse), silently, since nothing checks. That is the same class of duplication that caused this release's plugin-registry and model-allowlist bugs. Both are replaced by a single module-level that reads only . The modal now persists its state to first and then calls it, so it only has to know how its fields map to data keys — not how those become CSS variables. 66 calls become 33. is deliberately left out of it: it must run after the section-background paint so a floating bar's own colour survives being overpainted with . Both callers still invoke it themselves. Verified equivalent rather than assumed: running the old and new mappings over a fully-populated dataset produces byte-identical output across all 33 variables, and all 33 persistence keys are preserved. Notes No behaviour change is intended in this phase. Phases 2–4 consolidate all styling into one settings surface, remove the -scoped property rules that silently override user settings, and register nav edits with . [2.0.0-a1] — 2026-08-26 Development build on the ContentBox 6 line. remains on 1.1.x for hotfixes. The version carries a prerelease suffix deliberately: it exists so changes and browsers/CDNs refetch plugin and module assets during development. The plain is reserved for the actual release. Version strings are capped at 10 characters. EE stores the add-on version in , which is ; anything longer throws part-way through the update — after the add-on's own update steps have run, leaving the install in a half-updated state that looks like a failure but isn't. leaves room through . Image attachments / vision in AI Code Chat. You can now attach a screenshot or reference image and ask the AI to build from it, rather than describing a layout in words. is enabled and both and list the full model set — every model in the allowlist accepts image input, verified against OpenRouter's rather than assumed. The proxy translates ContentBox's array into OpenAI-style multimodal content parts. Document attachments never reach it: ContentBox extracts their text client-side and folds it into the prompt, so only images need translating. Only inline URLs are forwarded — a client cannot name an arbitrary remote URL for the server to fetch on the site's shared key. Images are budgeted separately from text (8 MB total, 4 images max). Counting base64 image bytes against the 256 KB text cap would have rejected every vision request outright. Note the AI still has no web access. \"Look at example.com and copy it\" cannot work; attaching a screenshot of that page is the supported route. AI-generated pages no longer ship broken Unsplash images. The chat drives image generation through a three-call async protocol ( → → ), not the used by the insert-image flow. With those unset, ContentBox told the model \"AI IMAGE GENERATION IS CURRENTLY DISABLED — but users can still use external image URLs (Unsplash, Pexels, etc.)\", so it invented stock-photo URLs whose ids 404 — while a different part of the same prompt warns never to do exactly that. All three legs are now served by the ACT. OpenRouter is synchronous, so the work happens on the generate leg; the result is stashed against a request id (EE cache, 1 hour) and the status and result legs report it. ContentBox sends a fal.run for the server to call. It is deliberately ignored — fetching a client-supplied URL with the site's shared key would be an SSRF hole. Five image models offered, all validated against OpenRouter's live catalogue and all covered by the endpoint's own allowlist. Changed ContentBox.js upgraded 5.9.5 → 6.0.0. New -free text editing engine, markdown-style typing shortcuts, redesigned colour picker and button editor. InnovaStudio state that options, methods and events are unchanged and that content saved with earlier versions stays compatible, so this is an asset swap rather than an API migration. All seven locally patched files were preserved. , both packs and were merged three-way against the 5.9.5 baseline; the only real conflict was 6.0.0 renaming to , resolved to the new name while keeping PageCraft's slide-to-newest behaviour. The module cache-buster was re-applied to the new at its three fetch sites. (Nav Builder) was not taken from 6.0.0. It is a PageCraft fork that has diverged too far to merge; the vendor's rewritten plugin is preserved under as the baseline for rebuilding it, which is the headline work still to come on this line. Fixed 21 ContentBox 6 plugins were insertable but inert. is a hardcoded allowlist, and a plugin folder present on disk but missing from it is never registered with the runtime — so its blocks drop into the page as dead markup. Registry goes 33 → 54, matching the on-disk set exactly. Affects , , , , , , , , , , , , , , , , , , , and . The editor and the front end could disagree about which plugins exist. carried its own duplicate copy of the plugin list rather than calling the shared registry, and had already drifted from it. It now calls , so there is one source of truth again. The AI model picker silently downgraded Claude Sonnet. The allowlist carried ; OpenRouter spells it , so selecting it fell back to the default model with no error. All model ids are now validated against OpenRouter's live catalogue. Added AI Code Chat is reachable. ContentBox ships no sidebar button for the AI panel — it is exposed only through the public API, so setting alone wires up the backend and leaves the feature invisible. An AI Assistant button now sits alongside Animation, Timeline and Clear, shown only when the setting is on. Model lists refreshed to current OpenRouter offerings (Claude Opus 5 / Sonnet 5, GPT-5.6 Sol / Luna, Gemini 3.x). and the editor's picker are a matched pair and must also cover and ; both now agree exactly. Fixed The AI endpoints could never have worked. and were registered with , but ContentBox issues those requests itself with only a header and no EE XID. EE rejected them with \"This form has expired.\" before PageCraft ran at all — so the first AI prompt would have failed with an HTML error page rather than a response. All three AI ACTs are now , with an Origin/Referer check ( ) standing in for CSRF, exactly as the and endpoints already do. Each also still requires a logged-in member with , so a forged cross-site request cannot spend the site's API credits. Added AI image generation now works. previously advertised while no image provider was wired at all, so the control appeared and silently failed. A new ACT ( ) proxies text-to-image to OpenRouter's endpoint using the same key as chat, and is wired to ContentBox's synchronous path. The generated image is written into the configured EE upload destination and registered in , so AI images appear in CP > Files and behave like any other uploaded asset. Image models are allowlisted the same way chat models are, so a tampered request cannot bill an arbitrary model. Default is (Nano Banana), the cheapest option. is set to : OpenRouter has no upscale endpoint, and leaving it on would make ContentBox chain a second call to a URL we do not serve. Known limitation: OpenRouter's images endpoint takes no width/height, so ContentBox's requested dimensions become an aspect-ratio hint appended to the prompt. Its Stable-Diffusion-era parameters ( , , , ) have no equivalent and are ignored. Changed Sidebar Animation/Timeline buttons now call ContentBox 6's Motion API directly ( / ) and are labelled Motion Cascade and Motion Dock to match. The previous calls went through / , which 6.0 keeps only as one-line legacy shims — if a future release drops them the buttons would fail silently. now lives in instead of being duplicated verbatim in and , so the key-resolution order cannot drift between endpoints. Known issues and ship no from the vendor (true in 5.9.5 as well), so they 404 on the stylesheet for any page using them. Notes is read from the installed version in the database, not from . Bumping the file alone is not enough — the add-on update has to run before asset URLs change. The add-on's own update steps (action registration, CSRF exemptions, column widening) all run before , so they land even if EE's own bookkeeping fails afterwards. Idempotent throughout, so re-running is safe. [1.1.25] — 2026-08-21 Fixed Three block images that were referenced but never shipped. , and are referenced by blocks in (and, for the last one, by a Simple template) but were absent from the theme, so those blocks rendered broken images. Recovered from the ContentBox vendor distribution and added to . Notes A sweep of every asset reference in the block library and the three template packs found 110 references with no corresponding file, of which only these 3 exist anywhere in the vendor distribution. The remaining 107 — 70 variants in , 29 in , and a handful elsewhere — were never shipped by InnovaStudio and cannot be recovered. Blocks and templates depending on them will show a missing image regardless of PageCraft version. [1.1.24] — 2026-08-20 Added — a private scratchpad: the full PageCraft editor on a front-end template, detached from any entry, for building and trying out layouts without creating a throwaway entry to hold them. Super admin only. Any other member, and every logged-out visitor, gets an empty string — so dropping the tag on a public template exposes nothing. The check lives in the tag rather than being left to template logic, because a tag that renders an editor to the public when someone forgets an is the wrong default. performs its own auth check as well, so this is the second lock rather than the only one. It embeds the real endpoint, not a stripped copy, so uploads go to the EE file manager, the file picker works, and AI is available if enabled. Content is not saved to an entry. It round-trips through via the same protocol the publish form uses ( / / ), so work survives a reload. Copy HTML lifts the markup and CSS out when a layout is worth keeping; Reset clears it. Optional parameter, in px, clamped 400–2000 (default 800). [1.1.23] — 2026-08-18 Fixed Nav item hover colour and dropdown hover background work again. Both settings were being written correctly; the dark-theme block in was overriding them with hardcoded values at far higher specificity. Its selectors are — — while the variable-driven rules that read your settings are , so a literal there silently beat anything set in the Nav Items modal. Worse, dark's non-hover outranked the hover rule entirely, which is why hover colour did nothing at all. Every colour in the dark block is now expressed as , so a set value wins and the dark default applies otherwise. Only ever affected navs using the dark theme. Hover background is no longer discarded by the active style. The Boxed, Line and Caret styles hardcoded their hover background ( , or a separate ), throwing away . They now read the user's value with the stock colour as fallback. This one affected light navs too. Added Highlight colour. A single control driving the Line style's underline bar, the Boxed style's bottom border, and the dropdown item's hover indicator — one value, three consumers, so they cannot drift apart. These were previously fixed defaults in the stylesheet with no control at all. Logo size, 40–100 px. and its rounded variant both track rather than the hardcoded / . The bar auto-grows to fit: its height is , computed in CSS so the slideout's Nav height slider and this control stay independent. Bar margin and corner radius, for a floating nav bar. The bar insets from the section edges and its width shrinks by the horizontal margin so it can't cause a horizontal scrollbar. Bar background, used when the bar floats. A floating bar can't inherit the section background — it would be an invisible pill in the colour behind it — so a margin plus this colour gives the floating look. With no margin the nav still inherits the section background exactly as before, preserving the behaviour locked in v0.9.40/v0.9.45. All five controls live in a new BAR tab in the Nav Items modal, and round-trip through attributes like the rest of the nav settings. Notes This release changes theme assets. Unlike 1.1.14–1.1.22, installs must copy again (and CDN-fronted sites should purge the pull-zone) or the nav changes won't appear. [1.1.22] — 2026-08-18 Changed Demo photos and videos ship as local placeholders. ContentBox's stock demo media — ~48 MB of photos and video whose only job is to make a freshly dragged-in block look finished — is replaced at build time with flat grey placeholders of the same aspect ratio, and a blank clip for video. 534 images and 8 videos, 48.4 MB down to 3.0 MB. Filenames and formats are unchanged. Nothing is renamed or deleted, so no reference needs rewriting anywhere — not in PageCraft's code, not in ContentBox's — and pages already built on an existing install keep resolving their images, rendering a grey box rather than a broken one. Aspect ratio is preserved per image (read with , 45 distinct ratios in this build), so a portrait photo is replaced by a portrait placeholder and block layouts don't shift. Placeholders are generated at 640px on the long edge; being a flat fill, they are visually identical to full-size ones once scaled by the block's CSS. The editor's existing treatment still applies, so an unset image reads as a placeholder zone rather than a missing asset. Excluded: the top-level , which holds the animation preview GIFs used by the editor UI, not demo content. The build degrades gracefully — without (non-macOS) it warns and ships the full-size media. Notes Package is now 20 MB zipped / 42 MB unpacked, down from 90 MB / 112 MB at 1.1.19 — a 78% reduction across 1.1.20–1.1.22. This removes the need for the video re-encoding step considered in 1.1.21: the demo videos are replaced outright rather than compressed. [1.1.21] — 2026-08-18 Changed Picker thumbnails ship as WebP. converts every image to WebP at quality 82 and rewrites the references — 412 thumbnails, 10 MB down to 5 MB. Verified to introduce no broken references: the count of unresolved image references in each template pack is identical before and after conversion. Only is converted. is deliberately left alone — those photos are inserted into user page content, so a customer's saved HTML points at and changing the extension would 404 every page already built on an existing install. and are also skipped; their paths are constructed inside ContentBox's own minified JS. A thumbnail is only converted when its basename is unique across the package, so the reference rewrite cannot touch an unrelated file of the same name. 151 were skipped on that basis. The build degrades gracefully: without on PATH it warns and ships the original PNG/JPG. Removed (240 KB), referenced by nothing in the package. Notes Package is now 67 MB zipped / 87 MB unpacked, down from 90 MB / 112 MB at 1.1.19. Video re-encoding was attempted and abandoned for now: macOS's uses fixed-bitrate presets, so re-encoding these already-compressed sources made them larger at 540p and 720p, and only 480p saved space — unusable for full-width background video. Doing this properly needs with CRF-based encoding. [1.1.20] — 2026-08-18 Removed Monochrome Blocks is no longer bundled or shipped. It is a separately licensed ContentBox.js add-on and is not covered by the redistribution rights PageCraft ships under, so it must not travel in the package. The pack is now gitignored, untracked, and excluded by ; the files stay on disk for local development. No code change was needed — packs are auto-discovered from , so nothing referenced it by name. Package size drops from 90 MB to 75 MB zipped (112 MB to 95 MB unpacked). [1.1.19] — 2026-08-16 Changed The release package now mirrors ExpressionEngine's own folder structure. used to emit a single folder with the theme tree buried inside it, leaving the customer to find it and copy it out by hand. The package is now: Copy both folders into the site root and install from the control panel — the manual step is gone. Hoisting is safe because nothing reads the add-on's bundled copy at runtime: resolves the site's own , and the install-time auto-sync that once read the bundled tree was removed in 1.1.11. Added , shipped at the package root: requirements, install and upgrade steps, verification, and troubleshooting for the two failure modes that actually happen — a missing theme tree, and an upgrade that didn't replace it (including the CDN pull-zone note for Cloudways-hosted sites). Notes now documents both paths: installing from a release package, and working from the repo (where the theme tree still lives inside the add-on and still needs copying to the site's theme folder after any editor-asset change). [1.1.18] — 2026-08-13 Fixed ContentBox's tool-rail icons are legible in dark mode. 1.1.17 turned the rail dark but left the icons near-black on it. ContentBox's UI icons are sprite symbols ( ) and every symbol is defined — so they are painted by the CSS property. ContentBox's own dark rule sets ( ), which those paths ignore, and it ships no dark override for . PageCraft now drives instead, which fixes every sprite icon in the chrome at once. Scoped to , so light mode is untouched. [1.1.17] — 2026-08-12 Added The editor and global-component frames follow the CP theme. Both are standalone documents that can't inherit the control panel's , but they are same-origin with the CP, so they now read the same key EE's account-menu switcher writes. A short script applies it to before first paint — the same anti-flash approach EE uses in . Setting on also switches on ContentBox's own dark chrome: 96 rules in and 17 in are scoped to a ancestor, covering the left tool rail and the section/box settings panels. PageCraft only themes the UI it injects itself. Toggling the CP theme updates an already-open editor, no reload — the event fires in every same-origin document except the one that changed the value. The Save as Section modal is themed (converted from inline styles to classes). The canvas document is deliberately excluded: it renders real page content and must keep showing the design as visitors will see it. Changed The theme bootstrap and PageCraft's mirror of EE's design tokens live in ( , ) so the two frames can't drift apart. The mirror exists only because a standalone frame doesn't load EE's control-panel stylesheet; anything rendering inside the CP body uses EE's tokens directly. The publish-form toolbar now uses rather than . In dark mode pure black made the toolbar the darkest element on screen, below even the CP page behind it. Known gaps The MCP control-panel pages (Settings, Sections, Library, Docs) still carry hardcoded colours and stay light under a dark CP theme. Within the editor frame, the right-click context menu, the lock/unlock buttons and the toast are not themed yet. [1.1.16] — 2026-08-12 Added The publish-form chrome follows the CP theme. The PageCraft field's wrapper, toolbar and canvas surround now take their colours from ExpressionEngine's own control-panel design tokens ( , ) instead of hardcoded hex. Switch the CP theme from the account menu — Dark, Snow, Slate, Pink — and the field follows, with no PageCraft setting to configure and no JavaScript involved: EE defines the tokens on and re-defines them per theme on , and the field renders inside that body, so resolves on its own. The editor canvas is deliberately untouched. It renders real page content in its own iframe document and must keep showing the design as visitors will see it. Only the chrome around it is themed. Each token carries the previous hardcoded value as its fallback, so the chrome still renders sanely if EE renames a token. Changed The field's toolbar, buttons and canvas surround are styled from a stylesheet (emitted once per request, however many PageCraft fields are on the page) rather than inline attributes, and the active-device button is tracked with an class rather than JavaScript writing / . Inline styles can't be overridden by a themed rule, so this was a prerequisite for theming. Light-mode appearance is unchanged apart from the toolbar icons, which now use EE's (slightly darker and cooler than the previous , and better contrast in both themes). [1.1.15] — 2026-08-05 Fixed Buttons in ingested templates are editable again. ContentBox only edits an as a button when the anchor sits inside a cell carrying whose computed display is block, inline-block or flex. The ingest pass set on button-like elements — which ContentBox ignores — and then excluded those elements from the loose-text pass that hands out editable markers. The combination froze every CTA in an imported template: label uneditable, URL unchangeable. Ingest now marks the button's parent as the editable cell ( step 4b), which is the shape ContentBox actually looks for. The anchor itself is never marked — doing so makes ContentBox treat it as a text block and drops the button settings panel. The cell is only claimed when it holds nothing but button-like children (whitespace, comments and ignored), so a mixed block — heading + copy + button — is left alone rather than handed to ContentBox whole. Inline parents ( , ) are skipped because they can't satisfy the display requirement, as are structural nodes (section / container / column), which would need a real wrapper element that this pass deliberately does not create. elements are still left alone. ContentBox will only ever edit an , so the only fix would be converting → , which breaks form submits; FormBuilder is the supported path for forms. Note: this changes ingest-time output. Existing sections must be re-ingested to pick it up; a code deploy alone won't alter sections already in the library. [1.1.14] — 2026-08-05 Fixed Imported sections no longer lose their thumbnail on save. Sections created by Pack Import or Template Ingest store their thumbnail as a plain URL, not an EE file reference. EE's drag-and-drop file field can't render a bare URL — it showed a broken red X — and it posts back empty, so simply opening a section and clicking Save silently wiped the thumbnail. The section-edit screen now detects a URL-shaped thumbnail, renders it as a direct preview (\"Imported preview. Upload below to replace.\"), and carries the value through a hidden field that falls back to when the picker is empty. The picker is still offered for replacement. The hidden field is client-supplied, so its URL shape is re-validated server-side before it's accepted. The section picker shows section names again. The generated sections file emitted , and for each design but no , so ContentBox's picker rendered unlabeled thumbnails. The name is now emitted, encoded with so names containing quotes, backslashes or line breaks still produce a valid JS string literal. Note: this changes generated output. Existing installs must regenerate the sections file (PageCraft → Sections → Regenerate sections file) before titles appear; a code deploy alone won't do it. [1.1.13] — 2026-07-14 Fixed Editor module fetches are now cache-busted by add-on version. ContentBox loads the FormBuilder settings panel (and other modules) by fetching from a bare, cacheable URL. On hosts with a CDN/Varnish in front of the theme (e.g. Cloudways with CloudwaysCDN), that file could be served stale to the editor even when the origin was updated — so new editor fields (like 1.1.12's Redirect URL) didn't appear until the CDN pull-zone was purged, which is easy to miss behind the usual Varnish/browser purges. The three ContentBox module fetches now append ( , injected by the editor and global-component frames). A new query string is a new URL to browser, Varnish, and CDN, so every version bump forces a fresh pull automatically. One-time note: the browser/CDN must load this patched once for the buster to take effect. On a CDN-fronted site, purge the CDN pull-zone after deploying 1.1.13; from then on, module updates propagate without manual purges. Changed Editor and global-component frames now expose (the add-on code version) for the module cache-buster. [1.1.12] — 2026-07-14 Added FormBuilder: optional \"Redirect URL (on success)\". A new field in the FormBuilder Settings tab. When set, a successful submission sends the visitor to that URL ( , a full URL, etc.) instead of showing the inline Thank You Message. Leave it blank to keep the current behavior (the message is shown). The value is stored per form in the block's ( ) and escaped for the generated form script. Applies to the default JSON submission type. Notes The generated form still passes a block of unused InnovaStudio FormViewer options (AI media generation: , Fal/OpenAI endpoints, and the disabled Workflow tab). These render as empty strings and are harmless; they were left in place to avoid altering vendor FormViewer expectations. No functional config beyond the fields exposed in the Settings tab is active. [1.1.11] — 2026-07-13 Changed Reverted the automatic theme-asset sync (1.1.9–1.1.10). It proved unreliable across hosting setups. PageCraft's theme assets are again installed/updated by manually copying the bundled theme into the active theme, on install and after any upgrade that changes editor/runtime assets: See the README for the full step. [1.1.10] — 2026-07-13 Fixed Editor assets self-heal — the theme sync no longer depends on running the CP \"update\". 1.1.9 copied the bundled theme into the active theme only during , which was still fragile (the update had to actually run, with the bundled theme deployed). PageCraft now checks and repairs the active theme ( ) wherever the editor is about to load — the fieldtype's publish-form render, the settings page, and the updater — via . It's a cheap version-stamp comparison ( ) on the happy path and copies only when the stamp is missing/old or the ContentBox core asset is absent; the per-install and trees are skipped and nothing is deleted. The stamp uses the add-on's code version (from ), so simply dropping a newer build on disk triggers the re-sync on the next editor load — no CP update required. If the copy can't run, the exact reason (e.g. \"themes/user/pagecraft/ is not writable\") is now shown in the CP instead of failing silently. [1.1.9] — 2026-07-13 Fixed Theme assets now sync automatically on install/update — no more manual . The ContentBox editor loads its module/runtime files from the site's active theme ( ), a separate copy from the add-on's bundled theme that a / CP update never touched. So an upgrade that changed an editor asset (e.g. the 1.1.8 FormBuilder settings panel) silently didn't take effect until someone re-ran the README's . The updater now copies the bundled theme into the active theme on install and update. Add-on-owned files are overwritten (they must match the installed version); nothing is deleted and the per-install (generated) and (user packs) trees are skipped. Best-effort — a copy failure is logged, never fatal. [1.1.8] — 2026-07-13 Added Per-form notification recipient. Each FormBuilder form can now send its submissions to its own email address instead of one site-wide recipient. Set it in Form Builder → Settings tab → \"Notification Email\". The global setting (Add-Ons → PageCraft → Global Settings) is retained as the default/fallback — resolution order is per-form → global default → the site's . The recipient is encrypted server-side at render ( , injected as a hidden field by ), so it never appears in page source and cannot be forged — a crafted direct POST can't redirect a site's form mail to an arbitrary address. A plaintext value is never trusted. No database migration is required; the recipient travels with the form markup. [1.1.7] — 2026-07-05 Fixed Full pages no longer fail to save with \"Data too long for column\". PageCraft's field stored into a column (64KB max) — its declared , but that key only sets a fieldtype default and is never applied to the per-field data column, so EE kept building/reverting it to . A page with many (or large) sections overflowed it on save. The fieldtype now implements to pin the storage column to (16MB), and the updater widens existing PageCraft field columns on upgrade. Import Pack (.zip) no longer fails with \"Invalid server response\" (403). The Import-Pack modal read its CSRF token from a global ( ) that isn't defined on the Sections page, so it POSTed an empty token and EE's rejected the request with a 403 (HTML, not JSON). The token is now embedded server-side via , matching the Ingest Template modal. Added Placed sections are identifiable in the markup. Each section's HTML now begins with an comment (injected as the root's first child), so a section can be recognized in the page/canvas source. [1.1.6] — 2026-06-30 Fixed Imported packs' lazy-loaded images now render in the editor canvas. Packs that lazy-load images (vanilla-LazyLoad, Arts/Kinsey, etc.) keep the real URL in a attribute and rely on a front-end script to swap it into / on scroll. That script never runs inside the ContentBox iframe, so images stayed on their /empty placeholder and rendered blank while editing. The canvas now force-loads them on load (and via a , so sections inserted while editing also resolve), covering / / / (imgs) and / (CSS backgrounds). Canvas-only — the front end is untouched. JS-driven masonry grids no longer collapse to a stacked column in the canvas. Grids laid out by a front-end library (Isotope/Masonry, the Arts framework's ) absolutely-position their items via JS that doesn't run in the canvas, so the items — which carry only flex-basis/max-width in a non-flex container — stacked. The canvas now applies a flex-wrap fallback to / / / so items flow by their column widths into a faithful, editable grid (rows align to the tallest item; not true masonry). Canvas-only; the front end's real layout JS is unaffected. Both fixes live in (the branch), alongside the existing anime.js and Bootstrap grid-compat canvas shims. [1.1.5] — 2026-06-22 Fixed No more full-height empty band before the footer on pages with imported sections. ContentBox gives every and only resets it for auto-height sections via a DIV-scoped rule ( ). Sections authored or imported as the semantic tag (ContentBox marks them ) never matched that reset, so a short was stretched to a full viewport height — producing a tall blank gap before the next block or the footer (seen across the location pages). PageCraft now emits a front-end compatibility rule ( ) that broadens the reset to any element carrying , regardless of tag. It only generalises ContentBox's own intent (\"auto\" = auto height), so sections and (which should stay 100vh) are unaffected. Emitted on the published render paths; the editor canvas keeps ContentBox's native behaviour. [1.1.4] — 2026-06-20 Fixed FormBuilder forms now submit to PageCraft automatically — no endpoint to paste. A saved form stores a literal from its \"Form Action\" setting, whose InnovaStudio default is the placeholder — not a real URL. Left on the default (or pointed at an id from another environment), the form POSTed to a 404 whose HTML body made throw : no storage, no email. This was the real cause behind the 1.1.1–1.1.3 saga; those releases fixed adjacent issues but the form was never reaching the endpoint. PageCraft now rewrites a FormBuilder form's to this install's own ACT URL at render time (all front-end paths: field tag, , and global header/footer). Editors can leave \"Form Action\" on the default and it Just Works on every environment. Scope is tight: only tags on a page that contains a FormViewer form are touched; search/comment forms are left alone. A form whose action points at an absolute off-site URL is also preserved, so posting to a third-party service on purpose still works. no longer 500s on its own logging. is auto-loaded in the Control Panel but not in a bare public front-end ACT request, where throws \"No such property: 'logger'\" on the Legacy Facade. Every diagnostic log call in the endpoint (missing table, no recipient, send failed, and the top-level itself) therefore turned into an HTML 500 — which made the form's choke on . Logging now goes through a best-effort helper that loads the library first and swallows any failure, so a log write can never error the visitor's form. (This is what surfaced once 1.1.4's rewrite finally routed submissions to the endpoint.) [1.1.3] — 2026-06-18 Fixed Form submissions no longer 500 when the submissions table is missing. If the table doesn't exist on an environment (e.g. the add-on update registered the action but hasn't created the table yet), EE's database layer calls and returns an HTML 500 before the endpoint's try/catch can produce JSON — which makes the form's throw . The endpoint now checks first: when the table is missing it still emails the submission and returns a clean JSON success, and logs that the update needs to be re-run, instead of crashing the visitor's form. [1.1.2] — 2026-06-18 Fixed FormBuilder forms now actually render — load the viewer build, not the builder. 1.1.1 loaded on the front end, but that bundle defines (the editor) and contains no — so the published form's still threw . The global is defined by the separate viewer build ( ). The front-end loader now emits + instead. (Both builds ship in the theme; only the viewer is needed on published pages.) [1.1.1] — 2026-06-18 Fixed FormBuilder forms now render on the front end. A saved form's inline script calls to build its fields, but lives in — an editor asset that was never loaded on the published page, so forms threw and showed nothing. The front-end runtime now loads + whenever the rendered content contains a FormBuilder module (both the field-tag and module render paths, via a shared , loaded once per request). The endpoint URL in Forms settings no longer shows before the action is registered. When isn't registered yet (e.g., the add-on update hasn't run on a given environment), the settings page now shows a \"re-run the update\" notice instead of a broken URL that would silently fail when pasted into a form. [1.1.0] — 2026-06-18 Added Native form submissions for the FormBuilder. PageCraft's bundled FormBuilder (InnovaStudio FormBuilder AI) could already build forms in the editor, but had nowhere to submit to on a live site. A new public endpoint ( ACT, registered csrf-exempt) now receives submissions, honoring FormBuilder's JSON contract (POST → JSON, success = no key). Each submission is: Stored in a new table (fields as JSON + source URL, IP, user-agent, timestamp). Emailed to a configurable recipient via ExpressionEngine's native Email library — so it uses the site's own Outgoing Email settings (PHP mail / Sendmail / SMTP). From is the site address, Reply-To is the submitter's email when present. Spam-guarded with a same-origin check, per-IP rate limit (10/min), optional reCAPTCHA v2 server-side verification, and a honeypot hook. Forms settings (Add-Ons → PageCraft → Global Settings): notification recipient email, reCAPTCHA v2 secret key (stored encrypted), and a copy-ready display of the endpoint URL to paste into each form's Form Action (Form Builder → Settings tab). Notes v1 covers text fields; file-upload fields and an in-CP submissions viewer (the table already stores everything) are planned follow-ups. FormBuilder AI is a commercial InnovaStudio library — a developer license is required. [1.0.0] — 2026-06-12 First stable release. Consolidates a round of security hardening, correctness fixes, and editor-UX work (versions 0.9.61–0.9.66 plus the additions below). Known limitation: the element-delete fix (0.9.66) is a runtime guard around a ContentBox behavior, not a change to how editable text is marked up. Added Grid Editor (row & column editor) is now exposed in the canvas. ContentBox ships ContentBuilder's row-level Grid Editor — Insert/Delete Column, Columns per Line, Wrap/Reverse Columns, Row/Column IDs, Hide on Mobile — but hides its row-toolbar button by default ( ; only its / modes reveal it). PageCraft now un-hides just that one button (in both the editor chrome and the canvas iframe), so selecting a row surfaces a grid icon that opens the full Grid Editor panel — without switching the whole editor into minimal mode. Cleanest on native blocks; works on template-ingested Bootstrap rows but interacts with the grid-framework conversion. Toolbar Style setting (Colored / Monochrome). A new global setting (Add-Ons → PageCraft → Global Settings) renders the in-editor section/column/element toolbars in neutral gray instead of ContentBox's multi-color set, for a calmer canvas. Rather than ContentBox's native gray mode (which banded the tools, left icons white, and never reached the section-level tool), PageCraft drives it from a body class + its own CSS across the canvas and editor chrome: neutral pills, dark icons, no background band, with the \"Save as Section\" button kept a distinct mid-gray. Default is Colored, so existing installs are unchanged. [0.9.66] — 2026-06-12 Fixed Deleting an element no longer wipes text across the canvas. ContentBox's element-delete runs a sweep that walks every and, for any whose is empty (it counts element children only — text nodes don't qualify), replaces its with a placeholder. PageCraft marks leaf text elements ( / / ) as , so they hold a text node but no element child — ContentBox judged them \"empty\" and erased their text on any delete, canvas-wide (only elements were affected; nav/hero/plain sections were untouched). A new subblock-content guard in the editor canvas ( , behind ) remembers each text subblock's last non-empty content and restores it the instant ContentBox wipes it — before the debounced save fires, so real content is what persists. No vendor-code changes. Note: this prevents future wipes; content already saved with spacer placeholders must be re-entered or restored from a backup. [0.9.65] — 2026-06-12 Added Editor Permissions are now editable (super-admin only). The Add-Ons → PageCraft → Permissions page was display-only — it showed each role's editing level but nothing could ever write the setting, so every role defaulted to Full with no way to change it (the limited \"Content\" level was effectively unreachable). The page now renders a Full/Content selector per role and saves via a new handler. Setting a role to Content gives that role the limited editor (text editing, file uploads, adding blocks; per-element settings panels hidden). Super Admin (role 1) is always Full and the Banned/Guests/Pending roles are never shown. Non-super-admins see the read-only badges. Only the non-default level is persisted, so unset roles continue to default to Full. [0.9.64] — 2026-06-12 Security Template Ingest is now super-admin only. It extracts / / assets and registers / tags into the editor canvas that load for all users — executable content that can't be meaningfully sanitized — so it's restricted to fully-trusted admins (defense-in-depth above the CP-access gate the other actions use). The \"Ingest Template (.zip)\" button is hidden for non-super-admins. Pack Import is unchanged (CP-access): it serves CSS only, never JS, and doesn't register site-wide canvas assets. Uploaded/extracted SVGs are screened for active content. A new shared rejects SVGs containing , , DOCTYPE/ENTITY declarations, inline event handlers ( …), URLs, or external / references. Applied to the Template Ingest preview image (replacing the old bare substring check that read only the first 1 KB) and to SVG assets extracted from both Template Ingest and Pack Import zips. Fixed Plugin assets no longer cache-bust on every request. The front-end runtime appended to every ContentBox plugin JS/CSS URL, defeating browser/CDN caching on each page load. It now uses the add-on version ( ), so assets cache between releases and refetch after an update. The field-tag render path ( ), which previously had no cache-buster at all, now uses the same version stamp. Changed The bundled-plugin list is now a single source of truth. and each carried their own copy of the ContentBox plugin list and had already drifted (the field-tag copy was missing ). Both now read , so the registerable-plugin set can't diverge between the two render paths. [0.9.63] — 2026-06-11 Changed Section thumbnails now self-heal at render time; the manual \"Fix Missing Thumbnails\" button is gone. Previously a missing/cross-install thumbnail showed a broken image (or a ) until you clicked Fix Missing Thumbnails, which wrote SVG files to disk and rewrote DB rows — and it silently skipped sections with an empty thumbnail and could clobber a valid reference that was momentarily unresolvable. Now resolves each thumbnail when it renders: it returns the real image URL when the file exists on this install, otherwise an inline placeholder labeled with the section name + category. This is applied in the canvas picker JS ( ) and both CP section lists ( ), so placeholders appear automatically — no button, no disk writes, no DB mutation, and the empty-thumbnail case is covered too. Removed the ACT endpoint and its handler. deletes the retired action row from on existing installs. Section import no longer generates on-disk SVG placeholders (the renderer handles it); export still bundles real preview images. Security Folded the earlier thumbnail path-traversal guard into a single helper shared by (export) and the new URL resolver, so the -rejection is enforced in one place. [0.9.62] — 2026-06-11 Security AI proxy cost/abuse guardrails. Both AI endpoints ( , ) forward to OpenRouter on the server's shared API key; they now bound what a single CP user can spend. A new shared adds: a model allowlist (clamped to the models the editor's picker offers — anything else falls back to , so a tampered client can't bill an arbitrary/expensive model; extend per-site via ), an input cap (max 80 messages and 256 KB of combined content per request → HTTP 413), and a per-member rate limit (40 requests / 60 s, fixed-window via EE cache → HTTP 429). The streaming endpoint no longer echoes the raw cURL error string to the client (logged server-side instead). [0.9.61] — 2026-06-11 Security Control-panel access is now required for every editor, upload, and import action. All state-changing/editor ACT endpoints ( , , , , , , , , , , , , , ) now require , not merely a logged-in member. Previously a front-end-only registered member could reach them — most importantly Template Ingest, which writes JS/CSS/SVG assets that are later served on every page. CP editors are unaffected (they always have CP access). The public asset endpoints ( / / ) remain intentionally open, and the global-component actions remain super-admin only. Path-traversal hardening in section-thumbnail resolution. now rejects segments and stays confined to the theme directory. A crafted stored thumbnail URL (e.g. ) could otherwise be resolved to a file outside the theme root and bundled into the sections export . Fixed \"Save as Section\" no longer fails on installs that haven't opened the CP Sections page. The column is now declared in the install schema and backfilled by an idempotent step in . It was previously created lazily only when the CP Sections page was first opened, so saving a section straight from the editor ( ) on a fresh install threw \"Unknown column 'enabled'\". Canvas-asset upgrade no longer drops a legacy editor stylesheet. The 1.4.0 creation step now runs before the 1.5.0 split into / . On an upgrade that crossed both versions in one pass, the split read before the legacy was migrated into it, silently losing the stylesheet. [0.9.60] — 2026-06-10 Added Template Ingest pairs preview images with zips. When ingesting raw-HTML template s (Add-Ons → PageCraft → Sections → Ingest Template), every section previously got an auto-generated SVG placeholder thumbnail. Now you can include a preview image named the same as a zip in the same drop/selection (e.g. + ) and PageCraft uses it as that section's thumbnail. Same modal, same flow — just add the images. Client ( ): the ingest file input accepts images too; dropped images are held in a base-name map and paired to like-named zips. Each zip's upload carries its matched image as . The queue shows a \"✓ preview\" badge on zips that have a match. Images with no matching zip are ignored. Server ( ): validates the optional (uploaded, image extension, ≤ 5 MB, real-image content sniff including an check), saves it into the per-slug directory, and uses it as the primary (first) section's thumbnail — additional sections from a multi-HTML zip keep the generated SVG. Stored as an absolute pack URL (survives Regenerate File, mirroring Pack Import). Any validation failure silently falls back to the SVG placeholder — a bad preview never blocks the ingest. Preflight is unaffected (the preview is only sent on the real ingest). [0.9.59] — 2026-06-08 Fixed Tailwind grid sections now render in the canvas and on the front end. With Grid Framework set to Tailwind, ContentBox emits Tailwind grid classes ( , , …), but nothing loaded a Tailwind stylesheet — the editor canvas loaded only the site's own (Bootstrap/Crafto) CSS, so the Tailwind classes had nothing to style them and grids collapsed. The addon already ships a complete Tailwind build ( , with every grid utility CB generates) — it was simply never loaded. Now: Canvas ( ): new / inject the Tailwind build into the editor (loaded last so its utilities win) when the resolved framework — per-field override falling back to global — is . Front end ( ): the Tailwind build is added to when the global Grid Framework is . The bundled build defines no / / , so it's purely additive — no collision with ContentBox-native or Bootstrap grids. Bootstrap needs no equivalent (the site's own Bootstrap CSS is already a canvas asset / loaded by the wrapper). Known scope: the front-end load reads the global framework setting; per-field Tailwind on the front end would need additional entry/field resolution. The full ~260 KB build ships on every Tailwind front-end page (a purged subset is a possible later optimization). [0.9.58] — 2026-06-05 Added Grid Framework setting (global + per-field). A new setting tells ContentBox which CSS-framework grid vocabulary to drive in the editor canvas: Native (ContentBox's own grid, the default), Bootstrap ( ), or Tailwind ( ). When set, CB operates select/move/resize natively on the framework's own column classes, so imported templates built in that framework get real column tooling instead of a class-name collision. Global default with a per-field override (reuses the existing fallback pattern). Defaults to Native, so existing installs are unchanged. Wired in (global), (per-field), and (canvas init). Grid-conversion repair pass ( ). ContentBox's framework conversion measures each column's width and rounds to the nearest grid unit, which can over-assign on auto-fill (equal, no explicit width) columns — e.g. four flex columns each becoming (16/12) and overflowing the row. A canvas post-process detects rows whose columns' widths sum past 100% and rewrites them to the framework's auto-equal class ( for Bootstrap, for Tailwind), which never overflows regardless of count. Legitimate grids (sums ≤ 100%, including Tailwind's mobile+desktop pairs) are left untouched. Runs on canvas start and before each save. Documentation New \"Grid Framework\" guide ( , registered in the in-CP docs index). Explains the three options, what \"driving the grid\" means, and the important caveats: the framework is canvas-wide (not per-section), native sections get converted (lossily for non-12-column layouts), avoid mixing native + framework sections on one page, and the Tailwind purge gotcha. Cross-referenced from \"Importing Custom Templates\" since that's where a framework user lands after an import. Tooling — produces a clean, shippable package: exports the working tree (tracked + new files, honouring ), forces the addon folder name wrapped in , strips dev-only files ( , , , , OS cruft), and resets the section library to seeded defaults so a developer's test sections/categories/thumbnails never ship. Outputs . is gitignored. Note The framework conversion is inherently lossy for layouts not authored in the target framework's grid; the repair pass is a safety net, not a perfect translator. The intended long-term model is per-framework block libraries (blocks authored natively in each supported framework) with the conversion repair as fallback — see project notes. [0.9.57] — 2026-06-04 Fixed Imported Bootstrap/Crafto grids no longer collapse on the front end or canvas. ContentBox's runtime CSS claims the class and, via higher-specificity rules ( , , ), overrode the theme's Bootstrap grid — collapsing cells, jamming cards into a single nowrap row, and applying wrong gutters. now restores Bootstrap's intended / / gutter behaviour, scoped via to rows that actually contain Bootstrap columns ( , , or a row), so ContentBox-native layouts are untouched. Grid-compat scoping no longer clobbers native ContentBox sections. The column detection matched real Bootstrap tokens via anchored attribute selectors ( , , , etc.) instead of a substring , which wrongly matched the utility that stock CB columns carry ( ) and broke out-of-the-box layouts. Changed PageCraft field columns auto-upgrade to MEDIUMTEXT. The fieldtype declares in , but EE only applies that at field-creation time — fields created earlier kept a 64KB column and threw \"Data too long for column\" (SQLSTATE 22001) when saving a large page. The updater ( ) now detects any field whose data column is still and s it to . Idempotent; handles EE 7 per-field tables and the legacy shared table. Mirrors the existing self-healing pattern. Internal Groundwork for adopting imported Bootstrap cells into ContentBox's column tooling (selection/settings via + ) is present in behind a disabled flag, parked until the grid-layout work above is proven stable. [0.9.56] — 2026-06-03 Fixed Grid-compat CSS now ships on the module render path. The Bootstrap / collision fix ( , added in 0.9.54) was emitted by the canvas ( ) and the field tag ( ), but not by the module tag in — so pages rendered with got ContentBox's + with no counter, crushing imported Bootstrap columns ( , etc.) into a single nowrap row with one-or-two-words-per-line text on the front end while the canvas looked correct. now injects once on first runtime enqueue — the same first-run gate that loads the colliding — so the counter-CSS always ships when the runtime does, and never bloats pages that don't load it. Fixes , , and in one place. Requires on the render tag (the default). Added Self-healing section thumbnails. New centralises the labeled-SVG placeholder generator (extracted from the Template Ingest flow) plus host-agnostic broken-thumbnail detection: a thumbnail is \"broken\" when the file it points to is missing on this install, whether stored as a bare filename or an absolute URL baked to another install's domain (matched on the path marker, not the host). action + \"Fix Missing Thumbnails\" button (CP → PageCraft → Sections). Scans every section, regenerates a placeholder only for the broken ones, updates the rows, and resyncs . Idempotent and install-agnostic — run it wherever the broken tiles are. Section import self-heals. now accepts a (manifest + bundled files) or legacy raw JSON, copies bundled previews into place, and auto-generates a placeholder for any section whose image is still missing — so an import never leaves broken tiles. Reports in the result. Section export bundles images. now produces a self-contained (manifest.json + real files) so thumbnails survive the round-trip; falls back to plain JSON when is unavailable. Documentation Recommended EE session settings. now explains the \"This form has expired\" error editors can hit when the publish form sits open during a long canvas edit, and recommends EE's Session type → \"Cookies and session ID\" (and, only if needed, loosening \"Require IP for posting\"). The addon does not change these settings itself — they're documented as the site owner's call. Changed Section-import form reports inline instead of dumping JSON. The import previously did a native POST and left the browser on the raw JSON action response. It now submits via XHR and shows \"N sections imported, N categories created, N placeholder thumbnails generated\" inline, then reloads — matching the Pack Import UX. The file input accepts and . Documentation: template examples + render tag reference. Added (minimal → URL-routed → mixed → full-site → multi-field templates) and documented the previously-undocumented tag in , including the diagnostic-comment table and the / requirement. Both registered in the in-CP docs index. CP doc code blocks now wrap and grow to content height instead of clipping to one horizontal-scrolling line. [0.9.55] — 2026-05-31 Fixed Multi-column Bootstrap rows now wrap instead of overflowing. 0.9.54's grid-compat fix stopped the column crush but exposed a second collision: sets (= nowrap), so a row of four form fields laid out in one horizontal strip and overflowed the canvas rather than forming a 2×2 grid. now also forces on rows that contain Bootstrap columns, restoring the intended multi-row wrapping. Still scoped via to rows with / children, so ContentBox-native layouts are untouched. [0.9.54] — 2026-05-31 Fixed Imported Bootstrap columns no longer collapse in the canvas or front-end. The real cause of the \"one character per line\" column crush (not the injection removed in 0.9.53) is a class-name collision: ContentBox's runtime CSS claims the / names that Bootstrap themes also use, and its overrides Bootstrap's deliberate . Next to a fixed-width sibling (e.g. the green-energy 418×550 image, or the contact-form field grid) the text columns shrank toward zero; CB's added also pushed columns past 100% so they wrapped. A new emits a small compatibility stylesheet — and for rows that actually contain Bootstrap columns ( / , via ), leaving ContentBox-native layouts untouched. It's injected into the editor canvas ( ) and the front-end runtime ( ). Because this is pure CSS keyed on the existing markup, sections ingested earlier are fixed in place — no re-ingest required for the layout (the 0.9.53 re-ingest note applies only to stripping the stale class). [0.9.53] — 2026-05-30 Fixed Ingest no longer butchers Bootstrap grid layouts. v0.9.51's column recognition added ContentBox's class onto Bootstrap elements, but CB's runtime CSS gives + horizontal padding while drops Bootstrap's . That overrode the theme's and collapsed multi-column sub-grids to content width — contact-form fields and stat columns rendered as one-character-per-line vertical strips. The column-injection step is removed entirely: imported Bootstrap grids are left exactly as the theme authored them (they lay out correctly from the theme CSS registered as a canvas asset, and their content stays editable via the markers). The trade-off is that ContentBox's native column-drag handles don't appear on imported grids — correct rendering is the priority. Section, , container, loose-text, and button injection are unchanged. Note: sections ingested under v0.9.51–0.9.52 already have the bad baked into their stored HTML (and into any page where they were placed); re-ingest them, or run a cleanup, to recover the layout. [0.9.52] — 2026-05-30 Added Bulk actions on the Sections list (CP → PageCraft → Sections). Each row now has a checkbox, with a \"select all\" checkbox in the table header (including an indeterminate state for partial selections). A toolbar above the table shows the live selected count and offers two group actions: Delete Selected (with a confirmation naming the count) and Assign Category — a \"Move to category…\" dropdown of existing categories that re-files every selected section in one shot. Both submit to a new settings controller that constrains operations to the current site's sections, regenerates via once per batch, and shows a result banner. The bulk Delete Selected button reuses the existing red styling; the per-row delete handler was scoped to so it no longer binds the bulk button. Assign is disabled until both a category is chosen and at least one row is selected; delete is disabled until at least one row is selected. [0.9.51] — 2026-05-30 Changed Template ingest now injects ContentBox classes with a DOM tree pass instead of single-shot regexes. was a chain of regexes ( , , , ) that each only touched the first matching tag — so real ThemeForest/Crafto markup came through half-wired. It now parses each section fragment into a (loaded under a single wrapper with and a UTF-8 hint) and injects by traversal. The original regex pipeline is preserved verbatim as and runs automatically as a fallback whenever a fragment can't be parsed or the DOM pass yields nothing, so hard-to-parse files are never worse off than before. Inline / bodies and complex attributes (e.g. ) survive the round-trip intact. Added Grouped sections. A file containing multiple top-level elements now gets every section wired up — each receives and its own first child — not just the first. Files with no tags are treated as one section per top-level block element (a single wrapping , or sibling block divs); flat snippets (loose / /inline content) defer to the regex fallback rather than being wrapped in bogus sections. on every section alongside the existing . Bootstrap container recognition. Elements classed , , or (and the legacy marker) get + appended, keeping their original classes. A section with no recognised container still falls back to promoting its first non-overlay child, as before. Column recognition. Bootstrap column classes ( , , , , , responsive bare , …) get ContentBox's class appended (originals kept), and their parent gains if missing — so multi-column layouts are sortable/editable as CB columns. Loose-text editability. Visible text living outside / – is now made editable: / containing text become a single editable region (the whole list, not per- ), and text-holding / / / / / / / / / elements get . A nesting guard prevents marking any element already inside an editable region; structural nodes ( / / / / ) are never marked. Button recognition. / elements with button-ish classes ( , , , ) or an existing get set (ContentBox's content-button form), so the button tool wires up on the canvas. Theme classes and are left intact; plain text links are not touched. [0.9.50] — 2026-05-30 Added Target category is now chosen at ingest time. The Ingest Templates modal (CP → PageCraft → Sections → Ingest Template) now has a required Target category dropdown listing existing categories. The Ingest button stays disabled until a category is selected, and every section from every ZIP in the batch is filed under that one category. This replaces the previous behaviour where silently derived a category from each ZIP's folder structure / filename and auto-created categories on the fly — which scattered an imported theme across a dozen machine-named categories. If no categories exist yet, the modal shows an inline notice linking to the categories page instead of an empty dropdown, since ingest now requires picking an existing one. Changed Ingest is non-destructive except by name collision, and warns first. Existing sections are left untouched unless an incoming section has the same name within the chosen category, in which case the existing row is overwritten (HTML + thumbnail) rather than duplicated. Before any write, clicking Ingest runs a preflight pass — each ZIP is parsed server-side ( , no disk or DB writes) to compute the section names it would produce and which collide with the target category. If any collide, a single consolidated confirmation lists every section that will be overwritten (with its source file) and the user can cancel the whole batch, leaving everything unchanged. On confirm, the real ingest runs with and upserts by . Server contract: without , a colliding section is skipped (reported in ) rather than overwritten, so direct API callers don't clobber data without opting in. Response JSON gains , , and ; is removed (no categories are created during ingest anymore). [0.9.49] — 2026-05-30 Added Multi-file template ingest. The Ingest Templates modal (CP → PageCraft → Sections → Ingest Template) now accepts multiple files in a single drop or file-pick. Each ZIP is queued, processed sequentially as its own pack (one request per file), and reports per-row success/error inline. Sequential rather than parallel because rewrites after every ingest — concurrent writes would race on the same file and on allocation in . Failures are isolated per row; a batch with mixed outcomes leaves the modal open so editors can review what failed before navigating away (all-success keeps the existing auto-redirect). Files can be removed from the queue before submit; duplicate adds (same name + size) are de-duped automatically. Non- files dropped into the zone are silently ignored with a one-line notice. Server-side is unchanged — it still expects one per request, which is exactly what each row sends. Fixed Editor frame no longer crashes when a setting slug points to a missing on-disk pack. Previously, the file-not-found branch in (added so a missing pack wouldn't cascade-break the templates panel) called without first loading the library — then threw and the whole editor frame failed to render. The library is now loaded immediately before the call, and the entry is flagged \"always log\" so it appears in Tools → Logs → Developer Log regardless of debug level. Exposed by deleting the bundled , , template-pack directories without first un-checking them in the Template Packs settings. [0.9.48] — 2026-05-30 Added Typography panel toggle. New General-settings switch ( , default on) that hides ContentBox.js's sidebar Typography panel and its toolbar button when disabled. The Typography panel is section-scoped by design — editors picking different presets per section is a common source of inconsistent typography across blocks. When the toggle is off, the existing setting is the intended driver (loaded into the canvas via and into the front-end via the runtime enqueue / placeholder), giving sites a single source of truth for fonts, sizes, and headings. ContentBox does not expose a clean disable API for the panel, so the implementation injects a rule for and into the outer editor frame's block. Existing installs pick up the default on upgrade via an idempotent migration in ; this change does not affect the canvas iframe, the rendered front-end output, or any other setting. [0.9.47] — 2026-05-20 Added Parent-entry context tokens for Dynamic Content embeds. Embedded EE templates can now reference the PageCraft entry being rendered via and tokens. Use them in place of (which doesn't resolve reliably inside a fragment parse — symptom: returning all entries instead of the current one). Example: Tokens for unset keys substitute to empty string, so a literal is harmless. Wired through both render paths: (the in-channel-loop case) and (the standalone case). Implemented as — a static helper both paths share so they can't drift. [0.9.46] — 2026-05-17 Added Dropdown \"Distance from Nav\" control. New field in the Nav Items modal's DROPDOWN tab, sets the gap between the nav and the submenu when a parent menu item is hovered/focused. Drives consumed by . Range 0–5 (same scale as the other margin controls), stored as on the plugin element. Changed Color swatch + override-checkbox order swapped. v0.9.45 had which made the empty checkbox the most prominent element and the swatch easy to miss (especially when the value was white-on-white). Now — swatch is the primary visual + click target, checkbox is the secondary override toggle on the right. Border bumped from → so the swatch is always findable even on white values. [0.9.45] — 2026-05-17 Fixed Section Background Color now actually paints the nav bar. Root cause exposed by the v0.9.44 diagnostic: stale attributes left over from v0.9.39-and-earlier entries were winning over the section bg via the priority. The user could see the section bg detection working perfectly in the console (tracking from to as the picker dragged) but the nav stayed translucent-white because legacy always won. Fix: removed the legacy priority entirely (the nav-specific bg picker is gone from the UI as of v0.9.40, so there's no longer a reason to honour the old attribute) and strip from the element on first mount under v0.9.45+ so the stale value doesn't keep leaking back. Changed Color swatches now render as 40×40 px squares matching CB's existing section box swatch size — was a 52×34 rect. Added so the swatch sits above any modal-overlay click capture (related to the user's report that the Background Color swatch was harder to click than the Text Color swatch — both should now be equally hittable). [0.9.44] — 2026-05-17 Changed Toolbar reverted to light pill (white background, dark icons, soft border + shadow) matching existing CB UI patterns. v0.9.43's dark pill was a misread of the body content toolbar's actual styling. Color swatches reverted to native HTML5 at a fixed 52px width. v0.9.43's CB- -backed button rendered as a thin sliver because the integration from plugin context didn't reliably mount the Pickr popover. Native picker is reliable across all browsers; brand-color swatch support is deferred to a separate follow-up. Swatch is now visibly clickable (52×34 px with a 1px border and 2px inner padding so the colour swatch reads). Fixed (in progress) Section Background Color reaching the nav — still being debugged. v0.9.44 widens detection to probe the section itself AND its / / descendants for inline and the various data-attr keys CB might use, and tightens the MutationObserver to watch attribute changes on the section's full subtree (was section-only). Adds a entry to the canvas console so the inputs to the picker decision are visible — please open canvas DevTools → Console and paste a sample log line after picking a section bg colour so we can identify the exact CB persistence path on this install. [0.9.43] — 2026-05-17 Changed Per-item toolbar restyled to match CB's body content edit toolbar — dark pill shape with white icons (was light rounded-rect with dark icons). Border-radius bumped to fully round; background ; icon hover is a subtle white-alpha highlight. Color swatches now render at proper width. v0.9.42's color input collapsed to a thin vertical line inside the row2 grid because defaulted to \"auto\" content size. Added on the swatch and on the row wrapper so the swatch fills its grid cell. Color pickers now use ContentBox's (Pickr) — shows the configured brand-color swatches + hue + alpha + rgba text input, matching the section box settings picker the user referenced. Native remains as a fallback if the CB API is unavailable. Both the Nav Items modal and the nav-button modal use the same widget. Nav CTA button modal now tabbed (GENERAL / HOVER / TEXT) matching the Nav Items modal pattern. Label / URL / Style / New Tab stay at the top above the tab bar — they're button-specific, not styling. HOVER tab adds Background Color, Text Color (Dark / Light / Current), Border Style. TEXT tab adds Font Size, Upper/Lower (B / Aa / U), Letter Spacing. Hover styling persists via a element inside the nav plugin, with each button getting a stable and a per-button rule scoped to that ID. New DROPDOWN tab on the Nav Items modal — controls for the submenu panel: Background Color, Text Color, Hover Background, Hover Text Color, Dropdown Radius, Item Padding L/R + T/B. Wires through CSS variables consumed by and rules in . Fixed Section's Background Color picker now reliably paints the nav bar. v0.9.41's section-bg read checked and only; if CB writes the section's bg under a different attribute name the nav never picked it up. Added fallbacks for , , , and a final catch-all that handles any CSS-rule-driven background. Widened the MutationObserver to watch ALL section attribute changes (was filtered to + ) so any picker write triggers a repaint. Internal New + helpers in . Hover CSS rules are emitted as so they're scoped per-button and survive -element HTML round-trip. / extended with eight new dropdown keys: , , , , , , , . Stored as attributes on the plugin element; CSS variables consumed by / in . mount() re-applies on every canvas init so values persist across reloads. [0.9.42] — 2026-05-17 Changed Nav-link edit modal redesigned to match CB Button modal pattern + scoped GLOBALLY. Per user direction: clicking any or in the canvas → toolbar → Edit now opens a tabbed modal with three tabs ( / / ) mirroring CB's Button modal layout. SAVED and TEMPLATES tabs are intentionally omitted. Changes apply to every nav-link in the nav instance, not the clicked one — settings live as attributes on the plugin element and drive CSS via inline CSS variables. The earlier per-link modal (v0.8.0–v0.9.41) is replaced. GENERAL tab: Background Color, Text Color, Width, Border Style, Border Thickness, Padding Left/Right, Padding Top, Padding Bottom, Border Radius, Margin Left/Right/Top/Bottom. HOVER tab: Background Color, Text Color (Dark / Light / Current), Border Style. TEXT tab: Font Size (12–32 px presets), Upper/Lower (B / Aa / U), Letter Spacing (0–200 with 25-unit steps). Per-item style controls removed from the slideout menu-items editor. The old \"Item Style\" subpanel (Background / Text / Weight per row) was redundant with the global modal and led to drift between the two surfaces. Slideout rows now show only label / URL / new-tab / delete + add-submenu controls; all visual styling moved to the canvas-side modal. Per-item style attributes no longer written into nav-link HTML by . Markup stays clean; styling is global via CSS variables on the plugin wrapper. Internal New helpers in : , . Both operate on keys, not on individual elements. also reads those keys and re-emits the CSS variables on every canvas init so values render correctly on reload. : rules refactored to read from CSS variables with sensible fallbacks. New rule for . Legacy per-item / / attributes on individual elements are no longer written, but old entries that still carry them are unaffected — there's no read-side that consumes them now, so they render with whatever the global CSS variables produce. [0.9.41] — 2026-05-17 Fixed Per-item nav-link toolbar still didn't fire after v0.9.40's capture-phase click handler. ContentBox uses (not ) for its selection chain, and likely calls / on the mousedown that would have otherwise generated a click — so our click-capture listener never fired. Added a -capture handler in parallel with the click handler on the canvas document. Mousedown reaches the document before any descendant handler can suppress it. Also added a console.log so the canvas console shows whether the handler fires and how many / / elements were detected on mount — useful for further diagnosis if needed. Source segmented toggle stopped working after the first click. CB's settings form re-renders on every event (see in ), which replaces the rendered we'd upgraded with a fresh one — and our v0.9.40 one-shot upgrade scan didn't catch the new select. Replaced the bounded setTimeout sweep with a persistent on the parent document body that re-runs on every DOM mutation. Idempotent via so already-upgraded selects skip cleanly. Section's Background Color now paints the nav bar. v0.9.40 made transparent so the section bg \"shows through\" — but the nav is , so once the user scrolls past the section height the section bg scrolls out and the nav becomes truly transparent over the page content. Now reads the section's (or fallback) and applies it directly to so the nav stays painted regardless of scroll. A on the section's and attributes keeps the nav in sync when the editor changes the section's bg picker live, no save+reload needed. Changed Source toggle labels shortened to / (were \"Native (manual menu items)\" / \"Structure (EE page tree)\"). Fits the segmented button widths cleanly and matches the user's verbal naming. [0.9.40] — 2026-05-17 Fixed from . The periodic 2-second save tick could fire before ContentBox finished initialising the canvas iframe and set its internal reference. CB's does as its first line and crashes when wrapperEl is undefined. Guarded to skip cleanly when is missing, and wrapped the call in a try/catch so any future races log + skip instead of flooding the console. The next tick (or onChange) catches the actual content once init completes. Per-item nav-link / submenu-link toolbar still didn't appear after v0.9.39's delegated-handler fix. Binding to the nav wrapper bubble-phase wasn't enough — ContentBox's own click chain was stopping propagation higher up before our handler fired. Re-bound to the canvas DOCUMENT in CAPTURE phase, which fires before any descendant capture or bubble. Now reliably surfaces the Edit / Delete toolbar on click of any or — including links injected later by in Structure mode. Changed Removed the nav-specific Background Colour setting entirely. Was producing a second color picker in the slideout that duplicated the section box's existing Background Color (already at the top of the slideout via CB's section settings). Confusing — both pickers drove the same visual. Now the nav bar inherits the parent section's background color directly. The CSS defaults to transparent so the section's bg shows through. Legacy entries that still have saved are honoured at mount time for backwards compatibility — the inline override is applied so the visual doesn't change. New entries simply use the section picker. Source and Width settings now render as segmented two-button toggles matching the visual style of CB's Responsive panel's Visible | Hidden control. Implementation: kept the underlying declarations so CB's save round-trip still works through the native element, then upgrade the rendered DOM in — hide the select, insert a segmented button widget next to it, wire button clicks back to so CB's form listener picks up the change. Idempotent via , polled at 0 / 60 / 250 / 800 ms to catch the settings panel render whenever it happens. The select stays in the DOM ( ) as the source of truth. [0.9.39] — 2026-05-17 Fixed Nav-menu per-item edit toolbar regression. Clicking a or in the editor canvas now reliably surfaces the floating Edit / Delete toolbar (the modal opens with the full visual field set — Background / Text / Font weight / Font size / Width / Border style/thickness/radius / Padding L/R + T/B / Margins L/R/T/B). Cause: the per-element click handlers at the end of only bound to elements that existed at mount time — when (Structure mode) or any other in-place DOM rewrite replaced the innerHTML, the new elements had no listener and the toolbar silently failed to open. Replaced with a single delegated click handler on the nav wrapper using , with previous-handler cleanup on re-mount so the latest mount's closure wins (no stale references to detached toolbar elements). Changed Slideout settings panel no longer carries per-button styling controls. The Customize → BG Color / Text Color / Border / Padding / Margin / Border Radius / Width block that lived inside each CTA button's slideout row (lines 1278–1431 of ) is removed. The same field set lives on the canvas-side click→toolbar→ path, which has room for the full UI without the slideout's real-estate constraints. The two surfaces were drifting; cutting the slideout copy resolves it. Slideout button rows now show only label / URL / style / new-tab + add/delete/reorder. Nav-bar Background Colour is now a proper color picker. Was (hand-type or ); now , which renders ContentBox's Pickr-style picker with hue + alpha slider + swatches + rgba text output — the same widget Section box settings use. Existing saved values (hex or rgba) round-trip unchanged. Layout dropdown: Side Nav removed. The fixed-left-sidebar variant was lightly finished and crowding the dropdown. Removed from the option list, removed from (~80 lines of / rules), and now migrates any saved entries to automatically so existing entries don't break. Source and Width settings converted to dropdowns. \"Use Structure to Generate Navigation\" was a checkbox → now with options and . \"Full width\" was a rendering as \"Full width / true\" plain text → now with options and . Underlying data round-trip is unchanged; this is purely a clearer UI label and explicit two-state semantics. (Note: true segmented two-button-group rendering — matching the Responsive panel's Visible / Hidden control — needs a CB field-type addition we don't have; deferred.) Internal No DB migration. Saved entries from v0.9.38 and earlier render unchanged. All four nav-menu items live in a single file — . Repo's bundled copy ( ) synced from the deployed local copy. [0.9.38] — 2026-05-16 Added Copy/Paste Phase 3 — style paint-brush. Right-click any element / block / column / section → menu now includes \"Copy styles (kind)\" which captures only the target's inline attribute + class list (no inner HTML, no CSS-rule extraction — just the visual properties applied to that one element). The clipboard stores it as with a field. Right-click another element of the same kind and pick \"Paste styles (to kind)\" to apply the inline style + classes wholesale, like Word's Format Painter or Figma's \"Copy properties → Paste here.\" Marker-class preservation. Pasting styles onto an element does NOT clobber the CB-required marker classes for the target's kind: for elements, for columns, for sections. After the class swap we re-add any missing markers so CB still recognises the element after paste. Block-kind has no class marker (identity comes from ) so its full class list is replaceable. Same-kind restriction. Style paste only enables when the right-click target has an ancestor of the same kind as the source. Element styles can only paste onto an element; column styles can only paste onto a column. Prevents the obvious foot-gun of pasting section styles onto a paragraph and losing the paragraph's CB markers. What travels with styles: inline attribute + attribute. Does NOT travel: rule-based styling that lives in / for non-class selectors. If your styled element relies on entry-wide CSS rules that match by tag or attribute, those don't come with — use (Phase 2) instead, which walks and brings matching CSS rules. [0.9.37] — 2026-05-16 Added Copy/Paste Phase 2 — columns, blocks, and elements (right-click menu). The right-click clipboard now works at every level of the ContentBox hierarchy, not just sections: — text/image elements (paragraphs, headings, individual images) plugin blocks (nav-menu, swiper-slider, accordion, …) inside a CB — columns — full sections (already shipped in v0.9.34) The resolver now walks ALL ancestors of the right-click target, not just the deepest match. Right-clicking inside a paragraph that lives inside a column inside a section shows Copy element / Copy column / Copy section stacked top-to-bottom — pick the granularity you actually want, no need to right-click on an empty edge of a wrapper. Paste options only appear when the clipboard's kind matches a found ancestor, so you can't accidentally try to paste a section inside a paragraph. When the clipboard contains a non-matching kind, the menu shows a disabled \"Clipboard: section (no match here)\" hint so you know the clipboard isn't empty, it's just incompatible with the right-click target. Pastes for all four kinds use the same code path — generic and replaced the section-specific helpers. CSS-rule walking, sectionCss merge with dedupe, and re-decoration (so toolbars/handles appear immediately) all flow through one implementation. Internal Replaced the v0.9.34 (deepest-match) with (all-ancestors). assembles the menu dynamically per right-click. Old / consolidated into / . ~70 net new lines in . [0.9.36] — 2026-05-16 Fixed Pasted sections now get their ContentBox toolbar / drag handles / click chain immediately, no save+reload required. v0.9.34's inserted the cleaned markup via but didn't tell ContentBox about it, so the new section had no overlay, no Add/Move/Settings/Delete buttons, and clicking inside it didn't engage CB's editor — until the user saved the page (at which point a fresh from saved JSON triggered CB's normal section setup pass). Fix: after inserting, call with the same two-pass + 150 ms layout delay pattern that Grid Builder's column split uses ( around line 942). Also fire so CB's own debounced save path kicks in alongside our direct postMessage — belt-and-suspenders. Pasted sections are now fully interactive the moment they land. [0.9.35] — 2026-05-16 Fixed v0.9.34's copy/paste IIFE broke the editor canvas due to a PHP-heredoc escape clash. The new paste-merge code contained inside JS string literals (to join CSS rules with newlines). The outer editor frame's heredoc is unquoted, which means PHP processes backslash escape sequences inside the body — so in my JS source became an actual newline character in the rendered response, landing inside a JS single-quoted string literal. Browsers reported at the rendered file's column ~55 of that line, ContentBox never finished initializing, and the canvas didn't load. Fix: escape the backslash ( ) so PHP renders the literal two-char sequence into the JS source. v0.9.34's intent (copy/paste sections via right-click) now works as designed. Lesson encoded for future canvas-side JS changes inside the outer heredoc: any backslash escape inside a JS string literal must be written as in this PHP source so the rendered HTTP response carries the single backslash through to the browser. Same gotcha would bite , , , etc. [0.9.34] — 2026-05-15 Added Copy/Paste sections in the editor canvas (right-click menu). Right-click any section in the canvas to get a context menu with Copy section / Paste section above / Paste section below. The clipboard is a single JSON payload stored in on the CP origin, so it survives page reload and is shared across browser tabs — copy a section in one entry, navigate to another entry, paste it there. On copy: ContentBox editor-only markup is stripped ( , , , , etc., mirroring the set used by ), then the entry's + are walked for rules whose selectors match elements in the copied subtree. Matching rules travel with the markup. On paste: cleaned markup is inserted as a sibling above/below the right-clicked section, matched CSS rules are merged into the destination entry's (de-duped against existing rules), and the canvas requests a save. The pasted section's blocks (sliders, accordions, etc.) re-initialise normally because ContentBox's runtime watches the iframe DOM for new nodes. This is Phase 1 of the copy/paste system per the approved plan; column / block / element granularity ships in v0.9.35 and the style paint-brush in v0.9.36. v1 deliberately skips , , and rules during CSS extraction (top-level rules only) — adequate for the common case where sections are styled flat. Internal All copy/paste logic lives in a self-contained IIFE inside (added after the existing Save-as-Section block, ~line 1230). No new DB tables, no new ACT endpoints — purely client-side. [0.9.33] — 2026-05-12 Fixed Dynamic Content sections that use animation libraries now show their content in canvas. Editors reported seeing the embedded template's wrapper containers but no content inside — common with Crafto-style themes that use AOS / anime.js / / to fade content in on scroll. The cause is that template-embed paints the rendered HTML via , and per HTML spec tags inserted via are inert — they parse but never execute. So the animation library never initializes and elements stay at their pre-animation state ( , transformed offset). Added a canvas-only CSS shim to that forces visibility on the common hide-until-animate markers ( , , , , , , , ). The shim is scoped to , which only exists in the canvas — on the front-end replaces the section and strips the attribute, so production animations are never affected. Sliders may still not slice/auto-rotate in canvas (that needs the JS to run, which is a separate fix), but at least the content is visible for layout-positioning purposes. [0.9.32] — 2026-05-12 Fixed Swiper-slider new slides actually appear now. v0.9.31 fixed the slide HTML structure but the new slide still rendered blank — and the cause turned out to be Swiper itself, not the markup. The \"+ Add Slide\" handler was appending the new directly to without telling the Swiper instance, so Swiper's internal slide registry never saw it. Because the plugin's CSS keeps at until the parent slide gets , and that class is only set by Swiper on slides it knows about, the new slide stayed invisible (image and caption both). Fix: after appending the slide, call and so Swiper picks up the new slide and immediately navigates to it — the user sees their new slide and the caption fades in. [0.9.31] — 2026-05-12 Fixed Nav-menu z-index bumped from 1 → 99 ( ). The sticky nav was being overlapped by Dynamic Content sections and other content with stacking contexts above 1. Z=99 stays well below modal/toast z-indexes (which the plugin uses at 99997+) while comfortably winning over generic page content. Swiper-slider \"+ Add Slide\" no longer drops the placeholder content. The Add-Slide handler in produced a stripped-down slide ( with a single and ) that didn't match the structure the seeded slides ship with — no on the caption, no eyebrow , no Read More button. New slides now mirror the seed structure so the placeholder layout is preserved. Swiper-slider hardening against host-theme CSS conflicts. When the host theme (e.g. Crafto) loads its own , several plugin rules lost the cascade fight. Added scoped to: centering ( , , , , ) so the dots/bars no longer flush left when a host theme overrides Swiper's defaults. Nav-button arrow glyphs — every (all three style variants: transparent / solid / arrow) now forces , explicit , and visibility. Host themes that null out Swiper's content (or swap the font for FontAwesome) no longer hide the arrows. Hover transitions — baseline on the nav buttons and (or for solid) on hover, so any host-theme hover effect can't displace the button. Circles now grow in place instead of jumping down. Internal No version-gated behavior change in PHP — this release is plugin-asset only. version still bumped so CP shows a tracked release. [0.9.30] — 2026-05-12 Reverted The max-width override from v0.9.29. Misread the user's intent: the embedded template's cap at 1320px is intentional design — the template author chose (centered, bounded) rather than (full width) for a reason, and we shouldn't break it. The actual intent was for the section wrapping the container to stretch to full viewport width, with the container then centering content inside that section. The v0.9.28 wrapper-chain neutralizers already make the section full-width by uncapping CB's . The 1320px-container-inside-full-width-section pattern is what the template author designed, and now matches. Internal Canvas iframe cache buster bumped: → . [0.9.29] — 2026-05-12 Changed Override the embedded template's own Bootstrap container max-width inside Dynamic Content sections. Inspector showed the canvas constraint wasn't coming from CB's (we already neutralized that) — it was the rendered template's own capping at 1320px (Bootstrap default, plus a from in the user's theme). Templates use for intentionally bounded layouts, but inside a Dynamic Content section the user wants the section to span the full available width like a CB native section does. Added an override scoped to (canvas) and (front-end) that sets on , . Front-end may also become wider as a side effect of this — if that's undesired, scope the rule to canvas-only by removing the selectors. Internal Canvas iframe cache buster bumped: → . [0.9.28] — 2026-05-11 Fixed Same Bootstrap-stacking bug as 0.9.27, but on the canvas side. The canvas-only neutralizer rules in for and used descendant combinators, so they matched not only ContentBox's own (which we wanted to neutralize) but ALSO Bootstrap's deep inside the rendered template — forcing every Bootstrap column to width:100% with the same reset that broke the front-end. Effect in canvas: even when the container max-width was uncapped, the rendered template's columns stacked vertically. Fix: changed both rules to child combinators ( ) so they reach only CB's immediate row and column inside the section's container — . Bootstrap rows nested inside are at a different depth and don't match the child-combinator chain, so their layout is preserved. Internal Canvas iframe cache buster bumped: → so existing canvas tabs pick up the updated rules. [0.9.27] — 2026-05-11 Fixed Bootstrap responsive columns inside rendered Dynamic Content sections were forced to single-column mobile-mode layout at every viewport size. Diagnosis via DevTools showed was correctly at full viewport width (2182px on a 2455px-wide canvas), but the columns inside still stacked. Root cause: an over-eager rule from v0.9.22 — — had specificity (0,2,0) and beat Bootstrap's responsive rules at (0,1,0), forcing every column to 100% width regardless of viewport. The rule was originally added to re-emit Bootstrap's default padding \"for safety,\" but it was both unnecessary (CB's selector doesn't match Bootstrap's , so there's nothing to restore) AND harmful. Fix: removed the block entirely. Bootstrap's native rule (specificity 0,1,1) still provides default padding/width for any non-col-* child, and the responsive rules now win for col-* children. The rule (gutter margins) stays — that one is genuinely needed to undo CB's clobber. [0.9.26] — 2026-05-11 Fixed template-embed plugin CSS was never being fetched by the browser even though correctly registered it in the runtime script's block. Root cause: ContentBoxRuntime's plugin loader is lazy — it only fetches a plugin's CSS/JS when it finds a matching element in the DOM at init time. After runs, every element has already been replaced with the resolved template (wrapped in ). The runtime sees no in the DOM and silently skips the plugin, even with the registry entry pointing at the right URL. Fix: when the marker is detected in , inject the plugin's URL directly into the existing config array — the same pipeline that already emits at the placeholder via the hook. That bypasses the lazy-load entirely; the browser gets the CSS via a normal tag, the Bootstrap-row reset rules apply, and the rendered Dynamic Content section renders at full width with proper grid behavior. Removed The diagnostic line added in 0.9.25 has been removed. It served its purpose — the log told us the marker detection was working, which narrowed the bug down to the asset-fetch layer. [0.9.25] — 2026-05-11 Diagnostic Added a one-shot call inside that logs the html length, whether the marker is present, whether the attribute is still present, and the current state of the static and local lists. Visible at CP → Tools → Logs → Developer Log after rendering any PageCraft-containing page. Lets us see exactly what enqueueRuntime is seeing per call — to figure out why template-embed registration is failing on staging despite the marker-detection code being in place. Will be removed once we confirm the underlying behavior. [0.9.24] — 2026-05-11 Fixed width now forced via so it can't be shrunk by other rules. User confirmed that manually adding (Bootstrap's ) fixed the rendered-page layout — the prior plain was being overridden by something downstream (likely a framework rule with higher specificity, or flex-shrink reducing the basis). Also added so the wrapper definitely takes the full available width when sitting as a flex item inside . Canvas-side container neutralizer hardened with explicit selectors covering every class combination CB applies to the inner container ( , , , , plus and a wildcard ). When two declarations compete, specificity wins — and CB's own has specificity (0,1,0), so any of our 3- or 4-class selectors beats it cleanly. This forces the canvas wrapper chain to render at full width when wrapping a template-embed plugin, matching the rendered-page behavior. Internal Canvas iframe cache buster bumped: → . [0.9.23] — 2026-05-11 Fixed Rendered Dynamic Content sections collapsed to mobile-mode layout on the front-end — content stacked vertically, section background only filled ~60% of viewport width, large empty space on the right. Root cause: ContentBox's element is , so its direct children are flex items. CB's own rule forces on those, but the new wrapper added in 0.9.22 had no width rule — so as a bare flex item it collapsed to the minimum content width of the embedded template, which then rendered in mobile-mode layout (single-column cards, ~540px Bootstrap container width). Adding to makes it behave like a CB section and the rendered template gets the full viewport width to lay itself out against. Internal Canvas iframe cache buster bumped: → . [0.9.22] — 2026-05-11 Fixed Rendered templates inside Dynamic Content sections were visually shifted to the right because ContentBox's runtime CSS contains an unscoped rule that clobbers Bootstrap's grid: These match ANY / on the page — including ones inside an embedded template's own Bootstrap layout. Bootstrap's widths sum to ~100% already, so CB's added pushed content past the container's right edge, producing a visible sideways shift. Changed wraps the rendered template in at output time. The wrapper is a CSS scoping anchor for the Bootstrap-row reset; without it, there's no reliable way to target \"this is rendered template content, restore Bootstrap defaults here.\" now enqueues the template-embed plugin's CSS on the front-end when is present in the rendered HTML. Previously the plugin CSS only loaded in the canvas (via plugin auto-registration) and on entries that still carried the wrapper marker — neither of which holds true on the front-end post-resolve. The new marker fallback closes that gap. re-emits Bootstrap 5's gutter math scoped to with , beating CB's later-loaded clobber on equal specificity. is unaffected by CB's rule (different class name) so doesn't need a counterpart reset — but we re-emit the standard column padding for safety. Internal Canvas iframe cache buster bumped: → so existing canvas tabs pick up the new reset CSS without manual hard-refresh. Note on the canvas-side container constraint Inside the canvas, the rendered template is still bounded by ContentBox's wrapper chain (~1200px max-width). This is necessary for ContentBox's section/plugin tooling to function and is acceptable as a known visual difference: the canvas is \"approximate,\" the front-end is \"what the page actually looks like.\" A future release can revisit canvas display by suppressing the container max-width specifically inside sections. [0.9.21] — 2026-05-11 Fixed Template selector now opens reliably on Dynamic Content sections — by bypassing ContentBox's click chain entirely for this UX. The 0.9.20 try/catch wrapper on killed the visible crash but didn't help: with the section-tool not yet injected, downstream code that would have triggered also bailed silently, so the selector never appeared. Rather than chase every CB invariant our section happens to violate during early init, the template-embed plugin now attaches its own click handler to the placeholder and the rendered preview. Clicks open a self-contained modal (built in the canvas iframe, dispatched at z-index over everything) containing the template dropdown. On selection, the plugin writes the new path to / , fetches the chosen template via the existing preview endpoint, swaps the placeholder for the rendered HTML, and dispatches an event so ContentBox's autosave picks up the change. \"Change template\" pill added to the rendered preview's top-right corner (only visible in the canvas, marked so it doesn't get saved into entry data). Clicking it re-opens the picker so editors can swap templates without trying to navigate CB's section toolbar. The CB hook is still registered (kept for backwards compatibility with any CB code path that invokes it directly) but it's no longer the primary entry point for the picker. Internal Canvas iframe cache buster bumped: → so existing canvas tabs pick up the new picker without manual hard-refresh. Why this works where 0.9.20 didn't 0.9.20's guard prevented the visible error but / still depended on side effects of having succeeded (active section state, toolbar wiring) that we couldn't replicate from outside. The plugin's is invoked downstream of all of that, so it never ran. 0.9.21 sidesteps the entire dependency by giving the plugin its own click → picker → render pipeline. No , no , no CB selection state required. The plugin element itself is the surface; the click handler is on the plugin's own DOM. [0.9.20] — 2026-05-11 Fixed Template selector never opened on Dynamic Content sections. Clicking the placeholder produced a flood of errors and was never reached. Root cause traced by reading the minified ContentBox source: does followed immediately by — with no null guard between them. When a section's hasn't been injected yet (which happens for template-embed sections during early canvas init and on first click after a fresh picker drop), is null, and the second call explodes. The throw propagates up through , killing the click handler chain before it can invoke the plugin's . The section-tool is injected later by , but for these sections it's not in place by the time first fires. Defensive wrapper around in the editor JS catches the throw, lets the click handler chain continue (so runs and the template dropdown opens), and schedules a one-shot deferred retry 100ms later so the section toolbar still positions correctly once has had a chance to inject the tool. Localised patch — only the one CB method is wrapped, everything else is untouched. Internal Canvas iframe cache buster bumped: → so existing canvas tabs pick up the guard without manual hard-refresh. Why this took several attempts to diagnose v0.9.9 and v0.9.17 changed the seed shape thinking the wrappers themselves were the problem. They weren't — the wrappers were necessary for CB tooling. The real bug was that even with the correct wrapper chain, CB's has an unguarded null dereference that fires whenever a section's tool element isn't ready yet, and template-embed sections happen to hit that timing window. Once the diagnosis traced into the actual CB source (via the minified file's error column number), the fix was a 15-line wrapper. [0.9.19] — 2026-05-10 Front-end-only fix for Dynamic Content rendering distortion. The canvas is left fully intact — the wrapper chain ( ) stays around the embed in the editor so ContentBox's section/plugin tooling keeps working. At output time, the entire wrapper is replaced with just the rendered template, so the front-end gets clean output with no CB-wrapper interference. Changed now replaces the surrounding section (when found) instead of just the embed div. Walks backward from each occurrence (capped to 4KB to avoid spurious matches) for the nearest marker, verifies it's actually a class-attribute match, finds the section's matching via depth-counted forward scan, and splices the rendered template in as a complete replacement for the wrapper span. Falls back to embed-only replacement when no wrapper is found within range (legacy entries from before the marker class existed, hand-edited content). Sanity check: the embed's must close before the section's closes for the wrapper to count as enclosing — guards against the marker being on a different (already-resolved or sibling) section. Pure string scanning, no DOMDocument anywhere. New helper does the depth-counted forward scan that the previous code inlined; both the embed-close and section-close lookups use it. Splicing is only — the rendered template's HTML is never re-serialized through a parser, so the HTML5 mangling that 0.9.12 exposed (script/style content corruption, self-closing tag rewrites, SVG damage) cannot happen. Why this is different from 0.9.12 and 0.9.17 0.9.12 attempted whole-section replacement via DOMDocument round-trip — mangled HTML5, broke pages site-wide. 0.9.17 attempted to slim the saved canvas shape by collapsing and onto one element — broke ContentBox's section-handling code. 0.9.19 leaves the canvas/saved shape exactly as v0.9.16/v0.9.18 had it (full wrapper chain, plugin tooling intact). Only the front-end output changes, via a string-only splice that targets the section boundaries we already control. What you can verify Canvas: unchanged. Drop a Dynamic Content section, pick a template, edit the entry, save — works exactly as in v0.9.18. The canvas still shows the wrapper chain because that's what ContentBox needs to host editor tooling. Front-end: view the published page or — the rendered template should now occupy its natural width and layout, with no cap, no interference. View source: where you used to see the full wrapper chain wrapping the rendered template, you should now see the rendered template at the same DOM level as its sibling sections. [0.9.18] — 2026-05-10 Revert release. Rolls back 0.9.17's single-element Dynamic Content seed, which broke ContentBox's section-handling code. Reverted 0.9.17 — single-element seed and migration. Putting and on the same DOM element confused ContentBox: its section-handling walks up from a plugin element looking for an enclosing ancestor, found itself, then crashed in (during save serialization) and (during when an editor clicked into the canvas). Net result: clicking a new Dynamic Content section produced a flood of errors and the template selector never opened. Same shape problem as 0.9.9, just expressed differently — and the plugin element have to be distinct DOM nodes for CB to function. The render-time container-class injection ( ) and canvas warning banner from 0.9.17 are also reverted. They were neutral on their own, but they only made sense paired with the slim seed — with the wrapper-chain shape back in place, injecting onto a template element nested inside CB's existing doesn't do anything useful (CB's outer container still applies its width cap). Behavior restored Dynamic Content seed is back to the 0.9.16 shape: full chain. Plugin selector works, save/load works, canvas tooling works. Template still gets the wrapper-induced layout distortion when its own grid framework collides with CB's — that's the unsolved problem 0.9.17 tried to fix and we'll re-attempt with a different shape later. Migrated The 0.9.17 migration corrupted the seeded row in to the broken single-element form. The DB row was restored manually for this install. Future installs and updates use the original v0.9.16 wrapper-chain seed. What we learned (worth not re-litigating) + on the same element is a no-go. CB's internal model assumes plugin elements are children of sections, not the section itself. Any further attempt at slimming the Dynamic Content shape needs to keep and on separate nodes. The minimal viable structure is at least — but as 0.9.9 showed, that combo (without the row/column chain) also confuses CB's plugin scanner. We need to find what CB actually requires, not what we hope it tolerates. [0.9.16] — 2026-05-09 Fixed Image uploads from the canvas were 403'ing with a non-JSON HTML error response ( ). Root cause: the canvas iframe captures EE's session-tied CSRF token at iframe-load time and caches it in a JS variable for the life of the tab. When EE's CSRF token later rotates (login/logout, session refresh, some middleware events), the cached canvas token goes stale. EE's (legacy/libraries/Core.php line 942) then rejects the upload POST with a 403 + HTML \"csrf_token_expired\" page. Because the canvas's handler does unconditionally, the HTML body explodes the JSON parser and ContentBox's image-insert flow silently fails. This is the same class of failure that affects any long-lived canvas tab, not something specific to a particular session. Changed ACT is now . Defense-in-depth replacement: now does a same-origin check (Origin or Referer header must point at this site's host) in lieu of CSRF token validation. Browsers always send Origin on cross-origin POSTs and never let attacker JS forge it, so a forged form on is detectable even with cookies attached. The auth check (member must be logged in) and upload-destination permission check (member must have access to the destination) are unchanged. Net security posture: equivalent for legitimate users, no longer breaks on session token rotation. New runs on both install() and update(). Sets on the upload action row in . Idempotent. Migrated Existing installs running update() will get the upload action flipped to automatically. No manual DB step required. [0.9.15] — 2026-05-09 First step of the Grid Builder UX overhaul (designs in Figma — six frames reviewed). This release fixes the two long-standing bugs in the column-split flow without adding any new UI; subsequent releases will land the per-column toolbar and the split-aware block picker. Fixed New column wasn't clickable until you saved and reloaded after a horizontal split. ContentBox's selection runs on (not ), and only fires for elements that have . The freshly-created was inserted without that attribute, and the post-insert was firing before finished re-attaching CB's handlers — so the click event reached an element CB hadn't yet decorated, and selection silently failed. New activation helper seeds on the new column up front, clears from siblings to reset visible selection, and dispatches a real bubbling mousedown/mouseup/click sequence that CB's delegated handlers actually listen for. Save round-trip is no longer required. Parent column became unselectable after a vertical split. was stripping along with from the outer column on the assumption that \"ContentBox will make the inner columns editable\" — but that also removed the parent's CB selection hook entirely, leaving no way to click back to the outer wrapper to apply column-level settings or undo the split. The fix keeps on the parent (only is removed, since the outer is now structural) and sets explicitly on both new inner columns so CB recognises all three as click targets without waiting for to redecorate them. Clicking inside a sub-cell selects the sub-cell; clicking the parent's gutter/border area selects the parent. Added a marker class to the parent for future styling hooks. Internal Canvas iframe cache buster bumped: → so existing canvas tabs pick up the new split logic without manual hard-refresh. Coming next Per-column right-edge mini toolbar (matches the Figma design's visual paradigm — same trio that lives on the section toolbar, just oriented vertically and column-scoped). Block picker with Add to Left / Add to Right tabs when invoked inside a split column. Section/column border colour scheme to match the design (peach for sections, dashed blue for active columns). [0.9.8] — 2026-05-07 Fixed Documentation page TOC visually merged with the PageCraft tabs sidebar. The grid had no padding so the TOC column sat flush against the white panel's left edge, leaving no visual gap between the addon's tabs sidebar and the docs TOC. Added -equivalent padding (24px / 32px), a vertical divider on the right of the TOC, and tightened the TOC width from 240px → 220px. Group banner missing in body. The User Guide / Developer Reference labels appeared in the TOC but the body just concatenated all sections with no break, so a reader scrolling through couldn't see when they crossed from User Guide into Developer Reference. Body now renders a pill-style \"User Guide\" / \"Developer Reference\" banner immediately before each group's first section. Markdown body typography tuned for tighter heading hierarchy (h1 24px / h2 17px / h3 14px) and slightly more generous line-height for paragraphs and lists. Narrow-viewport breakpoint widened from 800px → 900px so most laptop windows still get the two-column layout. [0.9.7] — 2026-05-07 Added Comprehensive in-CP documentation. The CP → Add-Ons → PageCraft → Documentation page now renders an eleven-section guide split into a User Guide (Installation, Getting Started, Editing Sections, Nav Builder, Global Header & Footer, Grid Builder, Dynamic Content) and a Developer Reference (Editing Existing Templates, Importing Custom Templates, The Class Marker System, Template Tags Reference). A sticky left-rail TOC anchor-links every section. ~5,900 words total. Source of truth in . All documentation is authored as Markdown under at the addon root and rendered into CP at request time, so GitHub readers and content editors see the same content with no manual sync. Files: through , plus as the GitHub-facing index. — a 170-line in-house Markdown → safe HTML converter sized for the addon's needs (headings with slug ids, paragraphs, single-level lists, fenced and inline code, bold/italic, links). Rejects / URL schemes; allows http/https/mailto and relative paths. Linked the existing from the new documentation page so site builders can jump to the annotated HTML examples. Changed Root now points at for the full guide instead of carrying inline tag references. Installation instructions condensed since ContentBox is bundled (the README previously asked users to install ContentBox separately, contradicting v0.9.1's vendor bundling). [0.9.6] — 2026-05-06 Fixed Bloqs fieldtype parser annotations leaked into the editor canvas preview as visible text ( / ). The existing strip in only matched annotations whose tail was a 16+ char hex run ( ); Bloqs uses a numeric shape so it slipped through. Generalised the regex to match where each token is alphanumeric/underscore/hyphen and contains no spaces — covers , , , and any future addon-style annotation, while still leaving legitimate human comments like alone (those have spaces). [0.9.5] — 2026-05-06 Fixed ACT was never registered in on existing installs, causing to return 0, which produced URLs like (a 200-OK empty body) when the template-embed plugin tried to populate its dropdown. Two-part fix: Added and to (they were declared in but missing from the upd class, so EE never auto-inserted them on update flows). New runs on every update: iterates and inserts any row missing from . Self-heals against any future ACT we forget to migrate. Idempotent. [0.9.4] — 2026-05-06 Fixed Section picker silently lost Grid Builder + PageCraft (and every other PageCraft pack registered after a missing pack). The default setting included the three Crafto packs ( , , ), which we deliberately don't redistribute. On any install that didn't already own those packs, the canvas tried to load → 404 → ContentBox's templateList processor halted on the JS error and never reached the entry that loads . Result: the canvas picker showed only Simple Start / Quick Start / Animated and skipped everything after the first missing pack — even though the data was correctly present in the DB and in the JS file. Two-part fix: Default no longer enables the Crafto packs. Users who own them can enable in CP → Add-Ons → PageCraft → Block Library. now filters the templateList to packs whose actually exists on disk (logs the skip to developer log). Self-heals against any future missing-file scenario. Canvas iframe cache bump so existing entry-edit tabs pick up the new server-side template list on reload. [0.9.3] — 2026-05-06 Added \"Regenerate File\" button on CP → Add-ons → PageCraft → Sections. Manually rewrites from the current DB contents and reports the outcome inline. Existed silently in before but failures were swallowed and there was no way to retry. Now surfaces the exact reason (e.g. \"file is not writable by the PHP user — fix permissions on …\") so remote-host installs can self-diagnose. Fixed no longer silently overwrites a non-empty bundled JS file with empty arrays when the DB has no categories/sections yet. Previously, running install/update on a fresh DB clobbered the bundled (which carries Grid Builder + PageCraft data out-of-box), leaving the canvas picker empty. The writer now refuses the destructive write, logs to the developer log, and returns success so the bundled file stays intact until real data exists. write failures now throw a with a permission-aware hint instead of silently returning . The new \"Regenerate File\" CP button catches the exception and shows the real cause; install/update logs it and continues so the rest of the migration completes. Root cause of the remote-server \"Grid Builder and Dynamic Content sections show in the manager but never on the canvas picker\" report. [0.9.2] — 2026-05-06 Added Seed default Grid Builder + PageCraft sections on install/update. The bundled listed Grid Builder columns (1–5 col, narrow/wide pairs) and the PageCraft \"Dynamic Content\" template-embed section, but neither the categories nor the sections existed in / on a fresh install — so when ran it overwrote the bundled JS with empty arrays and the picker lost both categories. New inserts them on every install and on every update; idempotent (matches existing rows by name and skips them, never touches user data). Fixed plugin's \"Failed to load templates\" surfaces the real error and is no longer selectable. When the template-list fetch returned an error or non-array shape, the plugin appended as a regular whose value defaulted to the text — selecting it (or any change event firing on it) saved that string as the entry's template path. Now the option is , the actual error message is appended ( ), and the underlying failure is logged to so remote-install issues are diagnosable from DevTools. Empty results render a separate disabled \"No templates found on this site\" option. Also added explicit to the fetch. [0.9.1] — 2026-05-05 Added ContentBox.js vendor files now bundled in the repo. The full tree — ContentBox 5.x core, ContentBuilder, the front-end runtime, every stock asset directory (fonts, styles, scripts, modules, etc.), and the stock block / template packs ( , , , , ) — ships with the addon. Fresh installs are now self-contained: no separate ContentBox download required. Vendor files are redistributed under the Bison Digital developer license; downstream users redistributing must purchase their own. Auto-regenerate on install/update. New runs after install and after every update, rewriting the section picker's JS data with the local install's actual theme URL. Fixes the case where a fresh download carried the snapshot URLs from another host. Fixed Hardcoded template directory broke template lookups on EE installs with a non-default . Three call sites ( , template-embed render, ) now read and fall back to only when unset. This was the root cause of \"Dynamic Content template selector fails to load templates\" on remote installs. shipped with absolute thumbnail URLs, breaking the section picker on every install but the original dev box. Replaced with root-relative paths so the file works out-of-box on any host before the writer ever regenerates it. cleaned up. Removed the ContentBox vendor exclusion section (since vendor files ship now). Added explicit ignores for , , and the third-party Crafto packs that aren't redistributable. Theme README rewritten — single-step install instructions; no second-stage ContentBox manual install needed. [0.9.0] — 2026-05-04 Added PageCraft theme assets ship in the addon repo. Previously the addon's shipped with only a README, leaving fresh GitHub installs without the custom plugins, block packs, and section templates the addon depends on. The repo now tracks , , , , and . ContentBox vendor folders ( , , , etc.) remain ignored and must still be installed separately per the theme README. Per-item visual modal on (nav-menu plugin). Clicking a menu item in the canvas now shows a floating toolbar (Edit / Delete) and an Edit modal with the full visual field set: BG/Text colors, font size/weight, width, border style/thickness/radius, padding (L/R + T/B), and 4-side margins. Mirrors the existing modal pattern. Submenu links ( ) share the same handler. Toolbar omits Delete when (Structure-mode menu set is read-only). Per-item toolbar trimmed to 3 icons. CTA buttons show Edit / Link / Delete; menu items show Edit / Delete (or Edit only in Structure mode). The previous Duplicate icon on was removed for consistency. Fixed Toolbar capture-guard no longer kills its own click handlers. The nav-menu plugin's editor-mode capture-phase guard at previously called both AND on any click inside the nav. The latter terminated the event before it could reach the / bubble-phase handlers, so the Edit/Link/Delete toolbar never appeared. Removed ; alone still blocks link navigation in editor mode. version bump 0.8.0 → 0.9.0 so EE's update flow recognises that staging installs upgraded from older snapshots have a newer version available. backfilled with previously undocumented 0.6.0 / 0.7.0 / 0.8.0 entries (see below) so the file no longer lags the codebase. Internal canvas cache version bumped so iframes re-fetch with the toolbar fix. [0.8.0] — 2026-05-04 Added Template Embed canvas preview. The editor canvas now renders the actual EE template HTML inside blocks instead of a static placeholder. New extracts template lookup + parse so the editor preview ACT and the front-end render share one code path. Strips parser-internal markers; lazy-loads via the EE library loader (TMPL is not auto-present in ACT context); zeroes during parse so / resolve to the public branch. — JSON ACT, output-buffered so stray PHP notices surface in instead of corrupting the JSON envelope. \"PageCraft\" section category + \"Dynamic Content\" section seeded for the picker so editors can drop a template-embed via Sections (not Blocks). Changed refactored to call service. Both and resolvers now prefer and fall back to for back-compat. The namespace survives ContentBox's openContentEditor clone-diff propagation; the namespace was being silently stripped. injects into the canvas iframe (mirrors the existing pattern). [0.7.0] — 2026-05-01 Added Structure-driven Navigation toggle on the nav-menu plugin. When enabled ( ), the rendered nav auto-generates from the EE Structure page tree (top level + 1 sublevel), respects each page's \"Hidden in nav\" flag, and orders by Structure's nested-set . — single source of truth for the nav data shape ( , , , , ). — JSON ACT consumed by the editor canvas for preview parity with the published render. / call new to swap nav-list contents at render time. Uses string scanning (not DOMDocument) to avoid mangling ContentBox HTML5 fragments. Adds matching . injects into the canvas iframe. Preview button on the publish-form toolbar — opens the entry's Structure URI in a new tab (resolves via with substitution). Fixed Custom JS / Custom CSS robustness. and now strip every / / tag (not just outer wrappers) so editors who paste compilations like don't break ContentBox init. Cache headers tightened to + + so a stale broken response can't survive a fix. — custom_js is no longer injected into the canvas iframe (it requires front-end libs the canvas doesn't load — typical on jQuery / Revolution slider halted ContentBox init). strips (ContentBox's per-mount snapshot, otherwise restored on every load and clobbers fresh content) and (legacy backup attr that compounded encoding through repeated round-trips). — when a field's saved HTML is empty, seed the canvas with a minimal + + shell so ContentBox has a drop zone. Without this, drag-from-picker silently failed because there was nothing to drop into. [0.6.0] — 2026-04-15 Added TemplateIngest — imports Crafto HTML template packs into the sections DB, rewrites asset URLs, auto-generates dark-background SVG thumbnails, and adds markers for ContentBox inline editing. PackImport — bulk JSON section/category import (replaces or skips existing). Grid Builder category — preset 1–5 column ContentBox row/column layout starters. Horizontal / Vertical split buttons in the ContentBox column \"…\" popup; vertical split divides the active column into stacked nested halves. Save as Section strips ContentBox editor UI artefacts ( , , , , , , ) before saving. — absolute thumbnail URLs supported via empty path config; injected for / markers on JS regeneration. Developer reference template added to . Fixed Template picker thumbnails now render correctly ( avoids double-URL). Imported sections are editable immediately ( on all / / ). Split buttons now read / correctly; removed broken mousedown approach. [0.5.0] — 2026-04-11 Added Global Footer — lock/unlock a footer section as a site-wide component, mirroring the Global Header feature. Super admins see padlock icon buttons injected into the section toolbar ( ) when hovering any section tagged . Locking saves the section HTML + CSS to ( ) and renders it on all pages via . template tag — renders the locked global footer. Accepts the same parameters as : , , . Returns empty string when no locked footer exists, making it safe to add to all templates unconditionally. Quick Start footer templates tagged — all 9 footer section templates in carry on their root div so the toolbar buttons appear automatically after inserting a footer from the template picker. Changed Global Header lock/unlock moved to section toolbar — the Lock/Unlock buttons previously injected into the ContentBox sidebar panel (triggered by selecting the Navigation Menu block) are now injected into instead, matching the footer pattern. The buttons appear on hover of the nav-menu section, no sidebar interaction required. Section toolbar cleanup — both header and footer save paths now strip and row-level editor elements in addition to the existing section/column/element tool classes, preventing ContentBox editor controls from appearing in saved global component HTML. feedback loop resolved — the periodic autosave previously called for change comparison, which caused ContentBox to fire internally, creating an infinite save loop. The interval now calls directly. An guard also suppresses re-entrant callbacks during serialization. Fixed SVG is , not a plain string — calling on it threw a silent that aborted the lock save handler. All class cleanup in save paths now uses / instead. skeleton check (previously required 2000 chars + blocks) rejected all footer saves because footer sections are plain HTML without ContentBox data blocks. Relaxed to a simple 100-character minimum. [0.3.0] — 2026-03-23 Added Per-field content library control — field settings now expose \"Allowed Block Packs\" and \"Allowed Block Categories\" checkbox groups. Leaving both empty inherits the global addon settings; selecting specific items restricts that field to only the chosen packs and categories. Stored as JSON in ; empty string = inherit. threading — the editor frame URL now includes ; both and read that parameter and resolve per-field pack/ category settings before falling back to global settings. Expanded manifest schema — packs can now declare , , and . All three are optional and displayed in the settings page pack cards and the per-field allowed-packs checkbox labels. Settings sidebar nav — CP settings split into four sub-pages (Global Settings, Editor Permissions, Advanced Settings, Documentation) accessed via a persistent left-hand sidebar nav, matching EE's native sidebar pattern. Color palette table — custom color palette upgraded from plain textarea to a structured swatch + hex + name table with drag-to-reorder rows and trash-icon delete buttons. setting — new boolean toggle restricts editors to the custom palette only, hiding the free-pick color input in the editor. Documentation sub-page — built-in reference for template tags and field tag usage, accessible from the sidebar nav. Changed Settings page reorganized — sections now group by domain: General → Content Library (packs + categories combined) → Section Templates → Appearance (color palette, custom CSS/JS) → Permissions → Advanced (AI, canvas assets). Settings page CSS consolidated — all custom styles moved into a single block injected via . No more per-render inline blocks or duplicated rules. Native EE field types — Custom CSS, Custom JS, and Color Palette fields now use instead of raw HTML. CodeMirror and color swatch preview are applied progressively via a single foot block. Canvas Assets simplified — inputs now accept plain URLs instead of raw / tags. The server generates the correct tag on save. Existing stored tags are migrated transparently on load via URL extraction. Canvas Assets split — separate CSS and JS asset lists replace the single mixed list. Existing entries are migrated by type on first load. EE native classes — permissions table uses ; canvas asset \"Add\" buttons use . Custom CSS replaces all hardcoded with CSS custom property. Settings slideout removed — the cog button in the editor toolbar now links directly to the addon settings page ( ) instead of opening an iframe slideout panel. Removes iframe coupling and aligns with EE CP conventions. AI settings moved to Advanced — AI toggle and OpenRouter API key moved from the General section to a new Advanced section alongside Canvas Assets. Card grids unified — Block Categories and Section Template Packs grids now use (200 px minimum column width), matching the Installed Block Packs grid. Equal-height card footers — cards use a flex column layout so the gray footer background always extends to the bottom of the card regardless of content length, keeping all cards in a row visually aligned. Pack card metadata — settings page pack cards now show description, linked author name, version, and category count on a single meta line. [1.3.0] — 2026-03-17 Added Color palette — define brand hex colors in CP settings; passed as the array to ContentBox so they appear as swatches in the color picker. One hex value per line; invalid values are silently ignored. Canvas Assets manager — replace the single field with separate CSS and JS asset lists. Each entry is a raw or tag injected into the editor canvas iframe. Also exposed on the front end via and template tags. Settings slideout — a cog icon in the editor toolbar opens the addon settings page in a slide-in panel without leaving the publish form. (Replaced by a direct settings link in the next release.) and template tags — output the Canvas Assets CSS/JS tags on the front end so canvas-specific files can be loaded for site visitors as well as editors. Changed setting superseded by and . Existing single-URL values are read as a legacy fallback and migrated on first save. seeds , , and settings rows for installs upgrading from 0.2.0. [0.2.0] — 2026-03-17 Added Add-on block pack support — drop any block pack into with a and a manifest and it is auto-discovered by PageCraft. Enable or disable it globally from CP > Add-Ons > PageCraft. manifest format — declares pack name, version, contentJs filename, and a category map ( ). Built-in labels take priority for overlapping IDs; pack-only IDs are appended automatically. EE action ( ) — dynamically merges all active packs into a single JavaScript response served as ContentBox's . Uses IIFE scoping to prevent collisions across packs. Rewrites all image and thumbnail paths to absolute URLs server-side so ContentBox requires no or configuration. passed to ContentBox — controls which category tabs appear in the block picker and their display labels. Installed Block Packs settings section — visual card grid showing every auto-discovered add-on pack with an enable/disable toggle, version, and category count. Global block category management — enable or disable any built-in or pack-only block category via a visual thumbnail grid in CP settings. Pack-only categories are shown with a source badge. Global section template pack management — enable or disable Simple Start, Quick Start, and Animated template packs individually. Role-based editor permissions — map each EE member role to a permission level. Full gives access to all ContentBox features. Content hides per-element settings panels ( ) while preserving text editing, file uploads, and block insertion. Configured per-role in CP settings and enforced at editor load time. Custom Editor Stylesheet URL — a global setting to inject any web-accessible CSS file into the ContentBox canvas iframe, so theme utility classes (e.g. a CSS framework) render correctly while editing. Fixed Category IDs from are JSON-decoded as PHP integers; these were passed as integers into the JavaScript filter array, causing to silently drop all pack-only snippets. All category IDs are now normalised to strings before in , , and the MCP save handler. Setting in the ContentBox constructor caused ContentBox to unconditionally overwrite the custom with a hardcoded path to the built-in , so add-on packs were never loaded. is removed; all paths are now passed explicitly. UTF-8 BOM ( ) at the start of add-on pack JS files caused a silent parse error when the content was placed inside an IIFE body. BOM bytes are now stripped before wrapping. Path absolutization order in — general path replacement now runs before thumbnail replacement to prevent absolute URLs injected in step 4 from being double-replaced in step 3. in pack JS files is now set to an empty string rather than the absolute URL; ContentBox reads this variable as its effective and was prepending it to already-absolute thumbnail paths, producing triple URLs. Changed method registers the action and seeds new settings rows ( , , , , ) for existing installs upgrading from 0.1.0. [0.1.0] — 2026-03-16 Initial beta release. Added PageCraft fieldtype ( ) — embeds a ContentBox.js visual page builder inside an ExpressionEngine publish-form iframe. Upload action — proxies file uploads through EE's native upload library so files are registered in and appear in the File Manager. File picker bridge — opens EE's native file browser inside a ContentBox filePicker modal, allowing existing files to be inserted without re-uploading. Editor frame action — self-contained ContentBox editor page loaded inside an to keep ContentBox UI scoped away from EE's CP chrome. AI proxy actions ( , ) — proxies ContentBox AI Code Chat requests to OpenRouter, supporting streaming (SSE) and non-streaming modes. Configurable model lists in addon settings. extension — replaces placeholder in EE templates with the ContentBox runtime block, enabling plugin blocks on the front end. Front-end template tags: , , , , . Module template tags: , , , . Addon settings page — global upload directory, editor height, AI toggle, and OpenRouter API key (stored encrypted). Per-field overrides — upload directory and editor height can be overridden at the individual field level. Device preview toolbar — fullview (100 % canvas) default; device buttons constrain the canvas to desktop-lg, tablet-landscape, tablet, and mobile widths; expand button returns to fullview. All 32 ContentBox plugin blocks registered via in both the editor canvas and on the front end. CSRF-safe uploads: and headers sent with every upload request to satisfy EE's AJAX-exempt path. Requirements ExpressionEngine 7.x PHP 8.1+ ContentBox 5.x (installed separately into )","breadcrumb_path":"Changelog","url":"/docs/pagecraft/changelog"},{"page_id":31,"title":"00-overview.md","navigation_title":"00-overview.md","summary":"","headings":["Overview"],"body":"Overview Mason is a rich-text and block editor field for ExpressionEngine. Authors write formatted text and drop in reusable content bricks — structured pieces you define once and reuse everywhere. Rich text — headings, lists, links, tables, images, code and more, powered by TipTap. Bricks — schema-driven pieces (a callout, a pull quote, a gallery…) built from simple fields. Define them once in the global Bricks library; each Mason field chooses which bricks it exposes. Presets — save an arrangement of bricks you have already built and drop it into another page in one go. A copy, not a link, so editing it later never rewrites a page somebody has since worked on. Inline storage — everything an author writes, including brick values, is stored inline in the field as JSON. There are no sidecar tables. Think of it as \"Fluid, but better\": one field that mixes prose and reusable structured content.","breadcrumb_path":"00-overview.md","url":"/docs/mason/00-overview-md"},{"page_id":32,"title":"01-installation.md","navigation_title":"01-installation.md","summary":"","headings":["Installation"],"body":"Installation Requirements: ExpressionEngine 7.0+ and PHP 8.1+. Copy the folder into . In the control panel, open Add-Ons and click Install next to Mason. Installing registers two things: the Mason fieldtype (add it to any channel) and the Mason control-panel section, where you manage the global bricks library. That's all — you're ready to add a Mason field and start building bricks.","breadcrumb_path":"01-installation.md","url":"/docs/mason/01-installation-md"},{"page_id":33,"title":"02-field.md","navigation_title":"02-field.md","summary":"","headings":["Configuring a field","Editor Mode","Toolbar","Editor height","Bricks"],"body":"Configuring a field Add a field of type Mason to a channel field group (Developer → Fields → New Field → Type: Mason). Editor Mode Rich Text + Bricks (default) — the full editor plus the brick inserter. Rich Text Only — prose only; no bricks. Bricks Only — bricks only; no rich-text toolbar. Toolbar Which formatting tools this field offers — the equivalent of EE's RTE configurations, scoped per field. Bricks-Only fields have no toolbar, so this setting doesn't apply to them. Basic — bold, italic, link. Standard — adds underline, strikethrough, headings and lists. Full (default) — adds alignment, tables, images, blockquote, code, sub/superscript, abbreviation and the horizontal rule. Custom — pick individual tools from the Custom tools checklist below the setting. Your custom picks are remembered even while a named preset is selected, so you can switch back to Custom without re-ticking everything. Abbreviation marks a run of text as an abbreviation and asks what it stands for, so reaches the site as . Select the text first (or put the cursor inside an existing abbreviation to change it); leave the prompt empty to remove it. Screen readers don't reliably announce a , so spell a term out in full the first time it appears and don't rely on the abbreviation alone. A field saved with a custom toolbar before 1.18.0 doesn't gain the tool until you tick Abbreviation. Buttons are grouped — text marks, headings, lists and blocks, alignment, inserts, styles — with a thin divider between groups. The dividers follow whichever tools are on, so a custom toolbar is grouped the same way as a preset; there is nothing to configure. The toolbar stays pinned to the top of the field as you scroll a long entry, just below ExpressionEngine's publish tabs. Narrowing a toolbar is safe. It only hides buttons — it never unloads the underlying editor features. Formatting already in a field (a table, an image, a code block) keeps loading, displaying and saving correctly even if the tool that created it is no longer offered. Authors simply can't add new formatting of that kind. A brick's Rich text field has its own, separate toolbar setting using the same presets — see Field kinds → Rich text. Editor height The minimum height of the editing area in pixels (default 200). Bricks A checklist of every brick in the global library. Tick the ones this field should offer authors. Manage the library itself under Mason → Bricks — there's a link right in the setting. If no bricks exist yet, you'll see a prompt to create your first one.","breadcrumb_path":"02-field.md","url":"/docs/mason/02-field-md"},{"page_id":34,"title":"03-bricks.md","navigation_title":"03-bricks.md","summary":"","headings":["Creating bricks","Stacks","Binders"],"body":"Creating bricks Bricks live in one global library and are reused across fields. Go to Mason → Bricks and click New Brick (top right). A brick has: Name — what authors see in the inserter (e.g. \"Callout\"). Short name — the machine name used in templates, auto-derived from the name (e.g. ). Same idea as an EE field's short name. Icon — pick from the full, searchable Lucide icon set. Stack (optional) — which stack this brick belongs to (see below). Tabs (optional) — group a brick's fields into tabs such as Content / Settings. A field with no tab falls under the first tab. Fields — the inputs authors fill in for each instance. Each field is a card with a label, a short name, a kind, plus kind-specific settings, a width, an optional tab, and optional conditions. See Field kinds. Click Save Brick. To remove bricks, select them on the Bricks list and choose Delete. Duplicating a brick. Each row on the Bricks list has a clone action next to the edit pencil. It copies the whole definition — every field, tab, and the binder flag — under a fresh unique short name ( ) and opens the copy in the editor. Handy for building bricks that differ only slightly (say, one changed setting or variant) without rebuilding the field set. Update its short name and fields, then Save. Editing a brick's fields affects every field and entry that uses it. Stored values are keyed by each field's short name, so renaming one orphans the values already saved under the old name. The same applies to a brick's own short name. Stacks Stacks keep a large library tidy — the same idea as EE's field groups. The Bricks sidebar lists All Bricks plus a Stacks section: Click New next to Stacks to create one; each stack can be renamed or deleted on hover. Deleting a stack only unstacks its bricks — it never deletes bricks. Click a stack to filter the list to just that stack's bricks; Unstacked shows the rest. Assign a brick to a stack with the Stack dropdown in the brick editor. Stacks also organize the brick inserter menu inside the editor. Binders A binder is a reusable set of fields you define once and bind into many bricks — so a common block (say a \"Settings\" panel of theme, spacing and background fields) lives in one place instead of being recreated on every brick. Editing the binder updates every brick that binds it. Create a binder. Build a brick as usual, then turn on Binding only (binder) in the brick editor. A binding-only brick is hidden from the insert menu — it can't be placed on a page directly; it only exists to be bound. Bind it. When editing another brick, click Bind a binder and choose one. It appears as a locked, tinted block among that brick's fields — you can drag it to reorder and drop it into a tab, but its fields keep the binder's own organization and can't be edited from here (edit the binder itself to change them). Bind more than one if you like. Authoring. On the entry form, a bound binder shows as a tidy, badged container holding its fields, ready to fill in. Templating. A binder's fields merge into the host brick's own namespace — output them with the same tokens as any other field (see Templating). Because it's flat, keep binder field short names from clashing with the host brick's; the editor warns you if they do. Because it's a live reference, editing a binder's fields changes every brick bound to it. Its fields resolve by short name, so renaming or removing one orphans values already saved under the old name — the same rule as a normal brick field.","breadcrumb_path":"03-bricks.md","url":"/docs/mason/03-bricks-md"},{"page_id":35,"title":"04-kinds.md","navigation_title":"04-kinds.md","summary":"","headings":["Field kinds","Options (select, multi-select, radio, checkboxes, button group)","Color","Rich text","File","Listing (channel query)","Per-field settings (all kinds)"],"body":"Field kinds Each field in a brick has a kind that decides how authors enter its value and how it renders. Kind Stores Settings Text string placeholder, max length Textarea string placeholder, rows, max length Rich text formatted HTML toolbar preset (Basic / Standard / Full) Number number min, max, step URL string placeholder, max length Email string placeholder, max length Toggle on / off — Select one value options Multi-select list of values options Radio one value options Checkboxes list of values options Button group one value options Color hex color allowed (any / swatches), default color, swatches Range / slider number min, max, step Date date — Link url + text + target — Grid rows columns (see Grid) Relationship related entries channels, min, max Listing (channel query) a live loop of channel entries channel, limit, offset, order by, sort, link prefix, filter field File / Asset file reference directory, allowed types (all / images) Entry entry reference — (legacy single-ID input; prefer Relationship) Options (select, multi-select, radio, checkboxes, button group) Two modes, toggled in the field's settings: Simple list — a comma-separated list where the value and label are the same, e.g. . Value / Label — a stored value plus a friendlier author-facing label per row (like EE's value/label pairs). The front-end tag outputs the stored value. Color Allowed — Any color (a free picker) or Swatches only (authors pick from a fixed palette). Default color — used when the author leaves it empty (applied at render too). Swatches — the palette shown in Swatches mode. Rich text The toolbar setting picks how many formatting tools authors get: Basic — bold, italic, link Standard — + underline, strikethrough, headings (H2/H3), bullet & numbered lists Full — + inline code, H4, text alignment (left/center/right), blockquote, horizontal rule, subscript/superscript, abbreviation, text color, highlight, and the per-block class / style tools Per-block class & style (Full toolbar). The and tools apply a freeform CSS class or inline style to the block the cursor is in (a , heading, quote, or list) — rendered straight onto that element ( ). An inline style on the element itself reliably overrides theme rules that a class on a wrapping element can't out-specify. Leave the prompt empty to clear. Abbreviation (Full toolbar). Select a term such as , choose the dotted-Ab button and type what it stands for; the site gets . Put the cursor back inside it to change the expansion, or leave the prompt empty to remove it. A isn't reliably announced by screen readers, so still spell a term out on first use. File Directory — restrict uploads/selection to one upload destination (or Any directory). Allowed — All file types or Images only. Listing (channel query) Turns a field into a live loop of channel entries, resolved at render time — so a brick can list real content (a portfolio grid, a blog list, a category index) that a static template couldn't produce on its own. It renders as a loop, exactly like Grid and Relationship. Channel — which channel to list. Limit / Offset — how many entries, and where to start. Order by — entry date, title, url title, or edit date. Sort — ascending / descending. Link prefix — builds each row's as (e.g. → ). Filter field (optional) — a relationship field's short name on the listed channel (e.g. ). Setting this gives authors a category picker on the brick itself, so the same listing brick can be dropped on several pages and pointed at a different category each time. Leave blank and the listing always shows everything. When a filter field is set, the brick shows a Filter control next to the listing summary. The picker searches only the channel that relationship field points at, so authors see categories rather than every entry on the site. Choosing one narrows that instance of the listing; clearing it goes back to listing all entries. Each choice shows how many entries it would actually return, and a choice with none is flagged — so an empty listing is visible as a filter with nothing behind it rather than looking like a broken brick. The count stays on the chip after choosing. If a category reads 0 entries, nothing in the listed channel is related to it via the filter field. The listing will render empty; that's the filter working, not a fault. Each row exposes , , , , a formatted , plus every custom field on the entry by its short name (files resolve to a URL). See Templating → Listing. Per-field settings (all kinds) Every field, whatever its kind, also has: Width — how wide the field sits in the brick: 25 / 50 / 75 / 100% (a four-bar selector; default 100%). Narrower fields tile side by side. Make conditional — show the field only when other fields in the same brick meet conditions you set (\"show this field if all / any of these are true\"), mirroring EE's conditional fields. Hidden fields keep any stored value but render nothing. Tab — which of the brick's tabs the field appears under (see Creating bricks).","breadcrumb_path":"04-kinds.md","url":"/docs/mason/04-kinds-md"},{"page_id":36,"title":"05-repeater.md","navigation_title":"05-repeater.md","summary":"","headings":["Grid","Defining columns","Authoring","Output","Showing a column only on some rows"],"body":"Grid A Grid field holds any number of rows. Each row is built from columns — smaller fields you define on the brick. Defining columns When you set a field's kind to Grid, a column editor appears. Add a column for each cell (label, short name, kind and any options). Columns use the full range of field kinds — text, select, toggle, number, relationship, file and so on. A column can itself be a Grid, letting you nest one grid inside another up to two levels deep (Section → Rows → Items). Authoring Authors get an Add row button; each row can be reordered (drag the grip or move up / down), duplicated, or deleted. Output Loop the rows in your template (see Templating). The row count is available as . Showing a column only on some rows A column can carry conditions, exactly as a brick field can — but they are judged per row. Give a column a rule like \"show when Media type is video\" and the column appears on the rows where that is true and not on the others. Two rows of the same grid can legitimately show different inputs. Set them on the column card in the brick's settings, under the field options. The sources offered are the other columns in the same row — a rule against one of the brick's own fields would be true for every row at once, which is a field condition rather than a column one, and belongs on the field. Hiding never deletes anything. A value already entered stays in the row; make the condition true again and it comes back. On the front end a hidden column simply emits nothing, so renders empty rather than the row disappearing. This is worth knowing about because neither ExpressionEngine's own Grid nor Bloqs can do it — a media grid that asks for an image or a video, per row, is a single Mason grid rather than two fields and a note in the instructions.","breadcrumb_path":"05-repeater.md","url":"/docs/mason/05-repeater-md"},{"page_id":37,"title":"06-templating.md","navigation_title":"06-templating.md","summary":"","headings":["Templating","Full render","Looping bricks","Sub-values","Grid rows","Listing (channel query)","Braces in authored content","Custom brick markup"],"body":"Templating Output a Mason field with its tag. Everything is pre-rendered to safe HTML. Full render Renders the whole document — rich text and every enabled brick — as HTML. Disabled bricks are skipped, and the field's editor mode is respected. Looping bricks Iterate the bricks yourself for full control over the markup: Inside : — the brick's short name. — a field's value. — conditionals on the brick type. Sub-values Some kinds expose extra tokens: Link — , , File — , Entry — , , , plus every custom field on the related entry by its short name: (files resolve to a URL). For a multi-pick relationship, loop it — — and the same per-entry tokens resolve per row. Grid rows Loop a grid by its short name; each column's short name resolves per row: gives the number of rows. Listing (channel query) A Listing field loops live channel entries — same syntax as a grid. Each row exposes , , , (built from the field's Link prefix), a formatted , and every custom field on the entry by its short name (files resolve to a URL): gives the number of entries returned. (Here is the Listing field's short name; / are custom fields on the listed channel.) Braces in authored content EE's template parser reads the output a fieldtype returns, so a literal typed into a Mason field would otherwise be treated as the start of a tag — and content quoting EE syntax would break the page rendering it. Mason therefore outputs literal braces from authored content as / . Browsers display these as ordinary braces, so an author can write documentation, a tutorial, or a JSON snippet containing and it renders exactly as typed. The consequence is that EE tags typed into a Mason field are displayed, not executed — writing in the editor shows that text on the page. Template logic belongs in your templates and brick partials, where the tokens below are resolved normally; this only affects braces in content an author typed. Custom brick markup By default a brick renders Mason's generic markup. Give it a template — a partial — to control that markup completely, using the same tokens, conditionals and Grid loops described above. There are two places to write it, and they are the same template: In the control panel. Open the brick and switch on Template. This is the whole of it — edit, save, done. On the server. , beside your EE templates but not one of them: no site folder, no , and it will not appear in the Templates manager. Mason reads the file directly. The two stay in step, the way ExpressionEngine's own templates do when saved as files: A file wins whenever one exists. It is the thing your editor, your deploy and your version control can act on, so nothing should quietly override it. Saving in the control panel writes that file, when the directory allows it. A partial that arrived over FTP is adopted the first time you open the brick — no copy-and-paste to get it into the editor. With no writable template directory, the markup is kept in the database instead. The brick renders identically; you simply have one home rather than two. A file that exists but cannot be written is reported when you save, rather than the edit being stored while the old file carries on rendering. Renaming a brick moves its partial with it — the two are tied together by filename. If a brick has no partial in either place, Mason falls back to and then to its generic markup, so the add-on's bundled defaults still apply. Two things worth knowing, because both fail silently by design: a token naming a field that does not exist renders as empty, and an unclosed loop swallows the rest of the partial. The usual symptom is \"part of my brick just isn't there\". (see AI assistant) names the offending token.","breadcrumb_path":"06-templating.md","url":"/docs/mason/06-templating-md"},{"page_id":38,"title":"07-ai-assistant.md","navigation_title":"07-ai-assistant.md","summary":"","headings":["AI assistant support","Locally — via ExpressionEngine's MCP Server","Remotely — via Mason's own HTTP endpoint","What it exposes","What the assistant can do","Where it helps most","Example"],"body":"AI assistant support Mason can describe itself to an AI assistant — Claude Code, Claude Desktop, Cursor, Codex or anything else that speaks the Model Context Protocol (MCP). This matters because of where Mason keeps things. Your bricks are defined in the database, not in files, so an assistant reading your templates has no way to know that is valid for one brick and meaningless for another. It will guess, and guesses look plausible. With these tools it reads your actual brick library instead. There are two ways to connect, and which you want depends on whether the site is on your machine or someone else's server. Locally — via ExpressionEngine's MCP Server Install ExpressionEngine's MCP Server add-on. Mason's tools are discovered automatically once it's present — there is nothing to configure in Mason. Start the server: Point your assistant at it. The MCP add-on's command writes the configuration for common editors. This needs shell access and a long-running process, so it suits local development. Note: ExpressionEngine's MCP Server is currently in beta. Mason's tools are read-only and cannot change your content, but the server itself is young. Remotely — via Mason's own HTTP endpoint Plenty of hosting gives you no SSH, a different PHP CLI, or no way to keep a process running — so the above simply isn't available on a lot of client sites. Mason therefore serves the same tools over an ordinary authenticated web request. No terminal, and ExpressionEngine's MCP Server add-on isn't required at all. It is off until you give it a token. Until then the endpoint returns 404 and is indistinguishable from an add-on without the feature. Add a long random token to : The environment variable works too, and is used if the config value is absent. Open Mason → AI Access in the control panel. It shows the endpoint URL for this site (an address) and confirms the endpoint is live. Point your assistant at that URL, sending your token as . The token is kept out of the database deliberately, so a database dump cannot leak it. Remove it to switch the endpoint off again. Use HTTPS. The token is sent with every request. On a site without TLS it crosses the network in clear text, and anyone who captures it gains everything below. The AI Access screen warns you if the site isn't on HTTPS. What it exposes Everything is read-only — nothing can change content, bricks or settings, so a leaked token cannot be used to alter the site. It can still read: your brick and field definitions (structure, not content) via , the rendered content of an entry you name Treat the token as you would a database password. If you only need structure, the endpoint is far less sensitive than a CMS login; but it is not nothing. What the assistant can do Tool What it answers Which bricks exist, their fields and kinds One brick in full — every field, including those from a bound binder, and the exact tokens each produces Whether markup matches a brick's real schema Which channel fields use Mason, their editor mode, toolbar and assigned bricks The HTML an entry's field actually outputs Mason also exposes its documentation at , and a prompt that drafts a partial from a brick's real fields. Everything is read-only. Nothing here can edit content, bricks or settings. Where it helps most A brick renders as nothing. Mason fails quietly by design — a token naming a field that doesn't exist renders as empty, and an unclosed loop swallows the rest of the partial. Neither produces an error anywhere, so the symptom is usually \"part of my template just isn't there\". Ask the assistant to run on the brick; it will name the exact token. Writing a new partial. gives the real token list up front — including sub-variables like and the row variables available inside Grid and Listing loops — so the markup is written against the schema rather than against a guess. A brick is missing from a page. shows which bricks each field offers, and flags assignments pointing at bricks that no longer exist. Those resolve to nothing with no sign on the page. Telling a template bug from a data problem. renders one entry's field without loading a page. If the partial looks right but the output is empty, the content is the cause. Example \"Why is the testimonials brick not showing quotes on entry 1084?\" A capable assistant will call for the field names, to check the partial's tokens against them, and to see what that entry actually produces — then tell you which of the three is wrong.","breadcrumb_path":"07-ai-assistant.md","url":"/docs/mason/07-ai-assistant-md"},{"page_id":39,"title":"Export & import","navigation_title":"Export & import","summary":"","headings":["Exporting","Importing","What moves between sites, and what cannot"],"body":"A brick library is real work, and until now it lived in exactly one database. Export writes your bricks and stacks to a JSON file; import reads one back. Use it to move a brick to another site, hand one to a colleague, keep a library in version control, or seed a new build from an existing one. Exporting Three ways, depending on how much you want: A selection — tick bricks on the Bricks list and choose Export from the with selected menu. A stack — open a stack from the sidebar and use Export; you get just that stack's bricks. Everything — Transfer → Export all bricks in the sidebar. You get a file. It is plain text and diffs sensibly, so it is safe to commit alongside the templates that use the bricks. Binders come along automatically. If a brick you export binds a binder, that binder is included even if you did not select it — without it the brick would import cleanly and silently lose those fields. Importing Transfer → Import bricks, choose a file, and you get a review screen before anything is written. It lists every brick in the bundle as either new or a conflict with something you already have, names any stacks that will be created, and warns about references it cannot resolve. For each conflict you choose: Choice What happens Skip Your existing brick is left completely alone. The default. Overwrite Your brick is replaced by the one in the bundle. Import as copy The bundle's brick arrives as , leaving yours untouched. Nothing is written until you confirm, and skip is always the default — overwriting is something you choose, never something that happens because you did not look. What moves between sites, and what cannot Most of a brick refers to things by name, so it travels: channels, filter fields, and binder references all survive a move as long as the target site has something of the same name. Two settings are different. An upload directory and a relationship's channels are stored as numeric ids, and an id means something else entirely on another site. Mason converts them to names on export and looks them up again on import. If a name does not exist on the target site — you export a brick using an upload directory called \"general\" and the other site has no such directory — the setting is left empty and the import report tells you so. The brick still imports and still works; you simply choose a directory for it. That is deliberate: the alternative is a brick quietly saving uploads somewhere nobody intended. Stacks are matched by name too. A stack in the bundle that does not exist is created; one that already exists is reused rather than duplicated.","breadcrumb_path":"Export & import","url":"/docs/mason/export-import"},{"page_id":42,"title":"Licensing","navigation_title":"Licensing","summary":"","headings":["Nothing stops working","The notice","The seven days","Clearing it","Local and development sites","What Mason checks, and what it ignores"],"body":"Mason is a commercial add-on. This page is about what happens when it cannot confirm a licence — which, deliberately, is very little. Nothing stops working An unlicensed Mason does not disable the editor, does not refuse to save, and does not touch what your site shows a visitor. You get a notice. That is the whole of it. This is a considered position rather than an oversight. The person looking at a publish screen is usually not the person who can do anything about a licence, frequently has no idea what one is, and would simply lose their afternoon. Meanwhile the person who can fix it never sees the message, because they are not the one writing a page that Tuesday. Holding an author's work hostage to get a billing team's attention does not work, and costs the wrong people. So: your content renders, your authors keep working, and the notice keeps asking. The notice Where Mason cannot confirm a licence for the domain, a line appears above the editor and on Mason's control-panel screens. For the first seven days it says how long it has been there: Mason is not licensed on this domain. Editing continues as normal for 5 more days — add a licence key in the control panel to clear this. After that it stops counting and settles into: Mason is not licensed on this domain. Nothing has been disabled and your content is unaffected, but this notice will stay until a licence key is added. Both are notices. Neither changes what Mason does. The seven days The clock starts the first time Mason notices a problem — not when it was installed — and it is reset whenever the licence checks out again. That matters more for an established site than a new one. A site licensed for two years whose renewal lapses has an installation date long in the past; measured from installation it would get no grace at all, on the afternoon a card expired. Measured this way it gets the same week a new site gets. And because the clock resets on success, a site that lapses, renews, and lapses again next year gets the week each time rather than having spent it years ago. A new installation gets the same seven days before the wording firms up, which makes for a reasonable trial. Clearing it Add your licence key in Settings → General Settings, then load any control-panel page. That last step is easily missed. ExpressionEngine's licence check runs in your browser, in the control panel, and posts the result back — so a licence added by deploying files or editing the database changes nothing until somebody opens a control-panel page. If you have added a key and the notice has not gone, load a CP page and give it a moment. Local and development sites Local and staging hosts never show the notice. Anything ending in , , or , plus and , is treated as development. If your development host is not one of those, add it in : That list adds to the built-in one rather than replacing it. What Mason checks, and what it ignores Mason asks ExpressionEngine for its own licence status and reacts to exactly two answers: invalid and expired. Everything else is treated as fine, and that is deliberate, because EE reports more than one kind of thing through the same channel. A missing or expired ExpressionEngine key, a domain mismatch on your EE licence, or simply the news that a newer version of Mason exists all arrive by the same route. None of them means your Mason licence is wrong, so none of them produces this notice.","breadcrumb_path":"Licensing","url":"/docs/mason/licensing"},{"page_id":40,"title":"Presets","navigation_title":"Presets","summary":"","headings":["Saving one","Inserting one","A preset is a copy, not a link","Bricks that have hit their limit","Managing them","Moving them between sites"],"body":"A brick library says what the pieces are. It never said how they go together — so every page needing \"section heading, then a split image, then stats\" was built by hand again, and a layout you worked out once could not be used twice. A preset is a saved arrangement of bricks, with the values you gave them. Saving one Build the arrangement on a page first, then keep it: Select two or more bricks in the editor — click the first brick's title bar, then shift-click the last. The range highlights, and the toolbar button tells you how many you have. Choose Save as preset in the toolbar. Give it a name. It appears in the insert menu straight away, under Presets at the top of the list, showing how many bricks it will add. Inserting one Open the insert menu and pick it from Presets, exactly like a brick. The bricks it contains are added in order, with their saved values, ready to edit. Undo removes the whole preset, not one brick at a time. A preset is a copy, not a link Once inserted, the bricks are ordinary bricks. Edit them, reorder them, delete one — nothing objects, and nothing is \"still part of\" the preset. The other side of that: editing a preset later does not change pages already built from it. That is deliberate. A preset gives you a starting point, and a page somebody has since worked on should not be rewritten underneath them. This is the opposite of a binder, and the difference is worth holding onto. A binder is a live reference — rename a field on the binder and every brick using it follows. A preset is a stamp. Binders share a definition; presets share a starting point. Bricks that have hit their limit If a brick in a preset has a usage limit and the page has already reached it, that brick is skipped and the rest are still inserted — and Mason tells you which one it left out. The insert menu warns you before you click, too. Asking for a five-brick section and getting four with an explanation beats getting nothing and guessing why. Managing them Mason → Presets lists what you have. From there you can rename a preset, move it to another stack, delete it, or export it. There is no \"new preset\" button, and that is on purpose: building an arrangement away from a real page is exactly the thing this feature exists to avoid. Moving them between sites Presets travel in an export bundle like bricks do, and they bring what they need with them — the bricks they name, and any binders those bricks bind. If something cannot be resolved on the far side — a member brick that does not exist there and is not in the bundle — it is dropped and reported, never silently swapped for something else. The preset still imports and still works; it just contains less, and you are told.","breadcrumb_path":"Presets","url":"/docs/mason/presets"},{"page_id":41,"title":"Styles","navigation_title":"Styles","summary":"","headings":["Defining them","Stylesheets","Using them","On your site","Deleting a style","What a class may contain","Styles and the per-block class tool"],"body":"Bold, italic and a link are the same on every site. The things that make your site look like itself — a lead paragraph, a pull quote, a highlighted run of words — are yours, and Mason had no way to reach them. An author could not apply one without knowing a class name and typing it from memory. A style is a name for one of your CSS classes. You define the list once; authors pick from it. Defining them Add-Ons → Mason → Styles. Each style has a label, which is what authors see in the menu, and a class, which is what lands in the markup. \"Lead paragraph\" → . Nothing else. Below the list is a box for CSS. What you write there does two jobs: It is loaded into the editor, so a style looks like something while the entry is being written rather than being an invisible label. It is served on your site, so a style you invent here works without editing your theme's stylesheet. The CSS in that box is scoped to the editor canvas inside the control panel. It cannot restyle the control panel itself, however broadly it is written — is confined to the canvas. A few things are removed when it is saved, and Mason tells you which: is not followed. Add the stylesheet to the Stylesheets list instead. and are kept, but they apply control-panel-wide, because scoping them is not possible. Only their names leak; nothing is restyled. Stylesheets If your site already has the CSS, there is no reason to write it twice. Add its URL to Stylesheets and the editor previews against the real thing. These are read by the server when you save, not by your browser, so it does not matter whether your site sends CORS headers. They are loaded into the editor only — your site already has them. Using them Select a run of words, open the Styles menu in the toolbar, and pick one. The class lands on those words: The menu shows which style is on the current selection, and Clear style removes it. A style replaces whatever style was there before rather than nesting inside it, and it combines freely with bold, italic and the rest. Two things it will not do. It is disabled with nothing selected, because a style needs a run of words to attach to. And it is disabled inside inline code, which by definition excludes every other kind of formatting. Styles are available in the main editor and inside a brick's rich-text field, from the same list. They appear on the Full toolbar; on a custom toolbar, tick Styles menu. A field already saved with a custom toolbar will not show the menu until you open its settings and save them again — a custom toolbar is an explicit list, and Mason will not add to it behind your back. On your site The CSS is output automatically, so a new style works with no template change at all. Better, though, is to put it in your , where a stylesheet belongs: Then tick I include the tag in my own templates on the Styles screen, so it is not emitted twice. If you change a style and the site does not change, clear your template cache — EE caches the parsed output of a template, and the style block is part of it. Deleting a style Deleting a style removes it from the menu. It does not go back through your entries and strip the class out of content that already uses it — that content still renders exactly as before, and if the CSS is still in your theme it still looks right. Where a run of words carries a style that is no longer in the list, the menu says so, showing Unknown style and the class it is carrying, so an author can see what is there and clear it. What a class may contain Letters, digits, and — which covers ordinary class names and Tailwind utilities like , and . Quotes, angle brackets, ampersands and braces are refused. A class using one is dropped rather than rewritten into something that would not have matched your stylesheet anyway, and the Styles screen tells you at the time rather than letting you discover it on the site. A style may apply up to 8 classes at once. Styles and the per-block class tool These are different tools and both are worth having. A style is inline, chosen from a list, and applies to the words you select. The and tools inside a brick's rich-text field are freeform, apply to the whole block the cursor is in, and expect you to know what you want. One is for the vocabulary your site has; the other is the escape hatch for the thing it does not.","breadcrumb_path":"Styles","url":"/docs/mason/styles"},{"page_id":2,"title":"Mason License","navigation_title":"License","summary":"","headings":["Mason Commercial License Agreement","1. License Grant","2. Per-Site Licensing","3. Purchase and Pricing","4. Future Versions","5. Permitted Use","6. Restrictions","7. Client Projects","8. Site Transfers","9. Ownership","10. Third-Party Software","11. Tiptap","12. Updates and Support","13. Termination","14. Disclaimer of Warranty","15. Limitation of Liability","16. Changes to This License","17. Contact"],"body":"Mason Commercial License Agreement Version 1.0 Copyright © 2026 Bison Digital. All rights reserved. This Commercial License Agreement (\"License\") governs the use of Mason (\"Software\"), an ExpressionEngine add-on developed and distributed by Bison Digital. 1. License Grant Subject to the terms of this License, Bison Digital grants you a non-exclusive, non-transferable license to install and use Mason on one production ExpressionEngine website per purchased license. A separate Mason license is required for each additional production website. The license may be purchased and used by a website owner, organization, developer, or agency on behalf of a client. 2. Per-Site Licensing Each Mason license covers one production website. For the purposes of this License, a \"Site\" means a single ExpressionEngine installation or website intended to operate as one production web property. A licensed Site may also have associated copies used solely for: Local development Development servers Staging environments Testing environments Continuous integration or deployment Backup and disaster recovery These associated environments do not require additional licenses provided they support the same licensed production Site. A separate license is required when Mason is used on another production website, including another client website or independently operated web property. 3. Purchase and Pricing Mason is commercial software and is currently offered for $20 USD per Site. Purchase of Mason grants you a license to use the version of the Software obtained at the time of purchase, subject to the terms of this License. Purchase of Mason does not transfer ownership of the Software or its source code. Bison Digital may change the price, licensing model, features, support terms, or availability of future releases. 4. Future Versions Minor updates within the same major version may be made available at Bison Digital's discretion. Future major releases, including Mason 2.x and later, may require the purchase of an upgrade, new license, subscription, or other commercial arrangement. Purchase of Mason 1.x does not guarantee access to future major versions, premium features, services, updates, or support. A version of Mason lawfully obtained under this License may continue to be used on its licensed Site under the terms that applied when it was purchased. 5. Permitted Use You may: Install and use Mason on one production Site for each license purchased. Install Mason on development, staging, testing, and local environments associated with that Site. Purchase and install Mason on behalf of a client. Use Mason as part of commercial website development projects. Modify Mason as reasonably necessary to integrate it into the licensed Site. Make reasonable backup copies associated with the licensed Site. Transfer management of the licensed Site to the client for whom it was developed. 6. Restrictions You may not: Use a single Mason license on multiple production websites. Reuse a client Site license for another client or unrelated production website. Sell, sublicense, publish, distribute, or redistribute Mason as a standalone product. Repackage Mason and offer it as your own add-on, fieldtype, editor, product, library, or development tool. Make Mason available for download or distribution to third parties except as necessary to develop or deliver the licensed Site. Remove or obscure copyright, licensing, attribution, or proprietary notices contained within the Software. Use Mason or substantial portions of its original source code to create and distribute a competing ExpressionEngine editor or add-on. Claim ownership or authorship of Mason or any portion of the Software owned by Bison Digital. 7. Client Projects Developers and agencies may purchase Mason for use on client projects. Each client production Site requires its own Mason license. Development, staging, testing, and local copies associated with that client Site are covered by the same license. When a completed website is delivered to a client, the client may continue to use Mason as part of that licensed Site. The client does not receive the right to use the same license on another production Site or to separately redistribute, resell, sublicense, or repackage Mason. 8. Site Transfers A Mason license is associated with a Site rather than a particular developer or agency. If ownership or management of the licensed Site changes, the Mason license may remain with that Site. A developer or agency may not retain and reuse that license for another production website after transferring the licensed Site to a client or another party. 9. Ownership Mason is licensed, not sold. Bison Digital retains all right, title, and interest in Mason, including its original source code, ExpressionEngine integration, interface, configuration system, documentation, branding, and other original materials, except for third-party components identified separately. No ownership rights are transferred under this License. 10. Third-Party Software Mason is built using and may incorporate third-party open-source software, libraries, assets, or other components, including Tiptap and its dependencies. Third-party components remain subject to their respective licenses and copyright notices. Open-source portions of Tiptap used by Mason remain subject to their applicable open-source licenses. Rights granted under those licenses remain unaffected by this License. If Mason incorporates optional commercial or proprietary third-party components, those components remain subject to the licenses and terms provided by their respective owners. Nothing in this License is intended to restrict rights granted by, or override obligations imposed by, a third-party license. 11. Tiptap Mason uses Tiptap as part of its rich-text editing functionality. Tiptap is an independent project and is not owned by Bison Digital. This License applies to Bison Digital's original Mason software, including its ExpressionEngine integration, configuration, interface, custom functionality, documentation, and related proprietary work. This License does not replace or supersede the license governing Tiptap or any other third-party component. 12. Updates and Support Unless separately stated by Bison Digital, purchase of Mason does not guarantee technical support, maintenance, compatibility updates, new features, or future major releases. Bison Digital may provide updates and support at its discretion and may discontinue support or development of any version of Mason. 13. Termination Your rights under this License terminate automatically if you materially violate its terms. Upon termination, you must stop using Mason on any unlicensed Site and cease unauthorized distribution of the Software. Bison Digital may provide an opportunity to remedy a violation before termination where appropriate. 14. Disclaimer of Warranty THE SOFTWARE IS PROVIDED \"AS IS\" AND \"AS AVAILABLE,\" WITHOUT WARRANTIES OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT, TO THE MAXIMUM EXTENT PERMITTED BY LAW. 15. Limitation of Liability TO THE MAXIMUM EXTENT PERMITTED BY LAW, BISON DIGITAL SHALL NOT BE LIABLE FOR ANY INDIRECT, INCIDENTAL, SPECIAL, CONSEQUENTIAL, OR PUNITIVE DAMAGES, OR FOR LOSS OF DATA, REVENUE, PROFITS, OR BUSINESS ARISING FROM THE USE OF OR INABILITY TO USE MASON. 16. Changes to This License Bison Digital may publish different licensing or pricing terms for future versions of Mason. Changes applying to a future release do not retroactively alter the license granted for a version you previously purchased unless you expressly agree to the new terms. 17. Contact Questions regarding commercial licensing, redistribution, OEM use, multi-site licensing, or other uses not permitted by this License may be directed to Bison Digital. Mason is a product of Bison Digital.","breadcrumb_path":"License","url":"/docs/mason/license"},{"page_id":2,"title":"Mason Changelog","navigation_title":"Changelog","summary":"","headings":["Mason — Changelog","1.18.1","Fixed","1.18.0","Added","Fixed","1.17.1","Changed","1.17.0","Changed","Added","Fixed","1.16.0","Added","Changed","Added","1.15.1","Fixed","1.15.0","Added","Changed","Notes for upgrading","1.14.1","Fixed","1.14.0","Changed","1.13.0","Added","1.12.1","Fixed","1.12.0","Added","1.11.2","Fixed","1.11.1","Fixed","1.11.0","Added","Fixed","1.10.0","Added","Changed","1.9.0","Added","1.8.0","Added","Fixed","1.7.0","Added","Changed","1.6.0","Added","1.5.4","Added","Fixed","1.5.3","Fixed","1.5.2","Fixed","1.5.1","Fixed","1.5.0","Added","Fixed","1.4.1","Added","Fixed","1.4.0","Added","Fixed","1.3.0","Added","1.2.0","Added","Earlier releases"],"body":"Mason — Changelog All notable changes to Mason are recorded here. Versions follow the add-on's version. 1.18.1 Fixed Italics in the editor no longer drop onto their own line in tiny type. ExpressionEngine styles as a 12px block — it's how the control panel sets the italic note under a field label — and Mason's editor sits inside . Italic text written in the editor now stays inline at full size, in the main editor and in brick rich-text fields. Display only: saved content and the website were never affected. EE's other element rules are direct-child selectors that can't reach editor content, so this is the only one that needed undoing. 1.18.0 Added Abbreviation. Select a run of text, choose Abbreviation from the toolbar and type what it stands for; the site gets . Until now Mason had no way to say this — its marks carried no per-instance value except a link's address and a style's class. It edits and removes like a link (the prompt opens prefilled; empty removes), combines with bold, italic and links, and is unavailable inside inline code. Typing straight after an abbreviation doesn't extend it to the next word. Pasted keeps its expansion; one with no pastes as plain text, because an abbreviation with no expansion adds nothing. On the Full toolbar, at field level and in a brick's rich-text field. A field already saved with a custom toolbar will not gain it — tick Abbreviation in its settings, the same rule as the Styles menu. The title is treated as untrusted: trimmed, control characters stripped, capped at 200 characters and escaped on output, braces included, so a title can never reach EE's template parser. The front end gets only — the editor's dotted underline is editor-only, and sites style themselves. Fixed The Custom tools checklist could not be used. Switching a field's Toolbar to Custom showed the checklist greyed out: ExpressionEngine disables every settings input that is hidden when the page loads (so it stays out of the save), and Mason hides the checklist while a named toolbar is picked. Showing it again never re-enabled it, so picks could not be made — or saved. Mason now re-enables a settings group's inputs whenever it shows that group. No schema change: nothing in Mason restricts mark types, and an older renderer skips an unknown mark and keeps its text. Existing content renders exactly as before. 1.17.1 Changed Grid column tags dim like the rest. 1.17.0 quietened the chips beside brick names and field labels but missed the ones on Grid columns, which stayed at full strength beside dimmed neighbours. They now rest at the same strength and come up on hover or focus of their cell. 1.17.0 A spacing and polish pass over the publish form, with three fixes it turned up along the way. Changed Room to write. The writing surface has 24/32px gutters and 16px / 1.7 type, with a looser paragraph and heading rhythm. Bricks sit 24px clear of the prose around them. Brick cards. A steady 44px header, 28px header controls, a 20px row / 16px column gap between fields and more padding in the body. Binders follow the same spacing. Field inputs are native-ExpressionEngine size (~42px) — the same metric the brick builder already uses, rather than a smaller size of their own. Selects keep ExpressionEngine's own chevron. Template tags are quieter, never hidden. The chips beside brick names and field labels rest dimmed and come up to full strength on hover or keyboard focus. Hiding them outright was considered and rejected: they are how template authors find handles, a hover-only chip disappears on a tablet, and an invisible button is still a tab stop. Toolbar. 32px targets, muted icons until hovered or active, and the labelled buttons no longer wrap or squeeze. Brick picker is wider (400px) with a larger search and roomier tiles; the slash menu and the word count get the same treatment, and the count uses tabular numbers so it doesn't jitter. Added The toolbar sticks to the top of the field as a long entry scrolls — below ExpressionEngine's own sticky publish tabs and Save button rather than over them. The tab bar's height changes with the number of tabs and the window width, so Mason measures it and follows it. Toolbar group dividers. Derived from each tool's group rather than stored, so presets and custom toolbars alike are grouped, and fields saved before this release get them with no change. Fixed Partial-width fields didn't tile. Every field subtracted a whole gap from its width, so two half-width fields left a gap-sized hole at the end of the row. Each now gives up only its share of the gaps in its row, so any widths that sum to 100% fill it exactly — whatever the gap. The brick picker's search drew a box inside a box. ExpressionEngine's own text-input styles outranked Mason's reset, giving the search input its own 42px height, padding and focus ring inside the search field. The input is now bare and the field itself shows focus. 1.16.0 Added Documentation for licensing ( , and so the in-CP manual): what the notice means, that nothing is disabled, how the seven days work, and the step people miss — ExpressionEngine's licence check runs in the browser, so a key added by deploying files changes nothing until somebody loads a control-panel page. Changed A licence problem no longer disables editing. Ever. Mason used to make the editor read-only on an unlicensed host and refuse every control-panel write. That punished the wrong person: an author cannot fix a billing problem, frequently does not know what a licence is, and loses the afternoon — while whoever can fix it never sees the banner, because they are not the one writing pages. It also turned every licence hiccup into lost work, including the ones Mason itself got wrong (see 1.15.1, where it misread ExpressionEngine's licence state as its own). Mason now shows a notice and changes nothing else. Saved content renders on the site exactly as before, which was already true. Added A seven-day grace period, measured from the first time a problem is seen rather than from installation, and cleared whenever the licence comes good. Measuring from install — the usual approach — only ever helps a new site waiting on a licence. The commoner case is a site licensed for two years whose renewal lapses: its install date is long past, so it would land on the firmest wording the same afternoon a card expired, which is the customer least deserving of it. Measured from the problem, both get the same week. Clearing the clock on success is what makes it a grace period rather than a one-time trial: a site that lapses, renews, and lapses again next year gets the week each time. As a side effect it gives a new install a week of full use before the wording firms up. A domain allowlist for the publisher's own sites, read from (or ) in . Hosts listed there are treated as licensed. The shared key is the point: one line in a site's config covers every Bison add-on that carries . Matching is on the exact host, so listing a domain cannot accidentally cover another that merely ends the same way — variants are listed separately. Kept distinct from the dev-host list, because a production site the publisher owns is not a development site, and folding the two together would spend a staging-versus-live distinction worth still having. — the whole of the above, written so it knows nothing about Mason. To use it in another add-on, copy the file and change its namespace; everything specific is a constructor argument, and with no storage callables it keeps its clock in ExpressionEngine's own table, so an add-on with no settings table needs no migration. Wiring instructions are in the file. is now a thin Mason-shaped wrapper around it. 1.15.1 Fixed Mason disabled itself on a correctly licensed site whose ExpressionEngine licence key was missing or expired. The banner read \"Mason is not licensed on this domain\", which was not what had happened. ExpressionEngine's returns the add-on's own status unless that status is while the EE install itself has no valid licence — in which case it returns the core licence status instead ( ). Mason compared whatever came back against an allowlist of , , , so — a statement about EE, not about Mason — read as \"unlicensed\". The paradox that follows is the tell: Mason was entitled while it was unregistered (status ) and gated the moment its licence started working, because only a add-on status reaches that branch at all. Registering the licence is what broke it. The same allowlist also disabled the editor on , which says nothing about entitlement beyond a newer version existing — a paid, current customer would have lost editing because an update had shipped. Entitlement is now a blocklist of the two statuses that actually name Mason, and . The core vocabulary does not collide with those (EE's own expiry is ), so a problem with the EE licence no longer disables a Mason field. As before, a dev host is always entitled, and front-end rendering of saved content is never gated. 1.15.0 Added Styles — a named list of your own CSS classes, in the editor's toolbar. Bold and italic are the same on every site; a lead paragraph or a pull quote is yours, and Mason had no way to reach one. An author who wanted a site class had to know its name and type it from memory into a , which is not a feature anybody discovers. Define the list once under Add-Ons → Mason → Styles — a label authors see, a class that lands in the markup. Select a run of words, pick a style, done. It renders as , replaces whatever style was there rather than nesting inside it, and combines freely with bold and the rest. The menu names the style on the current selection and offers Clear style. Available in the main editor and inside a brick's rich-text field, from one list — the same call made for toolsets, so both levels speak one dialect. On the Full toolbar by default; on a custom toolbar, tick Styles menu. A field already saved with a custom toolbar will not gain it until its settings are saved again — a custom toolbar is an explicit list and nothing is added to it behind your back. Deleting a style removes it from the menu and not from content that already uses it. Published pages are not quietly rewritten; the menu shows such a run as Unknown style with the class it carries, so an author can see it and clear it. Mason's first control-panel settings screen. Every knob until now was per-field or per-brick, and the two global values that existed were read out of . The Styles screen holds the style list, a box for the CSS behind it, and a list of your site's stylesheets to preview against. Nothing here needs a file opened. The CSS does two jobs: it is loaded into the editor so a style looks like something while an entry is being written, and it is served on your site so a style invented in the control panel works without editing your theme. It is output automatically; put in your where a stylesheet belongs and tick I include the tag in my own templates to stop it being emitted twice. Site stylesheets are read by the server when you save, not by your browser, so it does not matter whether your site sends CORS headers to its own control panel — and a stylesheet that cannot be read says so on the screen that asked for it, rather than in a console nobody opens. Changed The editor canvas no longer out-specifies your own CSS. The block that restores full-contrast text on the canvas (EE's control panel forces content to a muted gray) included , at a specificity of (0,2,1). A style is rendered as a span, so at (0,1,0) lost to it: the colour appeared on the site and not in the editor, which reads as the preview being broken. The block is now wrapped in , which lands it at (0,1,0) — still ahead of EE's element-level rules, and now tying with a custom class so source order decides. Notes for upgrading Redeploy together with the PHP. An editor running the old bundle has no extension registered, and TipTap silently drops marks it does not know the next time an entry is saved. This is the same failure the toolbar presets are designed to avoid, and it is the one upgrade step that matters. Run the add-on Update in the control panel: 1.15.0 adds an table. Until it exists the Styles screen says so rather than failing, and every editor carries on working. 1.14.1 Fixed A rich-text column inside a Grid could not be typed in or pasted into. The cell was wrapped in a , and a label hands a click to its first labelable control — which in a rich-text column is a toolbar button. The click never reached the editor. The same bug was found and fixed for brick-level fields some time ago; the Grid cell was missed, so it survived one level down. 1.14.0 Changed Components are now called presets. The name was wrong twice over. Bloqs already uses \"component\" for a container that keeps existing after you insert it, and Mason's does the opposite — it dissolves into ordinary bricks and the link ends. Same word, different contract, which is the kind of collision nothing looks wrong about. It also read as a schema word next to binders, which genuinely are live references, so the two names gave no clue which was which. \"Preset\" says starting point. Binders share a definition; presets share a starting point. Labels, menus, messages and documentation only — the stored data is untouched. The table, the export bundle's key and every internal handle keep their names, exactly as \"Grid\" kept the handle. Existing presets, bundles and imports are unaffected, and no migration runs. Presets can actually be selected now. A brick is an atom node, so clicking one produced a selection of exactly one — and the only gesture that selected more was dragging a text selection through the document past bricks that are full of form inputs, where clicking does not move the selection at all. The gesture anyone would try, click one brick and shift-click another, did nothing. Saving a preset was effectively unreachable. Shift-click a second brick's title bar to select the range. It grows or shrinks from the brick you clicked first, in either direction, and the range highlights as you go. \"Save as preset\" now tells you what it will do. It is disabled until two or more bricks are selected and reads \"Save 3 bricks as preset\" once they are. Previously it was permanently enabled and clicking it with nothing selected just produced an alert telling you to go and select something — an action that looked available and was a dead end. Presets have their own section at the top of the insert menu. They used to be filed under the stack they belong to, so you only found one by opening the right group and noticing it above the bricks — a feature you had to already know about stayed invisible. Their stack is still matched by the search box. The editor toolbar puts \"Brick\" last. Inserting a brick is the constant action, so it now holds the end of the row where the hand returns to, and Save as preset — occasional, and only available with two or more bricks selected — sits before it as a secondary outline button rather than competing at equal weight. 1.13.0 Added A Grid can now drive a condition. Any field or column can be shown based on whether a Grid has rows — \"show the caption once the gallery has images\". The rule reads has rows / has no rows rather than the generic is empty, because an author scanning a list of rules should see what the source actually is. Only those two operators. Comparisons like has more than 3 rows are deliberately absent: the evaluators unwrap an array to its first element for scalar comparison, so a count rule would have silently compared against row one's contents and quietly never fired. Row counting needs its own operators, and offering the existing ones would have been a trap. A nested Grid can now carry a condition. A Grid inside a Grid was the one place conditions could not be set — an unexplained guard excluded it, copied from the block above where skipping a repeater is correct. Both halves of the renderer already honoured a condition there; only the settings screen refused to let you write one. The rule is rendered below the nested column list, so it cannot be misread as belonging to the grid inside it. 1.12.1 Fixed Reordering fields and grid columns was a guess. The only feedback was the card you had picked up going half-transparent — nothing showed where it would land, and dropping on a card gave no way to say \"above this one\" or \"below it\". Combined with a grab handle barely larger than the icon in it, reordering a brick's fields was fiddly and unpredictable. The hovered card now draws a line on the edge the item will land against, so the outcome is visible before you let go. Which edge follows the pointer: top half means above, bottom half means below. The handle is a proper target with a hover state, so it is findable without hunting for it. The line is drawn on the card rather than inserted between cards, so nothing reflows under the pointer mid-drag — a list that moves while you are aiming at it is worse than no indicator at all. 1.12.0 Added Grid columns can be conditional, per row. A column can now carry the same conditions a brick field can — \"show when Media type is video\" — and they are judged against that row's values. Two rows of the same grid can show different inputs. Sources are the other columns in the same row. A rule against one of the brick's own fields would be true for every row at once, which is a field condition, and still belongs there. Hiding never deletes: a value already entered stays in the row and returns if the condition becomes true again. On the front end a hidden column emits nothing, so its token renders empty rather than the row vanishing. Neither ExpressionEngine's Grid nor Bloqs offers this, and it removes a common workaround — a media grid that takes an image or a video is one grid now, not two fields and a note in the instructions. 1.11.2 Fixed A brick whose template contained a tag broke the whole editor. Every brick on the page rendered as \"Unknown brick type … Its content is preserved\" — even bricks that were correctly assigned to the field and had nothing to do with the one at fault. Mason passes its configuration to the editor inside an inline block, and that configuration includes each brick's template. An HTML parser ends a script element at the first literal it sees, whatever the surrounding JavaScript means — so a template containing a script tag closed Mason's own block early. The result was a JavaScript syntax error, no configuration, no brick types, and a page full of orphans. Nothing was lost: the content was intact throughout, and reloading after the fix restores every brick. A template may contain a script tag — that is a reasonable thing for a template to do, and Mason now escapes it so it cannot terminate the block. 1.11.1 Fixed Importing a brick destroyed its markup. The bundle was run through ExpressionEngine's XSS filter on the way to being saved, which mangles exactly what a partial legitimately contains: and became , was stripped, and was entity-encoded so it rendered as visible text on the page. It failed in the worst way available. The preview screen reads the uploaded file directly, so it showed the brick intact and reported a successful import — only the saved copy was corrupted, and nothing revealed it until the brick was rendered on a page. No error, no warning. Any brick imported before this whose partial contained a script, a stylesheet link, an iframe or an inline style needs re-importing. 1.11.0 Added Components — save an arrangement of bricks and use it again. A brick library says what the pieces are; it never said how they go together. Every page needing \"section heading, then a split image, then stats\" was rebuilt by hand, and a pattern an author worked out once could not be reused. Select two or more bricks while editing an entry and choose Save as component. It appears in the insert menu, in its stack, showing how many bricks it will add. A component is a stamp, not a link: inserting it drops ordinary bricks with the saved values, and the connection ends there. Authors edit, reorder and delete them freely, and editing the component later cannot rewrite a page somebody has already built. That is deliberately the opposite of a binder, which is a live reference — a binder shares a definition and should follow its source, while a component supplies a starting point and must not. Bricks that have hit their usage limit are skipped rather than blocking the whole component, and are named when they are. Asking for a five-brick section and getting four with an explanation beats getting nothing and guessing why. Components travel in an export, bringing the bricks they name and those bricks' binders with them. A member that cannot be resolved on the far side is dropped and reported, never silently swapped for something else. Manage them under Mason → Components: rename, restack, delete, export. There is no \"new component\" button on purpose — building an arrangement away from the page is the thing this feature exists to avoid. Fixed Imported bricks arrived without their markup. 1.10.0 added partials to the bundle, but the import rebuilt each brick from a fixed list of keys that did not include — so the markup was discarded before the code that looks for it ever ran. Export wrote it, import dropped it, and both halves reported success. Any bundle imported since 1.10.0 landed with its bricks rendering Mason's default output. Re-importing that bundle now brings the markup across. Exports could produce a file that would not import. read a property it never declared, and on a site that displays errors PHP printed the warning into the response — which for an export is the file, so the downloaded bundle was no longer valid JSON. Sites with errors hidden were unaffected, which is why it went unnoticed. 1.10.0 Added Brick markup travels with an export. A bundle carried a brick's fields but not the template that renders them, so an imported brick produced Mason's generic default until somebody copied a file across by hand — half the feature moving through the browser and half of it over FTP. Export takes whatever actually renders: the file when there is one, the stored copy otherwise. Import writes it back to both, exactly as saving in the control panel does, and a site with no writable template directory keeps it in the database and still renders. The import preview says which of the two will happen, and says so before you commit. A bundle exported by an older Mason simply carries no markup; that is reported rather than treated as an error, and importing one no longer blanks the markup of a brick it overwrites. A limit on how many times a brick can be used. Some bricks only make sense once on a page — a masthead, a contact block, a feature showcase with anchor links that would collide. Set a limit on the brick and the insert menu stops offering it once a field has that many. It is greyed rather than hidden, and says why: an author looking for a brick should find it and learn it is spent, not wonder where it went. The count is read from the document each time the menu opens, so it stays right however a brick arrived — inserted, pasted, duplicated or undone. A title bar colour for a brick, matching what Tab-EE does for a Grid row. Empty is the default. Label colour is derived from the tint, so a dark choice gets light labels without anyone having to think about it. Changed The documentation has moved out of Mason's sidebar and into the add-on's own menu on the Add-Ons screen, beside Settings and Uninstall. Nine doc links and their header made the working sidebar — the stacks you actually reorganise — the smaller half of the rail, and a manual is something you go and read, not something you navigate past on every visit. Every doc page, anchor and bookmark still works; only the way in has moved. 1.9.0 Added Edit a brick's template in the control panel. A brick was created, configured, duplicated, exported and imported in the browser — and then its markup had to be put on the server by hand. Every brick screen now has a Template toggle that opens the partial for editing. It is a toggle rather than an always-open panel because most visits to that screen are about fields, and a code editor sitting above them is in the way. A brick that already has markup opens with it showing, so a template that matters is never hidden behind a switch you did not know to flip. The file and the control panel stay in step, following ExpressionEngine's own \"Save Templates as Files\": the file is the markup whenever one exists, saving here writes that file, and a partial that arrived over FTP is picked up and shown the first time you open the brick. Edit in either place; both agree afterwards. Sites with no writable template directory keep their markup in the database instead, which is the case this was built for — the control panel is most useful exactly where the filesystem is out of reach. A read-only file is reported, not worked around. If the partial exists but cannot be written, saving says so and tells you the file is still what renders. The alternative — storing the edit and letting the old file carry on — would look like a successful save that changed nothing. Renaming a brick moves its partial with it. A partial is tied to its brick by filename, so without that the markup is orphaned and the brick quietly falls back to default output. 1.8.0 Added Export and import of bricks and stacks. A brick library was real work that lived in exactly one database. It can now be written to a JSON file and read back — to move a brick to another site, hand one to a colleague, keep a library in version control, or seed a new build from an existing one. Export a selection (tick bricks, then with selected → Export), a stack from its own screen, or everything from Transfer → Export all bricks. Import is under Transfer → Import bricks. Binders travel with the bricks that bind them, even if you did not select them — without the binder, a brick imports cleanly and silently loses those fields. Importing shows you what it will do before it does it. Every brick in the bundle is listed as new or as a conflict with something you already have, along with any stacks that will be created. For each conflict you choose skip, overwrite, or import as a copy. Skip is the default: overwriting is something you pick, not something that happens because you did not look. References are translated, not copied. Most of a brick already refers to things by name — channels, filter fields, binders — and those survive a move. But an upload directory and a relationship's channels are stored as numeric ids, and an id means something different on every site. Mason converts these to names on export and looks them up again on import. If a name does not exist on the target site, the setting is left empty and the import report says so. The brick still imports and still works; you pick a directory for it. The alternative — keeping the number — would produce a brick quietly saving uploads to whatever happened to hold that id, which is worse than an obvious gap. Export is not licence gated, so a site whose licence has lapsed can still get its own brick library out. Import writes, so it is gated like any other change. Fixed The Duplicate button on the brick list drew its icon twice, a few pixels apart, so it looked smudged. ExpressionEngine supplies that icon itself; Mason was adding a second copy of the same one. 1.7.0 Added AI assistant access without shell access. 1.6.0's support relied on ExpressionEngine's MCP Server, which speaks stdio — it needs SSH and a long-running process, so on a lot of client hosting it simply isn't available. Mason now serves the same tools from its own authenticated HTTP endpoint. An assistant can reach a live site with no terminal at all, and EE's MCP Server add-on isn't required. It is off until you set a token — until then the endpoint returns 404 and is indistinguishable from an add-on without the feature. Add to (or set ), then see the new Mason → AI Access screen for the endpoint URL. The token is kept out of the database on purpose, so a database dump cannot leak it. Everything remains read-only: a leaked token cannot change content, bricks or settings. It can read your brick definitions, and — via — rendered entry content, so use HTTPS and treat the token as a credential. See Documentation → AI assistant. ExpressionEngine's code generators now understand Mason fields. Previously EE could only tell that a Mason field was a tag pair and emitted \"we could not determine the possible variables to use inside tag pair\" — it had no way to know, since a Mason field's contents are the bricks assigned to it and those live in the database rather than in files. Mason now registers a template generator, so generated code carries your real brick handles and field tokens: the chain, Grid and Listing loops with their actual columns and row variables, and binder-supplied fields. A field whose assigned bricks have since been deleted says so explicitly and names them, rather than rendering nothing with no explanation. This works everywhere the generator is used — Code Generators in the control panel, on the CLI, and the MCP add-on's and tools. Changed Tool definitions moved into a single internal registry shared by both the stdio and HTTP transports, so the two cannot drift apart. No change in behaviour. 1.6.0 Added AI assistant support. Mason can now describe itself to Claude Code, Claude Desktop, Cursor, Codex or anything else speaking the Model Context Protocol, via ExpressionEngine's MCP Server add-on. This closes a real gap. Bricks are defined in the database, not in files, so an assistant reading your templates has no way to know that is valid for one brick and meaningless for another — it guesses, and the guesses look plausible. These tools let it read the actual brick library instead: — every brick, its fields and kinds — one brick in full, including binder-supplied fields, and the exact tokens each field produces — check markup (or a brick's partial on disk) against the real schema: unknown tokens, invalid sub-variables, unclosed loops — which fields use Mason, their mode and assigned bricks, flagging assignments whose brick no longer exists — the HTML an entry's field actually outputs Also exposes Mason's documentation at and a prompt that drafts from a brick's real fields. Everything is read-only — nothing can change content, bricks or settings. Mason is completely unaffected when the MCP Server isn't installed; the tools are simply unavailable. See Documentation → AI assistant. Most useful when a brick renders as nothing: Mason fails quietly by design, so a token naming a field that doesn't exist produces no error anywhere. The validator names the exact token instead. 1.5.4 Added Listing filters show how many entries they'd return. Filtering a listing to a category with nothing related to it renders an empty listing, which reads as a broken brick rather than an empty result. The filter picker now shows a count beside every choice and flags the ones that would return nothing, so it's visible before choosing; the count stays on the chip afterwards. Field settings hide what doesn't apply. Toolbar and Custom tools disappear on a Bricks-Only field, and Custom tools appears only when the Toolbar preset is Custom — so you're no longer offered settings that will be ignored. Fixed Brick controls (toggle / duplicate / delete) had drifted to the left of the header bar on any brick without tabs; they're pinned right again. The editor's canvas had uneven gutters (a wider lane on the left reserved for the insert +). The + now straddles the field's left edge, so the text sits evenly between both margins. 1.5.3 Fixed Unreadable content is no longer silently replaced with an empty field. If a Mason field's stored JSON couldn't be parsed, it was handed to the editor as an empty document — and the author's next save wrote that emptiness over the original, destroying any chance of recovery. Nothing warned anyone. The publish form now detects stored content it cannot read and shows a warning in place of the editor, with the raw value displayed read-only so it can be copied out. The value is passed through untouched, so saving the entry preserves it and the rest of the entry stays editable. This complements 1.5.2: that release removed the most likely cause of such damage (silent column truncation); this one makes any remaining case visible and survivable instead of invisible and permanent. 1.5.2 Fixed Long entries could silently lose their content on save. Mason stores an entire ProseMirror document as JSON, which runs several times the length of the prose an author sees — but EE gave the field a column, capped at 65,535 bytes. On a server not running MySQL in strict mode, anything past that was truncated silently: the stored JSON became unparseable, and because an unparseable document falls back to an empty one, the author's work simply vanished with no error shown anywhere. Long pages — documentation, an entry built from many bricks — were the ones at risk. Mason now declares a column (16MB). New fields get it automatically; existing fields are widened by the add-on update, so run the update in Add-Ons after upgrading rather than only replacing files. Note this cannot recover content already truncated — that data is gone from the database. Re-enter anything lost before upgrading. 1.5.1 Fixed Braces in content no longer break the template. EE's parser scans a fieldtype's output, so a literal written by an author was lexed as the start of a tag. Content that showed EE syntax — documentation, a tutorial, a JSON snippet — took the whole page down with \"You have an invalid conditional in your template… Unexpected 'quot' (VARIABLE); expected RD\", because escapes to . Literal braces in authored content are now emitted as / , which browsers render as ordinary braces, so authors can write about template code without breaking the page displaying it. Note this also means EE tags typed into a Mason field are shown as text rather than executed. That was never supported, and treating author input as data rather than as template code is the safer default. 1.5.0 Added Per-field editor toolsets. A new Toolbar setting beside Editor Mode scopes the rich-text tools to each field — Basic, Standard, Full, or Custom with a per-tool checklist. Previously every Mason field got the same fixed toolbar; this is the field-level equivalent of EE's RTE configurations. Defaults to Full, the toolbar every field already had, so nothing changes on upgrade. Narrowing a toolbar only hides buttons — it never unloads editor features, so formatting already in a field (tables, images, code blocks) keeps loading and saving intact. Author-facing category filter on Listing fields. When a listing brick sets a Filter field, the brick now shows a category picker, so one listing brick can be reused across pages pointed at a different category each time. The picker searches only the channel that relationship field targets. Clearing it lists everything. The render side already honoured a filter value; there was simply no way to set one. Fixed Listing bricks could lose their channel when edited in the CP. The brick builder's Channel dropdown is keyed by channel id, but a listing's channel may be stored as a channel name (both have always been valid, and CLI- or script-authored definitions write the name). A name-stored value matched no option, so the dropdown rendered blank — and saving the brick from that state wrote an empty channel, silently reducing the listing to no results. The dropdown now resolves either form for display and leaves the stored value alone unless a channel is actually picked. The Listing field's summary had no styling of its own, and on the publish page it couldn't resolve the channel's name — it now reads e.g. \"Lists Portfolio\". 1.4.1 Added Richer rich-text toolbar. The Full preset now adds underline, H4, text alignment (left/center/right), subscript/superscript, horizontal rule, text color, and highlight on top of the existing tools. Standard gains underline + headings. Per-block class & style (Full toolbar). New and tools apply a freeform CSS class or inline style to the specific block the cursor is in ( , heading, quote, list) — rendered straight onto that element. An inline style on the element itself overrides theme rules a wrapper class can't. Fixed Rich-text fields wouldn't accept typing or paste — the field wrapper was a , which redirected clicks to a toolbar button and stole focus from the editor. The wrapper is now a . Rich-text lists rendered with the bullet stacked above the text (a CP reset had flipped to ); forced back to . The brick Duplicate action's clone icon was mis-sized / off-center in the Bricks list toolbar. 1.4.0 Added Duplicate a brick — each row in the Bricks list has a clone action that copies the whole brick definition (fields, tabs, binder flag) under a fresh unique handle and opens the copy in the editor. Ideal for building bricks that differ only slightly (e.g. a variant tweak) without rebuilding the field set by hand. Relationship fields expose the related entry's fields — a relationship / entry kind now surfaces the picked entry's custom fields to templates. A single-pick relationship flattens to sub-variables (files resolve to a URL) alongside the entry title, so a brick can pull a cover image, client, year, etc. straight off the related entry. Fixed File fields no longer broadcast an upload to every other file field on the same page — each field's control is namespaced and scoped. Saved file values re-display correctly on reload (value-populated file protos). The brick builder auto-assigns unique handles to new columns / fields and no longer pre-fills placeholder names, so new columns and fields start empty. 1.3.0 Added Binders — reusable, bindable field-sets. Flag a brick Binding only (binder) and it becomes a binding-only definition (hidden from the insert menu) whose fields can be bound into other bricks. A bound binder appears as a locked, tinted, badged block that moves as a single unit (drag to reorder, drop into a tab) and keeps its own field organization. It's a live reference — editing the binder updates every brick bound to it — and its fields merge flat into the host's namespace. The builder warns on short-name clashes and on dangling references. Listing (channel query) field kind — turns a field into a live loop of channel entries resolved at render time (portfolio grids, blog lists, category indexes). Settings: channel, limit, offset, order by, sort, link prefix, and an optional relationship filter field. Each row exposes , , , , a formatted , and every custom field by its short name (files resolve to a URL). Loops with the same syntax as Grid. Documentation — in-CP docs expanded to cover Binders, the Listing kind and its settings, and Listing loop templating with a worked example. 1.2.0 Added Managed brick groups — groups are first-class DB entities (a column plus ). The Bricks sidebar mirrors EE's Fields page: create, rename, delete, and filter by group; deleting a group only ungroups its bricks. Groups also organize the in-editor insert menu. Earlier releases The initial release line established Mason's core: a global brick library reused across fields; the field-kind set (text, textarea, rich text, number, URL, email, toggle, select/multi-select/radio/checkboxes/button group, color, range, date, link, grid with two-level nesting, relationship, file/asset, and entry); per-brick tabs; conditional fields; per-field width and editor height; the native-EE brick builder (searchable Lucide icon picker, toggles, drag reorder); slash-command and canvas brick insertion; front-end templating ( , loops, grid loops, sub-value tokens, and custom overrides); and in-CP documentation.","breadcrumb_path":"Changelog","url":"/docs/mason/changelog"},{"page_id":44,"title":"Getting started","navigation_title":"Getting started","summary":"","headings":["Requirements","Install","Upgrade","Step 1: review the site defaults","Step 2: turn MetaCraft on for your channels","Step 3: give channel entries their URLs","Step 4: add the head tag","Step 5: publish the sitemap","Step 6: fill the gaps","Optional: page content and AI suggestions","Optional: cron"],"body":"From a fresh install to a site that outputs its titles, descriptions, social tags, JSON-LD and sitemap from MetaCraft. Allow about half an hour. Nothing changes on the live site until step 4. Requirements ExpressionEngine 7.5 or later, PHP 8.2 or later. Structure is optional. MetaCraft reads its page tree when it's installed, and works from channel URL patterns when it isn't. AI suggestions (optional) need your own Anthropic API key. Install Copy the folder to . Control Panel → Add-Ons → MetaCraft SEO → Install. Open Add-Ons → MetaCraft SEO. Until a channel is turned on, the Overview shows the three steps below. Upgrade Replace with the new folder (keep no old files behind). Control Panel → Add-Ons: MetaCraft shows an Update button. Click it to run the database updates, or run . Hard-reload a MetaCraft screen if it looks half-styled (⌘⇧R / Ctrl+F5). Upgrades keep your settings and every entry's SEO values, and the head tag's output stays the same until you use the new features. The changelog lists what's new in each version. Step 1: review the site defaults Settings → General: Site name and Base URL: leave blank to use EE's, or set them if EE's base URL includes or an internal hostname. The Canonical example line shows a real URL as you type. Title format: suits most sites. The Example box shows an entry title and a page without one. Default description: usually best left blank. Search engines then write their own snippet for pages without one. Settings → Social: a default share image (at least 1200 × 630) and your X . Settings → Structured data: who publishes the site (an organization, a local business, a clinic…), its logo, profile links, and for local businesses the address and opening hours. Settings → Advanced: on a Structure site, set Trailing slashes in URLs to Add. Each tab saves with Save settings (or ⌘S / Ctrl+S). See Settings for every option. Step 2: turn MetaCraft on for your channels Settings → Channels lists every channel. Switch on the ones whose entries are pages on the site (pages, articles, events, staff…), then click Edit on each to choose: where its description and social image come from: a field such as Summary or Hero image, the same text or image for every entry, or nothing; its structured data type (Article, Event, FAQPage, Person…) and the fields that fill it; whether editors see the MetaCraft SEO tab on the publish form (on by default). A channel that's left off is ignored, apart from its Structure pages, which still get titles and canonicals from the site defaults. Step 3: give channel entries their URLs Entries in the Structure tree already have URLs. For other channels whose entries have their own pages (a blog, news, events), open the Sitemap screen and give the channel a URL pattern under Sources, such as . MetaCraft uses it to recognise the page, build its canonical URL and list it in the sitemap. Step 4: add the head tag Put the tag once inside , in the layout or partial every page uses, and remove the old , description, canonical and tags (or ) from the same head: View a few pages' source to check the output. The Overview lists any template that would still output a tag twice. Template tags has every parameter and examples for search, 404 and listing pages. Switching from SEO Lite Pro? Import its data first: see Switching from SEO Lite Pro. Step 5: publish the sitemap Sitemap screen: turn Enabled on and check the public statuses. Create an XML template containing only with the route . Open , add to , and submit it to Google Search Console. XML sitemaps covers large sites, static files and hosting quirks. Step 6: fill the gaps The Overview now shows how many published entries have custom values, use defaults only, or need attention (a missing description or image with nothing to inherit, or a duplicate title or canonical). Content SEO lists every entry with filters for each problem, Quick edit for titles and descriptions, and Edit SEO for everything else. See Overview and Content SEO and Editing an entry's SEO. Optional: page content and AI suggestions MetaCraft can read each entry's rendered page and suggest titles, descriptions and structured data values for review. Marks in your HTML (Marking page content) work without AI. For AI suggestions, an admin turns them on in Settings → AI with your Anthropic API key. See Page content and suggestions, including what is sent and what it costs. Optional: cron Two commands keep things fresh without anyone waiting:","breadcrumb_path":"Getting started","url":"/docs/metacraft/getting-started"},{"page_id":46,"title":"Marking page content for structured data","navigation_title":"Marking page content for structured data","summary":"","headings":["When marks are read","Where a mark's value goes","Single values","Properties you can mark","Groups: FAQs and opening hours","Where to put marks","In templates","In PageCraft and StoryCraft content","Hand-written HTML","Without marks","What MetaCraft reads"],"body":"MetaCraft can read an entry's rendered page and take structured-data values straight from it. You mark the values in the HTML with two attributes: marks one value, such as a date, a phone number or a price; or marks a group of rows, such as FAQs or opening hours. Marks are exact values. MetaCraft uses them in the JSON-LD without asking, the same way it uses a mapped field, and the editor shows them with a Marked badge. Values it only guesses from ordinary HTML, or that AI suggests, are offered for review instead and are never used until someone accepts them. See Page content and suggestions. Marks are optional. A page without any is output exactly as before. When marks are read MetaCraft reads a page when it captures it. That happens: from the CLI: reads entries changed since their last capture (cron-friendly), with , or for more; on demand from the entry's SEO editor. Saving an entry only marks its page as changed. It never fetches the page during the save. Page views never capture anything either: the head tag uses the marks stored at the last capture, so a changed mark shows up in the JSON-LD after the next capture. Where a mark's value goes Each property has one value. The first source that has it wins: a value accepted for the entry in the SEO editor; a mark on the page; the channel's mapped field; MetaCraft's automatic value (title, URL, dates, the site's details). A mark is only used when the entry's schema type has that property. For example, does nothing on a page whose type is Article. Set the type per channel (Settings › Channels) or per entry. Single values Put on the element that holds the value. MetaCraft reads, in order: The element has Value used (usually ) the attribute (usually ) the attribute an starting or the number or address, without the scheme or the a link with no text the anything else its text, with spaces tidied and tags removed If the same property is marked twice on a page, the first mark wins. To give a value that isn't shown on the page, use a with : Properties you can mark Property names are the same keys used in channel field mappings. A dotted name fills one part of a nested value. Type Properties MedicalWebPage , FAQPage (use a group) Article, BlogPosting (a name), Event , , , , , Product , , Service , Person , Physician , , LocalBusiness (location) , , , , , , (use an group), , , Other names are ignored. Values follow the same rules as mapped fields: Dates: an ISO date or date-time works best ( or ). Prices: include a currency, for example , or . A price without one counts as missing, and a Product without a price is output as a plain WebPage. Images: a full or site-relative URL. Groups: FAQs and opening hours Put or on an element that wraps the rows. Inside it, mark each cell with set to its role: Group Roles Fills , (FAQPage) , , (LocalBusiness) Rows don't need their own wrapper. A role seen again starts the next row. Several groups of the same kind on one page are joined in page order. Hours are read the same way as a Grid field's: Days: a day ( , , ), a range ( , ), a list ( ), or , or . Times: 12- or 24-hour ( , , , ). Closed: in opens. A row that can't be read is skipped and listed in the editor's Structured data tab. An answer keeps its text only; markup inside it is removed. Where to put marks In templates Add the attributes where the template outputs the field: If a field is already mapped in the channel's settings, you don't need a mark for it. A mark only helps when the value isn't in a field of its own. In PageCraft and StoryCraft content PageCraft and StoryCraft store rendered HTML, so marks inside their blocks are read like any other HTML. Add the attributes in a block's HTML (source) view, and always give them a value: the ContentBox editor underneath drops some empty attributes. Check the saved page's source to confirm a mark survived. Dynamic sections are rendered from EE templates, so marks go in those templates as above. Hand-written HTML Any element can carry a mark: a around text, a for a hidden value, or the , and the page already has. Without marks Pages without marks still give MetaCraft useful hints. When it captures a page, it also looks for: and links; an element; dates; / pairs, and headings ending in followed by an answer. These become suggestions in the editor. They are not used until someone accepts them, because ordinary HTML doesn't say which property a value belongs to. If AI is enabled (Settings › AI), it can suggest further values from the page's text, and those are reviewed the same way. What MetaCraft reads Only the entry's own public page, fetched from your site with the user agent . Closed, future and expired entries aren't fetched. Marks are read from the whole page. Text for suggestions comes from (or when there is no ), without navigation, header, footer, scripts, styles or forms. Pages larger than 5 MB, redirects and non-200 responses are not read. The editor shows why.","breadcrumb_path":"Marking page content for structured data","url":"/docs/metacraft/marking-page-content-for-structured-data"},{"page_id":43,"title":"Overview","navigation_title":"Overview","summary":"","headings":["Install","How values are chosen","The control panel","Setup","Settings → General","Settings → Social","Settings → Structured data","Settings → Channels","Structured data per channel","Settings → AI","Settings → Advanced","Editing an entry's SEO","Permissions","Overview and Content SEO","Page content and suggestions","Reading pages","Where suggestions come from","In the editor","Bulk jobs","Privacy","Costs","Image alt text","What's checked","Where you see it","Fixing alt text","Share image alt text","Switching from SEO Lite Pro","Deploying","License","Development"],"body":"Page titles, meta descriptions, canonical URLs, robots, Open Graph / X cards, JSON-LD and XML sitemaps for ExpressionEngine 7.5+ (PHP 8.2+). Built for sites that use Structure for their page tree. MetaCraft outputs nothing until a template uses . It never edits templates, Structure data, SEO Lite data or channel entries. The same guide, with screenshots and search, is under Documentation in MetaCraft's sidebar in the control panel. It's also a website: open in a browser, or upload anywhere that serves static files. GETTING-STARTED.md — install, upgrade and first setup, step by step TEMPLATES.md — the head and sitemap tags, every parameter, examples SITEMAPS.md — sitemap sources, setup, static mode, cron, hosting notes SCHEMA-MARKUP.md — marking structured data values in your pages TROUBLESHOOTING.md CHANGELOG.md · FUTURE.md Install Copy to (without , see Deploying). Control Panel → Add-Ons → MetaCraft SEO → Install. Open Add-Ons → MetaCraft SEO. The Overview walks you through the rest (GETTING-STARTED.md has every step). To upgrade, replace the folder, then click Update on MetaCraft in Add-Ons (or run ) to run the database updates. Uninstalling removes MetaCraft's tables and its publish tab from every layout. Static sitemap files are left in place. If you used static mode, click Remove static files on the Sitemap screen before uninstalling, or delete / by hand afterwards. How values are chosen Every value is resolved from the most specific source that has one: Order Source Badge 1 Template tag parameter ( ) Template 2 The entry's SEO tab override Custom 3 A mapped channel field (e.g. a \"Summary\" field used as the description) Mapped 4 Channel defaults Channel 5 Global defaults Global 6 Automatic (entry title, entry URL, current page URL) Auto Channel-level sources (2–4) only apply in channels that are enabled in MetaCraft. Entries in other channels — and pages that aren't entries at all — use template parameters, global defaults and automatic values. The same resolver drives the head tag, the publish-tab preview, the sitemap and the audit, so they always agree. The control panel Add-Ons → MetaCraft SEO has four screens: Overview, Content SEO, Sitemap and Settings, plus Documentation: this guide, with search, for everyone who can open MetaCraft. Settings and Sitemap changes need a MetaCraft admin (Permissions). Other roles don't see Settings in the sidebar and get a read-only Sitemap. CP links carry EE's session in the URL ( ). Open screens from the sidebar or from links inside MetaCraft. A bookmarked or pasted CP URL without a valid session asks you to log in again. Setup Settings → General Site name: used in titles and as the default name everywhere. Blank = EE's site name. Base URL: every canonical and sitemap URL is built from it. Blank = EE's base URL. Never include ; the field warns if you do. A Canonical example line shows the result as you type. Title format: tokens , , , (click a token to insert it). Default . The Example box renders an entry title and a page without one. Unknown tokens and a format without get a warning. Separator: , , or . Default description: used when nothing more specific exists. Usually best left blank (no description tag), so search engines write their own snippet. Search indexing / Link following: the site-wide robots default. Choosing Noindex shows a red warning. Only use it on staging. With Index and Follow there's no robots tag in the page source; that's the default search engines assume. Settings → Social (blank = site name), the default share image (File Manager), X card type (Large image or Summary) and X . Settings → Structured data Turn JSON-LD on or off. Turning it off keeps the values below. Who publishes this site: the entity type, plus name, URL, logo and profile links ( , one full URL per line; a bad line is named). Entity types: General: (no public location), , ; Medical: , , , , . Location and contact (LocalBusiness types, including MedicalClinic, Physician and Dentist): address, telephone, email, latitude/longitude, price range, area served, and opening hours. Hours are rows of days with opening and closing times; tick Closed to say a day is closed, and days you leave out say nothing. If a day is in two rows, only the first counts (the screen warns you). Medical details (medical types): specialties (schema.org's list), accepting new patients (Not stated / Yes / No) and accepted insurance (one per line). schema.org only defines these for MedicalOrganization, MedicalClinic, Physician and Dentist, so they aren't output for plain MedicalBusiness. WebSite: the site's name and URL. Example output: the site-wide JSON-LD built from the saved settings. Sites with several locations (a clinic with ten offices) keep the brand here, usually as or , and give each location its own entry in a channel set to LocalBusiness (location). See Structured data per channel. Settings → Channels A table of every channel on the site: an on/off switch, plus where its title, description and image come from. A broken field mapping shows in amber. Edit opens the channel's drawer: Title format: overrides the site format for this channel (blank = site format), with an example. Field mappings: SEO title, Open Graph title and Open Graph description from a channel field. Only compatible fields are listed: Target Fieldtypes SEO title, description, OG title, OG description Text input, Textarea, Rich Text (HTML stripped) Social image File Canonical URL Text input, URL. Anything that isn't a full http(s) URL or a path starting with is skipped. Description comes from: a field (the fixed text below it is the fallback when the field is empty), the same fixed text for every entry, or nothing. Social image comes from: a File field, one image for every entry, or nothing. Canonical URL comes from: the page's own URL (recommended) or a field. Channel defaults: Search indexing and Link following (Site default / on / off). Structured data: the channel's type and where each of its properties comes from. See below. Show the MetaCraft SEO tab: adds the tab to the publish form, including custom publish layouts, and removes it again when you turn it off. A mapping to a field that was deleted, moved out of the channel's field group, or changed type keeps showing as Missing field (#N) with a warning until you choose another. At runtime it's ignored, never fatal. All drawers save together with Save settings. URL patterns and sitemap inclusion are on the Sitemap screen (SITEMAPS.md). Structured data per channel Pick the channel's type, then map each property to a channel field. Only fields that fit are listed (a Date field for a start date, a URL field for a ticket link). Properties are marked: Required: without a value the entry outputs a plain instead of a half-filled type (Google treats a broken Event as worse than none). The summary line says how many required properties aren't mapped yet. Optional: added when the entry has a value. Automatic: filled from MetaCraft's own values (the SEO title, the entry title, dates, the social image, the site's organization). Type Required Optional WebPage — — MedicalWebPage — Last reviewed (Date), Reviewed by (Text) FAQPage Questions and answers (Grid) — Article, BlogPosting — Author (entry author or Text), Image (File; else the social image) Event Start date (Date), Venue name, Venue address (Text) End date, Tickets link (URL), Image Product Price (Text with a currency, e.g. , ; a price without one counts as empty) Brand, Image (File; else the social image) Service — Service type, Area served Person — Job title, Photo Physician — Specialty, Telephone, Photo LocalBusiness (location) Street, City (Text) Region, Postcode, Country (else the country in Settings › Structured data), Telephone, Opening hours (Grid), Latitude, Longitude, Photo The Required marks follow what Google needs before it will show a rich result (an event's venue address, a product's price), so a page that outputs a type is eligible for it. Person pages output a whose main entity is the Person. Event, Product, Service, Physician and location pages output a whose main entity is the thing. A location uses the site's own type when that's a kind of local business (a site gets locations), under a , and otherwise. Each location links to the site's organization as its parent. Grid fields feed two properties: Property The Grid needs columns named (or labelled) Opening hours , , Questions and answers , A Grid without the right columns is listed but can't be chosen, with the missing column named (\"needs a Closes column\"). For the day column, a Select or Checkboxes column with Monday…Sunday is the most reliable; MetaCraft also reads text like , or . Times can be or ; Closed in the Opens column marks the days closed. Rows MetaCraft can't read are skipped and listed in the editor's Structured data preview. Each entry can choose a different type in its editor's Advanced section. The channel's mappings are used for whichever type the entry outputs. Settings → AI AI suggestions are off until an admin turns them on here. While they're off, MetaCraft never contacts an AI provider and no AI controls appear anywhere. Page capture, page marks and suggestions from page HTML still work. Enable AI suggestions: the switch. The disclosure below it says what is sent and when (Privacy). Provider: Anthropic (the only one in 1.3). API key: your own Anthropic key, from the Anthropic Console. It's stored encrypted and never shown again; the screen shows only its last four characters. Replace or Remove it, or Test key (a free call that checks the key, nothing is generated or charged). To keep the key out of the database, set it in instead: . The screen then shows it as locked. Models: one for titles and descriptions, one for structured data. Claude Haiku 4.5 is the default for both; Claude Sonnet 5.5 costs twice as much and is better with long or messy pages. Usage: requests, tokens and estimated cost for this month and last month, counted by MetaCraft. Your Anthropic invoice is the final word. Page capture (advanced): see Reading pages. Settings → Advanced Trailing slashes in URLs: Keep as is, Remove or Add, applied to every URL MetaCraft outputs. On Structure sites choose Add. Structure adds a trailing slash to page URLs when an entry is saved, but drops it for every page when you drag-reorder the tree, until each page is saved again. With Add, canonical and sitemap URLs stay the same either way. When the choice doesn't match Structure's own \"add trailing slash\" setting, an amber box offers a one-click Use Add / Use Remove. MetaCraft never changes Structure's setting. Who can change settings: see Permissions. Every role on the site is listed; roles that can't use the control panel are marked no CP access. Import from SEO Lite…: shown while SEO Lite's data table exists (Switching from SEO Lite Pro). Every Settings tab has one sticky save bar: unsaved changes are flagged, Discard reloads the saved values, and ⌘S / Ctrl+S saves. Errors are listed in the bar, marked on the field and shown as a red dot on the tab. Nothing is saved until they're fixed. Editing an entry's SEO There are three ways in, and all three edit the same values: The MetaCraft SEO publish tab on the entry form. It saves with the entry. The full editor (Edit SEO from Content SEO or the Overview). It's its own page with its own Save SEO and doesn't touch the rest of the entry. Quick edit in Content SEO: the SEO title and description in a drawer, with a search preview. Open full editor links to the rest. The editor has three sections: Search appearance: title (plus \"use exactly as written\"), description, canonical URL, index and follow. Social: OG title, description and image, the image's alt text, plus optional X-specific overrides (Share image alt text). Advanced: sitemap inclusion, structured data type, extra robots directives ( , …). Each field shows the inherited value as a placeholder and a badge with its source. The search and social previews update as you type. Reset (or leaving a field blank) inherits again. The preview's Structured data tab shows the JSON-LD the page outputs, as last saved: the type, a Test in Google link (Google's Rich Results Test for the page's URL), a note when a required property is empty, and any Grid rows that were skipped. Above the preview, a line says when the entry's page was last read, with Re-read. In 1.3 the editor can also suggest values from that page (Page content and suggestions). From 1.4, an Images panel under that line checks the page's images for alt text (Image alt text). The publish tab only saves when the tab itself was on the submitted form, so bulk edits, Channel Form and API saves never clear SEO data. \"Save as new entry\" copies everything except the canonical URL. The full editor and quick edit save only the fields you changed. If someone else saved the entry's SEO after you opened it, you're asked whether to overwrite their changes. Permissions Overview, Content SEO and the read-only Sitemap: anyone whose role has access to the MetaCraft add-on (EE's normal add-on access). Settings, Sitemap changes and the SEO Lite import: Super Admins, plus the roles chosen under Settings → Advanced → Who can change settings. This is checked on every request, including form posts. Other roles see a \"Settings are limited to MetaCraft admins\" page. Editing an entry's SEO (publish tab, full editor, quick edit): the same rules as editing the entry in EE: the channel must be assigned to the role, and editing other people's entries needs that permission. MetaCraft must be on for the entry's channel. Otherwise the editor explains why and nothing can be saved. Suggestions for an entry (Re-read, Suggest, Use, Dismiss): anyone who can edit that entry. Bulk suggestion jobs and Settings › AI: MetaCraft admins only. Overview and Content SEO These screens audit what MetaCraft would output for every published entry. These are candidate entries: public status, entry date in the past, not expired, and either in an enabled channel or in the Structure tree. Overview shows the totals (indexable, , needs attention), what needs attention most, the sitemap's status, and any templates that would output SEO tags twice (TEMPLATES.md). Needs attention means a missing description or social image (with nothing to inherit), a duplicate title (case- and whitespace-insensitive) or a duplicate canonical URL. Inherited channel or global values don't count as missing. Content SEO lists every candidate entry with coverage chips for each value: custom, inherited, missing or noindex. Hover or focus a chip to see the value and where it comes from. Filter by status (Needs attention, Duplicate title, Using entry title, Schema incomplete…), by channel or by search. Using entry title, Schema incomplete and Images missing alt text are informational and don't count toward Needs attention. Rows with images missing alt text show a chip with the count (\"2 images\") that opens the entry's editor. Each row has Quick edit and Edit SEO. Results are cached for about an hour. They refresh whenever an entry, MetaCraft setting or channel setting changes, or when you click Re-check now. This is a check of your configuration, not data from search engines. Page content and suggestions MetaCraft 1.3 can read each entry's rendered page and suggest values for its SEO fields and structured data. Every suggestion is reviewed by a person; nothing is applied on its own, including in bulk. Reading pages MetaCraft reads an entry's public page with an ordinary GET request to your own site (user agent ). It keeps the page's main text, any page marks and what it recognised in the HTML. It never reads pages during a page view or while an entry is being saved: saving only notes that the page has changed. Pages are read: when you click Re-read (or Read the page) in the editor, or ask for a suggestion and the page has changed; from the command line, for entries changed since they were last read: Run it from cron (for example every 15 minutes) so pages are ready before anyone asks. Only public entries are read: closed, future-dated and expired entries are skipped, and so are entries without a URL. Redirects, error responses and pages over 5 MB aren't read, and the editor says why (TROUBLESHOOTING.md). If the server can't fetch its own pages by their public URL (basic auth on staging, a CDN that blocks the server, a different internal host), set Settings › AI › Page capture: a Capture URL that replaces the base URL for reading only, and a basic auth username and password (stored encrypted). Test capture reads the last page read successfully with those settings. The capture URL is never used in canonical or sitemap URLs. Where suggestions come from Source What Applied Page marks / attributes (SCHEMA-MARKUP.md) Used directly, shown with a Marked badge Page HTML phone and email links, , , FAQ-style questions Suggested for review AI (when on) titles, descriptions and structured data written from the page text Suggested for review Structured data values resolve in this order: a value used on the entry → a page mark → the channel's mapped field → MetaCraft's automatic value. In the editor Suggest next to the SEO title, description and Open Graph title and description (with AI on), or Suggest N empty fields above the sections. A suggestion card shows the text and what it replaces, with Use, Edit and Dismiss. Use fills the field; it's saved with the rest of the form. If the page hasn't changed since the last suggestion, the earlier one is shown and nothing is sent. Suggest again (sends a request) asks anew. The Structured data tab lists Suggested from the page: marked values, and suggestions from the page HTML and AI with Use / Dismiss (and Undo after using). Suggest with AI asks for structured data. Used values are saved straight away and the JSON-LD updates. Bulk jobs With AI on, MetaCraft admins get a bulk job on Content SEO's Missing description and Schema incomplete views (\"Suggest descriptions for 48 entries…\"), and from the Overview's Needs attention card. Confirm: how many entries will be sent, how many are skipped because their page hasn't changed, how many pages haven't been read yet, and an estimated cost range. Nothing is sent until you click Start. Running: entries go 5 at a time. Stop, or closing the drawer or tab, pauses the job; Content SEO then offers Resume. Entries already done aren't sent again. Review: current value and suggestion side by side, with Use, Edit, Dismiss and Undo, or Use all shown. Failed entries say why. Done: a summary of what was applied, dismissed and failed. Suggestions you don't review stay on each entry, for review in its editor. Privacy What is sent, and where: when someone asks for a suggestion or starts a bulk job, MetaCraft sends that entry's title, URL and the main text of its page (up to 24,000 characters; longer pages are trimmed and the editor says so), plus the list of fields or properties wanted, to Anthropic's API ( ), using your API key. Nothing else from the entry, other entries, members or settings is sent. When: only on Suggest, Suggest N empty fields, Suggest again, Suggest with AI, or a bulk job's Start / Resume. Never on page views, entry saves or captures. Test key sends no content. With AI off: nothing is sent to any AI provider. The only requests MetaCraft makes are page captures to your own site. Stored on your server: each entry's captured text, marks and findings ( ), suggestions and their status ( ), and monthly totals of requests and tokens ( ). An entry's page content and suggestions are deleted with the entry. The key is stored encrypted with EE's encryption key (or kept in ), is never written to logs, and is never sent to the browser. Anthropic's handling of API data is covered by your agreement with Anthropic. MetaCraft doesn't ask the provider to keep or train on anything. Costs Requests are billed to your Anthropic account at its list prices (October 2026: Claude Haiku 4.5 $1 in / $5 out, Claude Sonnet 5.5 $2 / $10 per million tokens). A typical page is 2,000–7,000 input tokens and a description about 60 output tokens, so a description costs well under a cent with Haiku. Bulk jobs show an estimate before anything is sent, Settings › AI shows this month's usage, and unchanged pages are never sent twice. Image alt text MetaCraft 1.4 checks the images on each entry's page for alt text, and outputs alt text for the share images it puts in the head tag. No AI is involved, and nothing is sent anywhere new. What's checked When MetaCraft reads an entry's page (Reading pages), it also lists the images in the page's main content: the same part it reads text from ( , or the without its header, navigation and footer). Every and counts, including lazy-loaded images ( , , ). Image files are never downloaded. Each image gets one of four states: State Means Missing alt text The image has no attribute. Screen readers usually read out the file name instead. An issue Possibly unhelpful The alt text is the file name ( ), a generic word (image, photo, banner…) or under 3 characters. A warning Decorative , or , or on the image or around it. Screen readers skip it, which is right for images that add nothing. Fine OK Anything else. MetaCraft can't judge whether the description is accurate. Fine Not checked: images in the site header, navigation and footer (logos and icons are the same on every page, so check them once in the templates), inline , CSS background images, posters, tracking pixels (1×1), and the copies lazy-loading scripts add. Where you see it In the editor, an Images panel under the capture line: \"5 images: 1 missing alt text, 1 possibly unhelpful, 1 decorative\", or \"All 12 images have alt text\". Show which lists them, issues first, with a thumbnail, the file name, the state and the current alt text. The panel only appears once the page has been read by MetaCraft 1.4 or later. Before that it says Re-read the page to check its images. In Content SEO, the Images missing alt text status filter, and a chip on each such row. Like Schema incomplete it's informational: it doesn't count toward Needs attention, and entries whose pages haven't been read don't appear. After upgrading to 1.4, run once: the upgrade marks every page read before 1.4 as changed, so this reads them again for their images. Re-reading never sends anything to AI and doesn't count as changed content. Fixing alt text Alt text is part of the entry's content, so fix it where the image was added. MetaCraft only reports it; it never changes your content. PageCraft: select the image, open its settings and fill in the alt text (or leave it empty and mark the image decorative if it adds nothing). A file field: the alt text comes from your template. Many templates output the file's description from the file manager as the alt text. A template image: edit the attribute in the template. Then save the entry and click Re-read in the editor. Share image alt text The editor's Social section has an Alt text field under the social image (and under the X image when the entry has its own). MetaCraft outputs and from: what's typed in that field, for this entry; otherwise the image's description in the file manager; otherwise nothing. MetaCraft never makes alt text up from the title or the file name. The X image uses the Open Graph alt text only when it's the same image. Images given by the template parameter only use the file description route, because the entry's alt text describes the entry's own image. Switching from SEO Lite Pro MetaCraft copies SEO Lite's per-entry data once, then SEO Lite can be removed. MetaCraft never edits templates or SEO Lite data, so every step can be undone until you uninstall SEO Lite. Work on a staging copy of the site and database. Configure MetaCraft first: Settings → General (title format, separator, base URL), Social, Structured data, Advanced (trailing slashes), and turn on the channels SEO Lite was used on. Dry run the import: Settings → Advanced → Import from SEO Lite…, or (add on other sites). This changes nothing. It lists what would be copied: Conflicts: the entry already has a different MetaCraft value. MetaCraft's value is kept. Skips: e.g. a canonical that isn't a valid URL. Adjustments: SEO Lite titles that already end in your site name have that suffix removed. Titles that already contain your branding are imported as \"exact\", so the site name isn't added twice. Run the import (the CP button, or the same command with ). Only empty MetaCraft fields are written. Channels with imported data are enabled and get the SEO tab. Running it again is safe. Compare output side by side. Make a scratch template group with a copy of your page template, using in place of (this project's group is an example). View a few pages of each type in both versions and compare the source. Swap the tag in the shared head (layout or partial): add and remove and any hard-coded , description, canonical or tags. Check the Overview: it should not list any templates that may output duplicate tags. Deploy, repeat steps 3–4 on production, then (after a quiet period) uninstall SEO Lite. Deploying Ship the add-on without . ships. Dev tooling (PHPUnit, Composer, test scripts) lives outside the add-on in and is never deployed. The same in a deploy tool's exclude list: To keep page content fresh for suggestions, add the capture command to cron (Reading pages). On the real site, create its own template and route (SITEMAPS.md). License MetaCraft is commercial software, licensed per production website: see LICENSE.md. It includes Lucide icons under the ISC License ( ). Development Unit tests: Integration checks: , , Query count for one head tag: Audit / template scan from the CLI: , Suggestions end to end with a fake AI provider: ; the AI gate: User guide site: edit the Markdown, then (pages, links and figures are set in ; the build fails on a broken link). Screenshots: see . UI checks: (stored page for entry 52) and (AI on with a fake key; stub requests in the browser) The project repository is whitelist-only. It tracks , and this add-on. Before the first deploy from this project, remove the local test content: template group (and with it the , and routes): channels , , , and their entries (CP → Channels). Structure drops its rows for those channels. fields and the field group .","breadcrumb_path":"Overview","url":"/docs/metacraft/overview"},{"page_id":45,"title":"Template tags","navigation_title":"Template tags","summary":"","headings":["Which entry is the page about?","Parameters","Common pages","What the JSON-LD contains","Duplicate tags"],"body":"Outputs everything that belongs in for SEO, in one place: , , , Open Graph: , , , , , (+ width/height when known, and when the image has alt text) X: and always. , and (+ ) only when the entry has an X-specific override; otherwise X reads the OG tags. The image alt tags come from the entry's Alt text field, else the image's description in the file manager. Without either they're left out (Share image alt text). One block with a single : WebSite, Organization (when named), WebPage or Article, and BreadcrumbList on Structure pages that have parent pages. A tag is left out when there's no real value for it. MetaCraft never outputs an empty description or a placeholder image. The robots tag is also left out when it would say , because that's what search engines assume for a page without one. It appears only when something is restricted ( , ) or extra directives are set. Put it once, inside , in whatever template, layout or partial builds your : Remove any hard-coded , description, canonical or tags from the same . The Overview flags templates that still have them (Duplicate tags). Which entry is the page about? With no , MetaCraft works it out from the URL, in this order: Structure: the request URI matches a Structure page or listing entry. Matching ignores case and trailing slashes. Channel URL pattern: the URI matches an enabled channel's URL pattern (on the Sitemap screen), e.g. . Otherwise the page is a non-entry page: title = site name, canonical = the current URL without its query string. A trailing pagination segment ( ) is ignored when matching. On Structure and pattern pages it is added back to the canonical, so page 2 of a listing canonicalizes to itself, not to page 1. Pass when the URL can't identify the entry, e.g. a template that shows an entry chosen some other way: (Calling the head tag inside works, but the URL-based lookup above is cheaper when it applies.) Parameters All are optional. A parameter beats every other source. Parameter Example Effect Use this entry instead of detecting one from the URL. Replaces in the title format. Output the title as given, without the format (site name, separator). Meta and OG description. or Canonical URL. outputs no canonical tag. Replaces the robots value entirely. Social image URL. . Default for Article entries, otherwise . outputs no JSON-LD on this page. No BreadcrumbList on this page. Parameter values are trusted template content. Entry and channel values are escaped. and from editors' text are encoded so ExpressionEngine never parses them as tags. Common pages Shared head in a layout (the usual setup). Child templates don't need to do anything: A page that needs a different value: pass it through a layout variable. Shared head partial ( or an embed): same tag, same rules. The scanner follows partials, template variables, embeds and layouts. Search results: keep them out of the index but let crawlers follow links: 404 page: no index, no canonical: Paginated listing ( ): nothing to do. If is a Structure page, the canonical is . Otherwise it's a non-entry page and the canonical is the current URL. What the JSON-LD contains One with an : WebSite (always, when JSON-LD is on) and the site entity (when it has a name): or the type chosen in Settings → Structured data, with its address, hours and medical details where they apply. They're linked by : and . The page, by its structured data type: , , , , : one node for the page. , , , , location: a whose is the thing ( , , , , on the page URL). : a whose is the Person. A required property without a value outputs a plain . BreadcrumbList for Structure pages with ancestors. Things link back to the site entity where schema.org expects it: (articles), (events), (services), (locations). Values never come from anywhere but your settings, entry fields and Grid rows, and empty properties are left out. Duplicate tags MetaCraft can't see other tags' output, so the Overview scans instead and lists templates that may output duplicate tags. It reads every template (database and files), template partial and template variable, follows , and references, and lists pages where ends up next to , a literal , or . Duplicate: both were found. Possible: the page has the head tag but includes something the scanner couldn't follow, such as or a missing template. Check it by hand. The scanner doesn't evaluate conditions and ignores and comments. It never edits anything. Serves the XML sitemap from a template. The tag sends its own header and ends the request, so nothing else in the template (or any add-on's output filters) runs. Parameter Example Effect Serve child sitemap N when the site has more than 45,000 URLs (sitemap index mode). Responses: with XML. when the sitemap is turned off or the part doesn't exist. with only when there is no previous sitemap to serve while a rebuild runs. Full setup, static files and cron: SITEMAPS.md.","breadcrumb_path":"Template tags","url":"/docs/metacraft/template-tags"},{"page_id":48,"title":"Troubleshooting","navigation_title":"Troubleshooting","summary":"","headings":["The SEO tab doesn't show on the publish form","The canonical URL is wrong","returns 404","The browser shows an XML error for","The sitemap lists pages that return 404","The sitemap is out of date","Tags appear twice in the page source","There's no robots meta tag","A mapped field isn't used","An entry's Event (or other type) isn't in the JSON-LD","The Overview numbers look stale","MetaCraft screens look unstyled or half-old after an upgrade","A MetaCraft link logs me out or says I'm not allowed","A page can't be read","The Images panel says the page's images haven't been checked","A decorative image is flagged as missing alt text","There's no tag","AI suggestions don't appear, or fail","\"MetaCraft is not licensed on this domain\""],"body":"Start with the developer log (CP → Logs → Developer). MetaCraft logs every problem it works around there, once per day per message, and never shows errors to visitors. If the head tag fails completely, the page still gets a plain with the site name. The SEO tab doesn't show on the publish form The channel must be enabled and have Show the MetaCraft SEO tab ticked (Settings → Channels → Edit). Custom publish layouts: MetaCraft adds its tab to existing layouts when you save the channel settings. If someone removed it from a layout, save the channel's MetaCraft settings again, or drag the MetaCraft SEO tab back in the layout editor. The member's role needs permission to edit entries in that channel. The tab follows normal entry permissions. The canonical URL is wrong Find which source won: the publish tab badge next to Canonical URL (Custom / Mapped / Auto), or the entry's chips in Content SEO. Symptom Likely cause Wrong domain or in the URL Settings → General → Base URL (the Canonical example line shows the result). Blank uses EE's base URL; set it explicitly if EE's includes or an internal hostname. Slash at the end comes and goes Trailing slashes set to Keep as is on a Structure site. Use Add (Settings → Advanced). Points to another page The entry has a canonical override (tab) or a mapped canonical field. Clear it, or fix the mapped field's value. Channel entry has no canonical, or the listing page's URL The channel has no URL pattern (Sitemap screen → Sources), or the template passes the wrong . Page 2 canonicalizes to page 1 A parameter or an entry override is set. Both are used exactly as given, without the segment. No canonical at all in the template, or the override isn't a valid URL. Check the developer log. returns 404 What the 404 looks like tells you which part is missing: The 404 is… Cause Fix Plain text, just Not found MetaCraft answered, but the sitemap is switched off Sitemap screen → turn Enabled on Your site's normal \"page not found\" page The request reached ExpressionEngine, but no template is routed to , so MetaCraft never ran Create the sitemap template and its route (setup), and turn on Settings → Template Settings → Enable template routes A bare server page (e.g. nginx) The web server answers itself and never asks ExpressionEngine See Hosting notes in SITEMAPS.md, or use static mode returning 404 on a small site is expected: there's only one file. In template mode MetaCraft never writes a file to the server. The sitemap is built when is requested and cached inside MetaCraft, so no file appearing is normal. Only static mode writes files. The browser shows an XML error for Messages such as error on line 1 at column 1: Start tag expected, '<' not found mean the file isn't valid XML. MetaCraft's sitemap starts with and has no , or comments, so if you see those, the file isn't MetaCraft's. It's usually an old hand-made left in the web root. Web servers send a real file before ExpressionEngine sees the request, so while that file exists, MetaCraft's sitemap is never reached and new pages never appear. Check what's being served. shows the first characters, and shows the headers. A date from before MetaCraft was installed means a static file. Remove or rename the old file in the web root. Keep a copy if you want one. Set up the sitemap template (setup). If you use static mode instead, Regenerate now refuses while the old file is there, because MetaCraft never overwrites a file it didn't write. Purge the CDN or proxy cache. Headers such as and a large mean a cached copy is still being served. Add any query string to skip the cache while you check: . Resubmit the sitemap in Google Search Console, so it fetches the fixed version. The sitemap lists pages that return 404 The sitemap lists every entry that's public and indexable. A page whose template sends a 404 (for example a Structure parent with no content of its own, or a page that isn't finished) is still listed. Check every URL with: For each page it reports: Not ready for anyone yet: set the entry's status to Closed. It leaves the site and the sitemap; set it back to Open when it's ready. Visitors may see it, search engines shouldn't: SEO tab → Search indexing → Noindex. It's left out of the sitemap too. Only a folder in the Structure tree (its child pages are real): SEO tab → XML sitemap → Exclude, and leave it open so its children keep working. Don't close a parent like this. It should be a real page: fix its template so it renders. The sitemap is out of date It rebuilds on the next request after a change, not during the save. Load once, or click Regenerate now. Static mode only changes when cron (or Rebuild static files when entries are saved) runs. Check the cron job and its PHP binary: . Status Error on the Sitemaps screen: the previous sitemap is still being served. The message and the developer log say why, e.g. a that MetaCraft didn't write is in the way, or the folder isn't writable. An entry is missing: check its status (public statuses), dates, robots (noindex is excluded), its Sitemap setting on the tab, and whether its canonical points elsewhere. Channel entries also need a URL pattern with Include in sitemap and Has detail pages on. Tags appear twice in the page source The Overview's list of templates that may output duplicate tags shows the templates and where each extra tag comes from (the template itself, its layout, an embed or a partial). Remove the old , description, canonical, tags, or hand-written from that file. If the panel is clean but you still see duplicates, another add-on is injecting tags after the template renders. Check add-ons that use . There's no robots meta tag That's expected for pages that can be indexed. MetaCraft leaves out because search engines index and follow pages without a robots tag, so the tag would add nothing. The page is still indexable: Google Search Console's URL Inspection confirms it. The tag appears when a page is restricted ( or , from the entry, its channel, Settings → General or a template's parameter) or has extra directives such as . If a page you expect to be indexable has a tag, open its SEO editor: Search indexing under Search engine directives has a badge and a note saying where the value comes from. A template's parameter isn't shown there, so check the template too. A mapped field isn't used Mapped values only apply in enabled channels, and only when the entry has no override for that field (an override beats a mapping). Settings → Channels: the table shows a broken mapping in amber, and the channel's drawer keeps Missing field (#N) selected with a warning, for mappings whose field was deleted, moved out of the channel's field group, or changed to a type that can't be mapped. Supported fieldtypes: Text input, Textarea, Rich Text (title / description / OG text), File (image), Text input or URL (canonical). Structured data also uses Date, URL and Grid fields (opening hours, questions and answers). Fluid, Bloqs and relationship fields can't be mapped. A mapped canonical that isn't a full URL or a path starting with is skipped. The canonical falls back to the entry's own URL. The publish tab preview shows the mapped value as last saved. Save the entry to see a changed field reflected. A mapped image needs a file that still exists in the file manager. An entry's Event (or other type) isn't in the JSON-LD Open the entry's editor and look at the preview's Structured data tab. The type chip says WebPage and there's an amber note: a required property is empty or not mapped. Fill it in on the entry, or map it in Settings → Channels → the channel's Structured data. The Content SEO filter Schema incomplete lists every entry like this. \"needs a … column\" in the channel drawer: the Grid doesn't have the columns MetaCraft looks for. Name (or label) them , , for hours, or , for FAQs. Rows listed as skipped: MetaCraft couldn't read a day or time. Use day names or ranges ( ) and times like or . A Product outputs as WebPage: its price is empty or has no currency. Use , or . Medical details missing on a MedicalBusiness: schema.org doesn't define them for that type; choose MedicalClinic, Physician or Dentist. Nothing at all: JSON-LD is off in Settings → Structured data, the channel's type is None, or the page uses . Google decides whether to show a rich result; valid markup makes a page eligible, not guaranteed. The Overview numbers look stale Results are cached for about an hour, but any entry or setting change clears them. Re-check now forces a fresh audit. The counts cover published, live entries in enabled channels plus Structure pages, not drafts or closed entries. MetaCraft screens look unstyled or half-old after an upgrade MetaCraft's stylesheet and scripts are loaded with a version tag that changes whenever the files change, so browsers normally fetch the new ones straight away. Hard-reload the page (⌘⇧R / Ctrl+F5) to rule out the browser. A proxy or CDN in front of the control panel may ignore the query string. Purge (and the equivalent), or exclude the control panel from caching. Check that the add-on was updated (Add-Ons shows an update button until it is). The files and the database must be on the same version. A MetaCraft link logs me out or says I'm not allowed EE keeps the control panel session in the URL ( ) on this kind of setup. A bookmarked or pasted CP link without a valid session sends you to the login page, and a few screens then can't send you back to where you were. Open MetaCraft from the sidebar and use the links inside it. Old 1.0 links ( , , , , , ) redirect to the new screens once you're logged in. If a page says Settings are limited to MetaCraft admins, your role isn't listed under Settings → Advanced → Who can change settings. Ask a Super Admin. A page can't be read The editor's capture line (above the preview) says why. Test the fix with Settings › AI › Page capture › Test capture. Message Likely cause and fix Page content available after publishing The entry is closed, future-dated or expired. Only public pages are read. This entry has no URL The channel has no URL pattern (Sitemap screen → Sources), and the entry isn't a Structure page. The page redirected to another address The site redirects to a different scheme or host, most often to , or to or from . The message names the address it redirects to. Set ExpressionEngine's site URL to that address (Settings › URL and Path Settings, and in if it's set there), and MetaCraft's Base URL if you set one. This also fixes the canonical and sitemap URLs, which were pointing at the old address. The page redirected (trailing slash) The site adds or removes the trailing slash. Set the trailing slash setting (Settings › Advanced) to match the site's own URLs. The page redirected (301/302, other) The page redirects somewhere else, for example a redirect set up for that entry. Redirects aren't followed. The page returned an error (404, 403, 500…) The URL MetaCraft built doesn't render on the site, or a security layer refuses the server's own requests. Open the entry's page in a browser to compare. Couldn't reach the page / Couldn't read the page The server can't fetch its own public URL: basic auth on staging, a CDN or firewall blocking it, or DNS that doesn't resolve inside the server. Set a Capture URL (an internal address for the same site) and, if needed, basic auth. 401 Unauthorized on Test capture Basic auth username or password is wrong. A blank password field keeps the saved one. Page too large to read Over 5 MB of HTML. Usually a page embedding large inline data. The page was empty It returned 200 with no content, or only navigation and scripts. Check the template has a or body content. Pages also aren't re-read on their own until the capture command runs: add to cron (Reading pages). The Images panel says the page's images haven't been checked The page was last read before MetaCraft 1.4, or hasn't been read at all. Click Re-read in the editor, or run (after upgrading, it re-reads every page once). Entries that aren't public, or have no URL, can't be read (A page can't be read). A decorative image is flagged as missing alt text An image with no attribute at all is reported as missing, even if it's only decoration, because screen readers then read out its file name. Give decorative images an empty alt, (in PageCraft, leave the alt text empty in the image settings so it saves ). Images with or inside also count as decorative. Then save and Re-read. Images in the site header, navigation and footer aren't checked at all; check those once in your templates. There's no tag It's only output when there's alt text to output: typed in the entry's Alt text field under the social image, or the image's description in the file manager. MetaCraft doesn't make one up from the title or file name. An image set by the template parameter doesn't use the entry's alt text. AI suggestions don't appear, or fail No Suggest buttons: AI is off, or no key is saved (Settings › AI). They also need permission to edit the entry, and the page to have been read (the capture line says so). No bulk job on Content SEO: only MetaCraft admins see it, only with AI on, and only on the Missing description and Schema incomplete views. \"Anthropic rejected the API key\": the key was revoked, mistyped or belongs to a disabled workspace. Replace it in Settings › AI and use Test key. With a key, fix it there. \"Rate limit or quota reached\": the Anthropic account is over its rate or spend limit. Wait a minute, or raise the limit in the Anthropic Console. Bulk jobs can be resumed. \"Anthropic isn't responding\": a problem on Anthropic's side; nothing was charged. Try again later. \"Couldn't get a suggestion\": the developer log has a line starting MetaCraft: AI suggestion for entry N failed with the HTTP status and error type. The same suggestion comes back: the page hasn't changed since it was suggested, so nothing was sent. Suggest again (sends a request) asks anew. \"MetaCraft is not licensed on this domain\" ExpressionEngine reports that this site has no valid MetaCraft licence, or that it has expired. Nothing is disabled: the head tag, sitemaps, editing and every screen keep working. The notice shows only on MetaCraft's own screens, never to visitors or on the publish form. For the first 7 days it counts down, then the wording firms up. To clear it, add or renew the licence in Add-ons (the add-on's licence key field) and load any control panel page. ExpressionEngine refreshes its licence check from the browser, so the notice can take one page load to disappear. Local development hosts ( , , , ) never show it.","breadcrumb_path":"Troubleshooting","url":"/docs/metacraft/troubleshooting"},{"page_id":47,"title":"XML sitemaps","navigation_title":"XML sitemaps","summary":"","headings":["What's listed","Setup (template mode, recommended)","When it rebuilds","Static mode","CLI","Cron examples","Hosting notes"],"body":"What's listed URLs come from two sources, in this order: Structure pages and listing entries, using their Structure URLs (the Structure pages switch under Sources on the Sitemap screen, on by default). Channel entries from channels that are enabled in MetaCraft, have Include in sitemap and Has detail pages on, and have a URL pattern, e.g. . Pattern tokens: , , . A pattern must start with a fixed folder. An entry is listed only if all of these are true: its status is one of the public statuses (Sitemap screen → Rules; default ) its entry date has passed and it hasn't expired it resolves to (template parameters don't apply here; entry, channel and global robots do) its sitemap setting isn't No (publish tab → Advanced) its canonical URL is its own URL. Entries canonicalized to another page are left out. it still exists. Structure URLs for deleted entries are skipped and counted as orphaned on the Sitemaps screen. URLs are normalized (base URL, trailing-slash policy) and de-duplicated. Structure wins over a channel pattern. is the entry's edit date. Over 45,000 URLs, becomes a sitemap index pointing at , , … Setup (template mode, recommended) In template mode MetaCraft builds the sitemap when is requested and keeps it in its own cache. No file is written to the server. If an old file is already in the web root, remove it first: the web server sends a real file before ExpressionEngine sees the request, so MetaCraft's sitemap would never be reached. Sitemap screen: turn the Enabled switch on, check the public statuses under Rules, and set URL patterns under Sources for channels whose entries have their own pages. Create a template group (e.g. ) with a template , type XML, containing only: Template → Settings → Route: . (Template routes must be enabled: Settings → Template Settings → Enable template routes.) For large sites, add a second XML template : with the route . It's harmless on small sites (returns 404). Open . You should get XML with . Add the sitemap to (MetaCraft never edits that file): Then submit the same URL in Google Search Console / Bing Webmaster Tools. The Sitemaps screen shows status, URL count, when it was generated, a preview of the XML, and a Regenerate now button. When it rebuilds The sitemap is cached. It's marked stale (never rebuilt during the save itself) when: an entry is saved or deleted (any way: CP, bulk edit, Channel Form, API) MetaCraft settings, channel settings or sitemap settings change, or the SEO Lite import runs the Structure tree changes (detected from the stored page URLs) a scheduled entry goes live or an entry expires it's more than 24 hours old The next request for rebuilds it. Only one request rebuilds at a time; others are served the previous version meanwhile. If a rebuild fails, the previous sitemap keeps being served and the Sitemaps screen shows the error (details in the developer log). A failed rebuild isn't retried on every request. Static mode For hosts where requests for files never reach PHP, MetaCraft can write real files instead. Sitemap screen → Rules → Serve as: Static file, optionally a folder inside the web root (blank = the web root). Then rebuild from cron: Files are written atomically (temporary file, then rename) with permissions . MetaCraft never overwrites a file it didn't create. If a already exists, it stops and says so. It never touches . Rebuild static files when entries are saved (optional) rebuilds at the end of any CP request that changed something, so cron can run less often. Remove static files on the Sitemaps screen deletes only files MetaCraft wrote. Switching back to template mode or uninstalling leaves them in place. CLI : rebuild even if the cached sitemap is fresh. : build without saving; prints the URL count and the first 20 URLs. Exit code is non-zero on failure, so cron can alert. Cron examples Every hour is plenty for most sites. Use the PHP binary that matches the site's PHP version. Hosting notes Nginx in front of Apache (Cloudways and similar). Nginx often serves static file extensions itself, included, and returns its own 404 for a file that doesn't exist, so never reaches ExpressionEngine. Check after setting up the template: If the response is an Nginx 404 (not ExpressionEngine's), either ask the host to pass requests through when no file exists, or use static mode with cron. Plain Nginx + PHP-FPM. The usual already sends to ExpressionEngine. Apache. EE's standard rewrite (send requests that aren't real files to ) already covers . Base URL. Sitemap URLs use MetaCraft's base URL (Settings → General; blank = EE's). If the site is behind a proxy or uses a different public domain, set it explicitly.","breadcrumb_path":"XML sitemaps","url":"/docs/metacraft/xml-sitemaps"},{"page_id":3,"title":"MetaCraft License","navigation_title":"License","summary":"","headings":["MetaCraft Commercial License Agreement","1. License Grant","2. Development and Staging","3. Licensing and Versions","4. Permitted Use","5. Restrictions","6. Client Projects","7. Ownership","8. Third-Party Software and Services","9. Your Content and Data","10. No Guarantee of Search Results","11. Updates and Support","12. Termination","13. Disclaimer of Warranty","14. Limitation of Liability","15. Changes to This License","16. Contact"],"body":"MetaCraft Commercial License Agreement Version 1.0 Copyright © 2026 Bison Digital. All rights reserved. This Commercial License Agreement (\"License\") governs the use of MetaCraft SEO (\"Software\"), an add-on for ExpressionEngine developed and distributed by Bison Digital. 1. License Grant Subject to the terms of this License and payment of the applicable license fee, Bison Digital grants you a non-exclusive, non-transferable license to install and use MetaCraft on one production ExpressionEngine website for each license purchased. A \"production website\" is one ExpressionEngine installation serving a public domain, including its subdomains and language versions run from the same installation. 2. Development and Staging Each license also covers any number of local, development and staging copies of the licensed website, provided they are used only to build, test or maintain that website and are not publicly offered as a separate site. 3. Licensing and Versions Each license applies to the website it was purchased for and is validated by ExpressionEngine's add-on licensing. A website that uses MetaCraft without a valid license will display a notice in the control panel until a license is added; the Software is not disabled. Bison Digital may change the pricing, licensing model, features, support terms or availability of future versions of MetaCraft. A version of MetaCraft lawfully obtained under this License may continue to be used under the terms that applied to that version. Major future releases may require the purchase of a new license, upgrade or other commercial arrangement. This License does not guarantee access to future major versions, premium features, services, updates or support. 4. Permitted Use You may: Install and use MetaCraft on websites you have licensed, including websites you own, manage, or build for clients. Use MetaCraft in commercial website development projects. Modify MetaCraft for the purposes of integrating it into a website for which you are licensed. Make reasonable backup, development and staging copies associated with licensed installations. 5. Restrictions You may not: Install MetaCraft on more production websites than you hold licenses for. Sell, sublicense, publish, distribute or redistribute MetaCraft as a standalone product. Repackage MetaCraft and offer it as your own add-on, product, library or development tool. Make MetaCraft available for download or distribution to third parties except as necessary to deliver a licensed client website. Remove, bypass or interfere with MetaCraft's license notice, or remove or obscure copyright, licensing, attribution or proprietary notices contained within the Software. Use MetaCraft or substantial portions of its source code to create and distribute a competing SEO product or ExpressionEngine add-on. Claim ownership or authorship of MetaCraft or any portion of the Software owned by Bison Digital. 6. Client Projects You may include MetaCraft as part of a completed ExpressionEngine website delivered to a client, provided that website is licensed. The client may use MetaCraft as part of that website but does not receive the right to separately redistribute, resell, sublicense or repackage MetaCraft. A license may be transferred with the website it was purchased for, for example when a client takes over hosting, where ExpressionEngine's licensing allows it. 7. Ownership MetaCraft is licensed, not sold. Bison Digital retains all right, title and interest in MetaCraft, including its source code, interface, documentation, branding and other original materials, except for third-party components identified separately. No ownership rights are transferred under this License. 8. Third-Party Software and Services MetaCraft incorporates third-party components, including Lucide icons (ISC License, included as ). Third-party components remain subject to their respective licenses and copyright notices. Nothing in this License is intended to restrict rights granted by, or override obligations imposed by, those third-party licenses. MetaCraft's optional AI suggestions connect to Anthropic's API using an API key that you supply. Your use of that service is governed by your agreement with Anthropic, and any charges for it are billed to you by Anthropic. Bison Digital does not provide, resell or control that service and is not responsible for its availability, charges or output. 9. Your Content and Data MetaCraft runs on your server. It does not send your content, settings or visitor data to Bison Digital. When AI suggestions are switched on and someone requests a suggestion, MetaCraft sends the entry's title, URL and page text to Anthropic, as described in the documentation. AI suggestions are not applied until a person reviews and accepts them. You are responsible for reviewing content before it is published and for ensuring that sending it to Anthropic is consistent with your obligations, including any privacy or confidentiality requirements that apply to your website. 10. No Guarantee of Search Results MetaCraft helps produce metadata, structured data and sitemaps. Bison Digital does not guarantee any search ranking, traffic, indexing or display of rich results. These are decided by search engines and other third parties. 11. Updates and Support Unless separately stated by Bison Digital, this License does not guarantee technical support, maintenance, updates, compatibility updates, new features or future releases. Bison Digital may discontinue support or development of any version of MetaCraft at its discretion. 12. Termination Your rights under this License terminate automatically if you materially violate its terms. Upon termination, you must stop using MetaCraft on unlicensed websites and stop distributing or creating new installations of it. Bison Digital may provide an opportunity to remedy a violation before termination where appropriate. 13. Disclaimer of Warranty THE SOFTWARE IS PROVIDED \"AS IS\" AND \"AS AVAILABLE,\" WITHOUT WARRANTIES OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT, TO THE MAXIMUM EXTENT PERMITTED BY LAW. 14. Limitation of Liability TO THE MAXIMUM EXTENT PERMITTED BY LAW, BISON DIGITAL SHALL NOT BE LIABLE FOR ANY INDIRECT, INCIDENTAL, SPECIAL, CONSEQUENTIAL, OR PUNITIVE DAMAGES, OR FOR LOSS OF DATA, REVENUE, PROFITS, OR BUSINESS ARISING FROM THE USE OF OR INABILITY TO USE METACRAFT, INCLUDING ANY CHANGE IN SEARCH RANKINGS OR TRAFFIC, AND ANY CHARGES OR OUTPUT FROM THIRD-PARTY AI SERVICES. 15. Changes to This License Bison Digital may publish different licensing terms for future versions of MetaCraft. Changes to the license for a future release do not retroactively alter the license granted for a version you previously obtained unless you expressly agree to the new terms. 16. Contact Questions regarding commercial licensing, multi-site or agency licensing, redistribution, OEM use, or other uses not permitted by this License may be directed to Bison Digital. MetaCraft is a product of Bison Digital.","breadcrumb_path":"License","url":"/docs/metacraft/license"},{"page_id":3,"title":"MetaCraft Changelog","navigation_title":"Changelog","summary":"","headings":["Changelog","1.4.1 — 2026-11-11","1.3.0 — 2026-10-22","Page content","AI suggestions (optional)","Privacy","Documentation","Licensing","Fixes","Data","1.2.0 — not released on its own","Structured data","Control panel","Performance","1.1.0 — 2026-10-10","Control panel","Data","Performance","1.0.0 — 2026-10-09","Head tag","Control panel","Sitemaps","Switching from SEO Lite"],"body":"Changelog 1.4.1 — 2026-11-11 First release of 1.4 (1.4.0 was a pre-release build). Image alt text. No AI is involved, nothing is sent anywhere new, and the head tag's output only changes by the alt lines below. Alt text check: when MetaCraft reads an entry's page it lists the images in its main content (lazy-loaded and images included) as missing alt text, possibly unhelpful (file name, generic word, under 3 characters), decorative or OK. Image files are never downloaded; header, navigation and footer images aren't checked. See Image alt text. Editor: an Images panel under the capture line with a summary and the list, issues first, and where to fix alt text. Read-only: MetaCraft never edits content. Content SEO: the Images missing alt text status filter and a row chip with the count. Informational; Needs attention is unchanged. Share image alt text: and , from a new Alt text field under the social and X images, else the file's description in the file manager. Never invented from the title or file name. Upgrade: pages read before 1.4 are marked changed so the next run checks their images. Their content isn't treated as new, so nothing is re-sent to AI. 1.3.0 — 2026-10-22 Page content and AI suggestions. MetaCraft can read each entry's rendered page and suggest values for its SEO fields and structured data, from marks in the HTML, from ordinary HTML, and optionally from AI with the site owner's own API key. Nothing is applied without review. With AI off (the default), nothing is sent anywhere and no AI controls appear; the head tag's output is unchanged unless pages carry marks. Page content Page capture: MetaCraft reads an entry's public page with a GET to the site itself (never during page views or saves). reads changed entries (or , , ), suitable for cron; the editor has Re-read. Saving an entry only marks its page as changed. Page marks: and attributes give exact structured data values, used directly and shown with a Marked badge (SCHEMA-MARKUP.md). Structured data now resolves entry value → page mark → mapped field → automatic. Page HTML suggestions: phone and email links, , and FAQ-style questions on the page are offered for review. Capture URL and basic auth for sites whose server can't fetch its own public URLs, with Test capture. AI suggestions (optional) Settings › AI: on/off switch, Anthropic API key (encrypted, write-only; or ), Test key, models (Claude Haiku 4.5 by default; Claude Sonnet 5.5 offered) and monthly usage with an estimated cost. Editor: Suggest per field (SEO title, description, Open Graph title and description) and Suggest N empty fields, with suggestion cards (Use, Edit, Dismiss, Suggest again). Structured data tab: Suggested from the page with Use, Dismiss, Undo, Use all and Suggest with AI. Content SEO bulk jobs for Missing description and Schema incomplete (admins): confirm with an estimated cost range, run in batches of 5, pause and resume, review every result (side by side, Use / Edit / Dismiss / Undo / Use all shown), done summary. Overview links to it from Needs attention. Unchanged pages are never sent twice; Suggest again asks anew on request. Long pages are trimmed to their main content. Errors name the cause and the fix: invalid key, rate limit or quota, provider down, page too long. Other failures are logged to the developer log (status and error type only). Privacy AI requests send only the entry's title, URL and page text (up to 24,000 characters), and only when someone asks. Page captures go only to the site itself. See Privacy. Documentation Documentation in MetaCraft's sidebar: the user guide inside the control panel, with search, for everyone who can open MetaCraft. A user guide website in (open ): getting started, every screen with screenshots, template and sitemap reference, troubleshooting, with search. Built from the Markdown docs, which stay alongside it. New : requirements, install, upgrade and first setup step by step. Sitemap troubleshooting from a live install: telling the three kinds of 404 apart, XML errors caused by an old hand-made left in the web root (and a CDN still caching it), and pages in the sitemap that return 404. The setup steps now say template mode writes no file, and to remove an old first. Licensing A licence notice at the top of MetaCraft's screens when ExpressionEngine reports the MetaCraft licence as invalid or expired: a 7-day countdown from when the problem is first seen, then a firmer message. It is informational only; nothing is disabled or gated. The clock is kept in ExpressionEngine's (no migration) and resets when the licence is valid again. See Troubleshooting. Fixes Structured data suggestions with a long value (an address) no longer squeeze the value to a few characters beside its buttons. Bulk jobs for one entry say \"1 entry\" instead of \"1 entries\". When a page capture is redirected, the message says what changed: the site URL (scheme, host or port; links to Settings › General) or only the trailing slash (links to Settings › Advanced), instead of a bare HTTP status. The Overview's duplicate-tags banner reads \"It outputs tags MetaCraft also outputs\" (or \"They …\") instead of \"1 outputs tags …\", and names templates when it lists both kinds. Data New tables , and ; holds structured data values used on an entry. Page content and suggestions are deleted with their entry. 1.2.0 — not released on its own Included in 1.3.0. Structured data beyond WebSite, Organization and WebPage/Article. Sites that don't change the new settings output exactly what 1.1.0 did. Structured data Site entity type: Organization, LocalBusiness or ProfessionalService, or a medical type (MedicalOrganization, MedicalBusiness, MedicalClinic, Physician, Dentist). Local business types add address, telephone, email, geo, price range, area served and opening hours; medical types add specialties, accepting new patients and accepted insurance. Each property is only output on the types schema.org defines it for. Channel and entry types: WebPage, MedicalWebPage, FAQPage, Article, BlogPosting, Event, Product, Service, Person, Physician and LocalBusiness (location), with per-property field mappings in each channel's drawer (required / optional / automatic, compatible fields only). Grid fields feed opening hours (Day, Opens, Closes columns) and FAQs (Question, Answer). Rows that can't be read are skipped and shown in the editor. A missing required property outputs a plain WebPage, never a half-filled type. Required properties follow Google's rich-result requirements: an Event needs its venue address, a Product a price with a currency, and a location's country falls back to the site's. Editor: a Structured data preview tab with the page's JSON-LD (as last saved), a Test in Google link, and notes for missing properties and skipped rows. Content SEO: a Schema incomplete status filter (informational; not part of Needs attention). The duplicate-tag check also flags templates with their own block. The channel \"Article author\" switch is now the Article/BlogPosting Author mapping (Entry author). Existing settings are converted on upgrade. Control panel Settings use the full width of the control panel, like the other MetaCraft screens. Performance Schema mappings share the existing field queries. A mapped Grid adds one query on pages that use it. 1.1.0 — 2026-10-10 A redesigned control panel. Front-end output is unchanged: the head tag, JSON-LD and sitemaps produce the same markup as 1.0.0. Control panel New screens: Overview, Content SEO, Sitemap and Settings (General · Social · Structured data · Channels · Advanced, plus Import from SEO Lite). They replace Dashboard, Entries, Sitemaps and the old settings forms. Old URLs redirect. Content SEO: every candidate entry with coverage chips (custom / inherited / missing / noindex), value tooltips, status, channel and search filters, and a quick-edit drawer. Full SEO editor for an entry, outside the entry form, with its own save. It saves only the fields you changed, asks before overwriting someone else's newer save, and follows EE's entry edit permissions. Publish tab redrawn as the same editor: one view with live search and social previews. It still saves with the entry and never clears data on bulk edits or API saves. Overview: totals, what needs attention, sitemap status, and templates that may output duplicate tags. Sitemap: sources (Structure pages, channels with URL patterns), rules, serving mode, regenerate, excluded entries with reasons, and a read-only view of the stored XML. Non-admins see it read-only. Settings: one sticky save bar per tab with unsaved-change tracking, Discard and ⌘S / Ctrl+S; live title and canonical examples; channel drawers with field mappings and broken-mapping warnings; a one-click fix when the trailing-slash setting doesn't match Structure; admin roles as chips; the SEO Lite import with a dry run, conflict / adjustment / skipped tabs and an inline confirm. Light and dark themes follow EE's theme. Icons are inline SVG (Lucide, ISC licence, see ). Stylesheet and script URLs carry a content version, so upgrades aren't hidden by cached files. Data records who last saved an entry's SEO (used for overwrite warnings). Audit records now include Open Graph sources, \"canonical points elsewhere\" and duplicate groups. The sitemap build records why entries were left out. Performance The head tag no longer reads the Structure tree for entries outside Structure: 2 fewer queries on channel-pattern pages. 1.0.0 — 2026-10-09 First release. Replaces SEO Lite Pro on Bison Digital sites. Head tag : title, description, canonical, robots, Open Graph, X cards and one JSON-LD (WebSite, Organization, WebPage/Article, BreadcrumbList). Values resolve from template parameters → entry overrides → mapped channel fields → channel defaults → global defaults → automatic, with the same resolver used everywhere. Finds the entry from the URL (Structure pages and listings, then channel URL patterns) or . Pagination-aware canonicals. Canonical URLs from one normalizer: base URL, trailing-slash policy (with a warning when it doesn't match Structure's), no query strings. BreadcrumbList for Structure pages with parent pages (entry titles, Structure URLs; to omit). Editor text can't inject template tags ( / encoded); output is escaped; failures fall back to a plain title and a developer-log entry. Query budget: ≤ 5 queries on non-entry pages, ≤ 8 on entry pages. Control panel Settings: General, Social, Structured Data, Channels (enable, defaults, field mapping), Sitemaps. MetaCraft SEO publish tab with inherited-value placeholders, source badges, reset, character counts, and live search/social previews. Works with custom publish layouts and \"Save as new entry\". Never clears data on bulk edit or API saves. Dashboard: configuration audit of published entries (indexable, noindex, missing description, duplicate titles and canonicals, missing social image, entries using their entry title), sitemap status, and a scan for templates that would output SEO tags twice. Entries report with channel / override / issue filters and links to each entry. \"Admin roles\" setting: who besides Super Admins can change settings. Sitemaps served from an XML template route. Sitemap index plus children over 45,000 URLs. Structure pages plus channel entries via URL patterns. Excludes noindex, non-public, future, expired, and canonicalized-elsewhere entries. Cached; marked stale on entry and settings changes, Structure tree changes and scheduled publish/expiry dates. Rebuilds on the next request under a lock, and keeps serving the last good sitemap on failure. Static file mode for hosts that don't pass to PHP: atomic writes, never overwrites files it didn't create. . Switching from SEO Lite One-time import (CP screen or ): dry run first, never overwrites MetaCraft values, handles titles that already carry the site name, enables receiving channels. SEO Lite data and templates are never modified.","breadcrumb_path":"Changelog","url":"/docs/metacraft/changelog"},{"page_id":51,"title":"Configuration","navigation_title":"Configuration","summary":"","headings":["Core Settings"],"body":"Open Transports. Enable the transport you want to use. Mark one enabled transport as Default. Click Manage for that transport and enter its provider settings. Use Send Test Email from the transport screen before routing real site mail. Open Settings and enable Route ExpressionEngine email through Mailroom when you are ready for EE email sends to use Mailroom. Core Settings Default Transport: the transport Mailroom uses for routed ExpressionEngine email. Default From Email/Name/Reply-To: fallback sender values used when the original message does not provide them. Dev/Staging Mode: normal sending, capture only, redirect all, or suppress all. Route ExpressionEngine email through Mailroom: enables the ExpressionEngine hook so template forms and core sends flow through Mailroom. Allowlist Domains: domains allowed during capture/redirect rules.","breadcrumb_path":"Configuration","url":"/docs/mailroom/configuration"},{"page_id":50,"title":"Installation","navigation_title":"Installation","summary":"","headings":[],"body":"Place the add-on folder at . The folder must be named , not . In the ExpressionEngine Control Panel, go to Add-Ons and install Mailroom. If deploying an update, run from the site root when CLI access is available. Clear ExpressionEngine caches after install or update. Some hosts may show cache file permission warnings while still completing the clear. Open Diagnostics and confirm the database tables, default transport, and email hook checks pass.","breadcrumb_path":"Installation","url":"/docs/mailroom/installation"},{"page_id":54,"title":"Logging and Privacy","navigation_title":"Logging and Privacy","summary":"","headings":[],"body":"Metadata and provider response: stores delivery status, recipient metadata, transport, provider response, and diagnostics. Full email body logging: also stores the rendered email body. Use only when the content is safe to retain. Privacy mode: limits sensitive stored fields where supported. Mask recipients in log views: masks recipient addresses in Control Panel views while preserving useful debugging context. Bulk log actions: use Email Log checkboxes to delete selected log rows or only delete stored message bodies.","breadcrumb_path":"Logging and Privacy","url":"/docs/mailroom/logging-and-privacy"},{"page_id":49,"title":"Overview","navigation_title":"Overview","summary":"","headings":["Mailroom"],"body":"Mailroom Mailroom routes ExpressionEngine email through configurable transports, logs send attempts, captures provider responses, supports dev/staging safety modes, and gives admins one place to test and diagnose transactional mail.","breadcrumb_path":"Overview","url":"/docs/mailroom/overview"},{"page_id":55,"title":"Provider Webhooks","navigation_title":"Provider Webhooks","summary":"","headings":[],"body":"Mailroom includes scaffolded provider webhook storage for future delivery, bounce, suppression, delay, open, and click events. Provider-specific signature verification and event mapping are intentionally limited until each provider integration is locked down. Enable Provider Event Webhooks in Settings only when you have a provider integration ready to send events. Set a Webhook Shared Secret. Use the generated Webhook Endpoint URL as the provider target. Provider requests must include the secret as the request parameter or header.","breadcrumb_path":"Provider Webhooks","url":"/docs/mailroom/provider-webhooks"},{"page_id":53,"title":"Transports","navigation_title":"Transports","summary":"","headings":["Mailpit / Dev Capture","Generic SMTP","Microsoft 365 Graph","Google Gmail API"],"body":"Mailpit / Dev Capture Enable Mailpit / Dev Capture in Transports. Set the host and port. For local DDEV this is usually and . Use this for local testing when you want to capture mail without delivering it to real recipients. Generic SMTP Enter the SMTP host, port, encryption, username, and password provided by the mailbox host. Set Default From Email to the authenticated mailbox or an address that provider explicitly allows that mailbox to send as. Use port with TLS or port with SSL depending on the provider instructions. If the provider says the sender is not owned by the user, the From address does not match the authenticated SMTP account or an approved alias. Microsoft 365 Graph In Azure, create an app registration for Mailroom. Add Microsoft Graph application permission . Grant admin consent for the tenant. Create a client secret. In Mailroom, enter Tenant ID, Client ID, Client Secret, and Sender Mailbox. The sender mailbox must exist and be allowed by the tenant policies. The test button sends through Graph . Google Gmail API Google's setup is the long hallway with every door labeled \"almost done.\" The working Mailroom path is Google Workspace service account authentication with domain-wide delegation. Open Google Cloud Console and create or select a project for Mailroom. Enable the Gmail API for that project. Create a service account, such as . Open the service account details and enable Domain-wide Delegation. Copy the service account Client ID. This is the long numeric ID, not the service account email. Open Google Workspace Admin Console as a super admin. Go to Security, Access and data control, API controls, Domain-wide delegation. Add a new domain-wide delegation entry using the numeric Client ID. Use this exact OAuth scope: . Back in Google Cloud, open the service account Keys tab and create a JSON key. In Mailroom, Service Account Email is the JSON value. In Mailroom, Service Account Private Key is the JSON value, including and . In Mailroom, Delegated Sender Mailbox is the real Google Workspace mailbox to send as, such as .","breadcrumb_path":"Transports","url":"/docs/mailroom/transports"},{"page_id":56,"title":"Troubleshooting","navigation_title":"Troubleshooting","summary":"","headings":[],"body":"If transport tests work but forms do not log, make sure Route ExpressionEngine email through Mailroom is enabled and Diagnostics shows the email hook passing. If the default transport dropdown is empty, enable at least one transport on the Transports screen. If SMTP rejects the sender, align the From address with the authenticated SMTP user or an approved alias. If Microsoft Graph fails with an auth error, recheck tenant ID, client ID, client secret, app permissions, and admin consent. If Google fails with or , recheck domain-wide delegation, the numeric Client ID, the Gmail scope, and the delegated sender mailbox. If Google says the private key cannot be parsed, paste the full JSON value, not . Use Diagnostics after every deployment. It is faster than guessing, and less likely to make you question your career choices.","breadcrumb_path":"Troubleshooting","url":"/docs/mailroom/troubleshooting"},{"page_id":52,"title":"Usage","navigation_title":"Usage","summary":"","headings":["Basic EE Contact Form"],"body":"Mailroom does not require new template tags. Existing ExpressionEngine email sends continue to use the normal EE APIs and template tags once routing is enabled. Mailroom itself does not require ExpressionEngine's Email module for transport tests, logging, diagnostics, or routing core EE email. The sample below uses , so that specific form does require the EE Email module to be installed. Third-party form add-ons can still work with Mailroom when they send through EE's email service and trigger the normal email hook. Basic EE Contact Form After submission, check Email Log. If nothing appears, confirm routing is enabled in Settings and the email hook passes in Diagnostics.","breadcrumb_path":"Usage","url":"/docs/mailroom/usage"},{"page_id":4,"title":"Mailroom License","navigation_title":"License","summary":"","headings":["Mailroom Commercial License Agreement","1. License Grant","2. Per-Site Licensing","3. Purchase and Pricing","4. Future Versions","5. Permitted Use","6. Restrictions","7. Client Projects","8. Site Transfers","9. Email Services and Transports","10. Email Delivery","11. Logging and Data","12. Ownership","13. Third-Party Software","14. Updates and Support","15. Termination","16. Disclaimer of Warranty","17. Limitation of Liability","18. Changes to This License","19. Contact"],"body":"Mailroom Commercial License Agreement Version 1.0 Copyright © 2026 Bison Digital. All rights reserved. This Commercial License Agreement (\"License\") governs the use of Mailroom (\"Software\"), an ExpressionEngine add-on developed and distributed by Bison Digital. 1. License Grant Subject to the terms of this License, Bison Digital grants you a non-exclusive, non-transferable license to install and use Mailroom on one production ExpressionEngine website per purchased license. A separate Mailroom license is required for each additional production website. The license may be purchased and used by a website owner, organization, developer, or agency on behalf of a client. 2. Per-Site Licensing Each Mailroom license covers one production website. For the purposes of this License, a \"Site\" means a single ExpressionEngine installation or website intended to operate as one production web property. A licensed Site may also have associated copies used solely for: Local development Development servers Staging environments Testing environments Continuous integration or deployment Backup and disaster recovery These associated environments do not require additional licenses provided they support the same licensed production Site. A separate license is required when Mailroom is used on another production website, including another client website or independently operated web property. 3. Purchase and Pricing Mailroom is commercial software and is currently offered for $15 USD per Site. Purchase of Mailroom grants you a license to use the version of the Software obtained at the time of purchase, subject to the terms of this License. Purchase of Mailroom does not transfer ownership of the Software or its source code. Bison Digital may change the price, licensing model, features, support terms, or availability of future releases. 4. Future Versions Minor updates within the same major version may be made available at Bison Digital's discretion. Future major releases, including Mailroom 2.x and later, may require the purchase of an upgrade, new license, subscription, or other commercial arrangement. Purchase of Mailroom 1.x does not guarantee access to future major versions, premium features, services, updates, or support. A version of Mailroom lawfully obtained under this License may continue to be used on its licensed Site under the terms that applied when it was purchased. 5. Permitted Use You may: Install and use Mailroom on one production Site for each license purchased. Install Mailroom on development, staging, testing, and local environments associated with that Site. Purchase and install Mailroom on behalf of a client. Use Mailroom as part of commercial website development projects. Configure Mailroom to connect with supported email transports and delivery services. Modify Mailroom as reasonably necessary to integrate it into the licensed Site. Make reasonable backup copies associated with the licensed Site. Transfer management of the licensed Site to the client for whom it was developed. 6. Restrictions You may not: Use a single Mailroom license on multiple production websites. Reuse a client Site license for another client or unrelated production website. Sell, sublicense, publish, distribute, or redistribute Mailroom as a standalone product. Repackage Mailroom and offer it as your own add-on, email service, library, product, or development tool. Make Mailroom available for download or distribution to third parties except as necessary to develop or deliver the licensed Site. Remove or obscure copyright, licensing, attribution, or proprietary notices contained within the Software. Use Mailroom or substantial portions of its original source code to create and distribute a competing ExpressionEngine email delivery add-on. Claim ownership or authorship of Mailroom or any portion of the Software owned by Bison Digital. 7. Client Projects Developers and agencies may purchase Mailroom for use on client projects. Each client production Site requires its own Mailroom license. Development, staging, testing, and local copies associated with that client Site are covered by the same license. When a completed website is delivered to a client, the client may continue to use Mailroom as part of that licensed Site. The client does not receive the right to use the same license on another production Site or to separately redistribute, resell, sublicense, or repackage Mailroom. 8. Site Transfers A Mailroom license is associated with a Site rather than a particular developer or agency. If ownership or management of the licensed Site changes, the Mailroom license may remain with that Site. A developer or agency may not retain and reuse that license for another production website after transferring the licensed Site to a client or another party. 9. Email Services and Transports Mailroom provides tools for routing and managing email sent by ExpressionEngine through supported transports and third-party email services. Use of Mailroom may require accounts, credentials, API keys, SMTP services, or other services provided by third parties. Mailroom's purchase price does not include fees charged by third-party email providers, hosting providers, internet service providers, or other external services. You are responsible for: Maintaining any required third-party accounts. Providing valid authentication credentials and configuration. Complying with the terms and acceptable-use policies of your email providers. Maintaining appropriate sender identities, domains, DNS records, and authentication settings. Paying any fees associated with third-party services. Bison Digital is not responsible for changes, limitations, outages, suspensions, pricing changes, or discontinuation of third-party services. 10. Email Delivery Mailroom is designed to improve the management, routing, logging, testing, and diagnosis of email sent from ExpressionEngine. Bison Digital does not guarantee that any individual email will be accepted, delivered, delivered within a specific period, or delivered to a recipient's inbox. Email delivery may be affected by factors outside Mailroom's control, including: Receiving mail servers Spam and reputation systems DNS configuration Sender authentication Email provider policies Rate limits Account restrictions Network availability Recipient settings Third-party service outages Mailroom's logging, diagnostics, retry, and transport features do not constitute a guarantee of successful delivery. 11. Logging and Data Mailroom may store information related to email activity for the purposes of logging, troubleshooting, diagnostics, and delivery management. Depending on configuration and usage, these records may include information such as recipients, senders, subjects, provider responses, status information, timestamps, and error messages. You are responsible for configuring and using Mailroom in accordance with applicable privacy, security, data-retention, and regulatory requirements governing your Site and organization. Bison Digital does not determine what information you send through Mailroom or how long you retain Mailroom-generated logs. 12. Ownership Mailroom is licensed, not sold. Bison Digital retains all right, title, and interest in Mailroom, including its original source code, ExpressionEngine integration, transport system, interface, diagnostics, logging functionality, documentation, branding, and other original materials, except for third-party components identified separately. No ownership rights are transferred under this License. 13. Third-Party Software Mailroom may incorporate or depend upon third-party open-source software, libraries, APIs, services, protocols, or other components. Third-party components remain subject to their respective licenses and terms. Nothing in this License is intended to restrict rights granted by, or override obligations imposed by, a third-party license. Third-party services accessed through Mailroom remain governed by the terms established by their respective providers. 14. Updates and Support Unless separately stated by Bison Digital, purchase of Mailroom does not guarantee technical support, maintenance, compatibility updates, new features, or future major releases. Bison Digital may provide updates and support at its discretion and may discontinue support or development of any version of Mailroom. Changes made by ExpressionEngine, hosting environments, PHP, email providers, APIs, authentication systems, or other third-party technologies may affect Mailroom's compatibility or functionality. 15. Termination Your rights under this License terminate automatically if you materially violate its terms. Upon termination, you must stop using Mailroom on any unlicensed Site and cease unauthorized distribution of the Software. Bison Digital may provide an opportunity to remedy a violation before termination where appropriate. 16. Disclaimer of Warranty THE SOFTWARE IS PROVIDED \"AS IS\" AND \"AS AVAILABLE,\" WITHOUT WARRANTIES OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT, TO THE MAXIMUM EXTENT PERMITTED BY LAW. BISON DIGITAL DOES NOT WARRANT THAT MAILROOM OR ANY THIRD-PARTY EMAIL SERVICE WILL OPERATE WITHOUT INTERRUPTION, ERROR, OR DELIVERY FAILURE. 17. Limitation of Liability TO THE MAXIMUM EXTENT PERMITTED BY LAW, BISON DIGITAL SHALL NOT BE LIABLE FOR ANY INDIRECT, INCIDENTAL, SPECIAL, CONSEQUENTIAL, OR PUNITIVE DAMAGES, OR FOR LOSS OF DATA, EMAIL, REVENUE, PROFITS, BUSINESS, OR COMMUNICATIONS ARISING FROM THE USE OF OR INABILITY TO USE MAILROOM. BISON DIGITAL SHALL NOT BE LIABLE FOR EMAIL DELIVERY FAILURES, PROVIDER OUTAGES, ACCOUNT SUSPENSIONS, SPAM FILTERING, BLOCKLISTING, OR OTHER ACTIONS OR FAILURES OF THIRD-PARTY EMAIL SERVICES. 18. Changes to This License Bison Digital may publish different licensing or pricing terms for future versions of Mailroom. Changes applying to a future release do not retroactively alter the license granted for a version you previously purchased unless you expressly agree to the new terms. 19. Contact Questions regarding commercial licensing, redistribution, OEM use, multi-site licensing, or other uses not permitted by this License may be directed to Bison Digital. Mailroom is a product of Bison Digital.","breadcrumb_path":"License","url":"/docs/mailroom/license"},{"page_id":4,"title":"Mailroom Changelog","navigation_title":"Changelog","summary":"","headings":["Changelog","1.1.1 - 2026-10-15","Fixed","1.1.0 - 2026-09-22","Added","1.0.0 - 2026-06-28","Added","Changed","0.4.1 - 2026-06-26","Added","0.4.0 - 2026-06-26","Added","0.3.0 - 2026-06-26","Added","Notes","0.2.6 - 2026-06-26","Changed","0.2.5 - 2026-06-26","Changed","0.2.4 - 2026-06-26","Added","0.2.3 - 2026-06-26","Changed","Fixed","0.2.2 - 2026-06-26","Added","Changed","0.2.1 - 2026-06-26","Added","0.2.0 - 2026-06-26","Added","Changed","Notes","0.1.0 - 2026-06-23","Added","Changed","Verified"],"body":"Changelog All notable changes to Mailroom will be documented in this file. 1.1.1 - 2026-10-15 Fixed \"Array to string conversion\" warning from on every install that had never stored a licence grace date, which is every install until a licence problem occurs. EE's returns a whole row instead of the column when no row matches; both storage reads now use and read the property. As a side effect, the warning's value made a licensed site write one empty row to ; that no longer happens. A stray row is harmless and safe to delete. The grace clock itself was never wrong. The class is now identical to PageCraft 2.3.1's copy apart from the namespace, so later re-copies stay a clean diff. 1.1.0 - 2026-09-22 Added Added Bison's shared licence notice to every Mailroom Control Panel page. When ExpressionEngine reports Mailroom's own licence as or , a notice counts down a 7-day grace period from the first time the problem is seen, then settles into a firmer message. It never disables anything: mail keeps routing, and every screen still saves, because the person who can fix a billing problem is rarely the one reading the notice, and email that stops sending costs far more than the licence does. The grace clock resets as soon as the licence is valid again, so a site that lapses at renewal time next year gets the full week again. The clock is stored in ExpressionEngine's own table, so no migration is needed. EE core licence statuses ( , , and so on) are deliberately ignored. They describe the ExpressionEngine install, not Mailroom. Development hosts ( , , , ) never see the notice. Mailroom is not yet an ExpressionEngine store product, so EE reports and the notice stays silent for now. This release adds the mechanism, which starts showing notices once Mailroom is sold through the store. Added a Generic SMTP configuration source option that can read existing ExpressionEngine email config values at send time. Added a read-only Generic SMTP preview of resolved ExpressionEngine email config values without exposing passwords. Added a Mailpit / Dev Capture action for saving DDEV Mailpit defaults. 1.0.0 - 2026-06-28 Added Added a Mailroom Documentation Control Panel page covering installation, configuration, usage, transports, logging/privacy, provider webhook scaffolding, and troubleshooting. Changed Removed stale scaffold-era Foundation Status and Next Steps panels from the dashboard. 0.4.1 - 2026-06-26 Added Added Google private-key validation so malformed service account keys return a controlled Mailroom error instead of an OpenSSL warning. Added Google Gmail API field helper copy so admins can distinguish JSON , JSON , and the real delegated sender mailbox. 0.4.0 - 2026-06-26 Added Added Google Gmail API transport using Google Workspace service account authentication with domain-wide delegation. Added Gmail delivery support. Added Google OAuth token caching. Added Google Gmail API Control Panel settings and test-send flow. Added Google Gmail API diagnostics and transport registration. 0.3.0 - 2026-06-26 Added Added normalized table for provider events. Added generic shared-secret webhook action. Added settings fields for webhook enablement, webhook shared secret, and endpoint display. Added diagnostics checks for provider event webhook configuration. Notes Provider-specific webhook signature verification and event mapping are intentionally deferred. 0.2.6 - 2026-06-26 Changed Polished SMTP and Microsoft Graph secret visibility toggles to use a single swapped SVG icon and avoid browser/Control Panel ghosting. 0.2.5 - 2026-06-26 Changed Hardened Generic SMTP sender behavior. Generic SMTP now uses the configured From Email, or SMTP username when it is an email address, as the sender. The original form sender is preserved as Reply-To for strict relays. 0.2.4 - 2026-06-26 Added Added inline save/test notices across Control Panel flows. Added real Diagnostics screen with hook, database table, default transport, and provider configuration checks. Added Diagnostics repair action for the ExpressionEngine email hook. Added Email Log bulk actions for deleting selected logs or deleting only stored message bodies. 0.2.3 - 2026-06-26 Changed Lowered the ExpressionEngine manifest PHP requirement from to . Fixed Fixed stricter manifest requirements that could hide Mailroom on remote ExpressionEngine installs even though the code supports PHP 8.1+. 0.2.2 - 2026-06-26 Added Added Email Log display for stored message bodies. Added recipient masking at view time. Added privacy mode handling for sensitive log fields. Changed Privacy mode prevents future body, header, and metadata storage. 0.2.1 - 2026-06-26 Added Added hook repair behavior for installs where exists but the hook is disabled. Added and wired Mailroom Control Panel/settings saves to automatically register and enable the hook. 0.2.0 - 2026-06-26 Added Added Microsoft 365 Graph OAuth transport. Added client-credentials OAuth token acquisition without new Composer dependencies. Added token caching in , with automatic refresh when a token is within five minutes of expiry. Added Graph delivery using . Added Microsoft Graph Control Panel settings for tenant ID, client ID, client secret, sender mailbox, save-to-sent option, and test recipient. Added Send Test Email support for Microsoft Graph. Added client-secret visibility toggle in the Graph settings view. Added to default transport seeding and the transports management screen. Changed Updated Control Panel test-send flow so explicitly tested transports are not overridden by dev capture or suppress mode. Cached Graph tokens are cleared when tenant, client, secret, or sender settings change. Forwarded Graph internet headers are filtered to avoid sending reserved ExpressionEngine email headers. Notes End-to-end Graph delivery requires live Azure app credentials with Microsoft Graph application permission and admin consent. 0.1.0 - 2026-06-23 Added Built Mailroom as an ExpressionEngine add-on for transactional email routing, logging, transport settings, and diagnostics scaffolding. Added ExpressionEngine extension integration through . Added extension lifecycle methods so install/update can register the email hook. Added SMTP transport using ExpressionEngine's email library. Added Mailpit/dev-capture transport using direct SMTP socket delivery. Added real Email Log Control Panel screen. Added dashboard recent-send counts, including captured messages. Added SMTP password visibility toggle. Changed Changed SMTP password POST field to , while keeping the old field as a fallback. Fixed default transport consistency by adding and syncing transport flags when settings are saved. Verified Verified Mailpit capture works locally. Verified generic SMTP reaches Gmail/Office365 and negotiates STARTTLS. Ran full PHP syntax checks across the add-on.","breadcrumb_path":"Changelog","url":"/docs/mailroom/changelog"},{"page_id":65,"title":"Add a library license","navigation_title":"Add a library license","summary":"","headings":[],"body":"Each library can have optional License Markdown. When populated, Docsmith creates a generated page for the library, exposes and , indexes the license as a generated search result, and shows a fixed footer link in the starter templates.","breadcrumb_path":"Add a library license","url":"/docs/docsmith/add-a-library-license"},{"page_id":62,"title":"Choose the audience","navigation_title":"Choose the audience","summary":"","headings":[],"body":"Groups can be External docs, Internal CP help, or Both. Internal and Both groups can be linked to channels with the Included Channels checkboxes. Docsmith then creates a native publish-layout tab named Docsmith on those channel publish/edit screens.","breadcrumb_path":"Choose the audience","url":"/docs/docsmith/choose-the-audience"},{"page_id":58,"title":"Create a library","navigation_title":"Create a library","summary":"","headings":[],"body":"A library is one documentation set, usually one add-on. Enter a Name and Docsmith creates the short name and URL base automatically. The URL base owns the public route, such as or . Keep that route out of Structure if Structure manages the rest of the site.","breadcrumb_path":"Create a library","url":"/docs/docsmith/create-a-library"},{"page_id":66,"title":"Customize templates and styles","navigation_title":"Customize templates and styles","summary":"","headings":[],"body":"Docsmith installs one shared native EE template group named for all libraries and groups: layout, index, group_index, page, search, and 404. Starter CSS and JavaScript live in . Put display overrides in ; asset refreshes preserve that file.","breadcrumb_path":"Customize templates and styles","url":"/docs/docsmith/customize-templates-and-styles"},{"page_id":61,"title":"Group related libraries","navigation_title":"Group related libraries","summary":"","headings":[],"body":"A group is a docs portal that collects multiple libraries under one URL base, such as . Standalone library URLs continue to work unless the group is internal only.","breadcrumb_path":"Group related libraries","url":"/docs/docsmith/group-related-libraries"},{"page_id":57,"title":"Overview","navigation_title":"Overview","summary":"","headings":[],"body":"Docsmith is an ExpressionEngine add-on for creating and managing Markdown-based documentation libraries directly inside EE. It lets you publish standalone docs for individual add-ons, group multiple libraries into a shared documentation portal, manage versions, build navigation, reuse snippets, generate search indexes, and safely render code examples without ExpressionEngine parsing them. It also supports internal control-panel documentation, so agencies or site builders can surface help content inside EE publish/edit screens for client training, publishing guidelines, channel instructions, and workflow notes. Each library can include a library-level license page, starter frontend templates, custom styling, and search-ready rendered output.","breadcrumb_path":"Overview","url":"/docs/docsmith/overview"},{"page_id":60,"title":"Preview from the dashboard","navigation_title":"Preview from the dashboard","summary":"","headings":[],"body":"The Dashboard shows all libraries by default. Filter by group, library, version, status, or search text. Click a library title to manage it, or use the eye icon to open a control-panel preview modal without leaving the page.","breadcrumb_path":"Preview from the dashboard","url":"/docs/docsmith/preview-from-the-dashboard"},{"page_id":63,"title":"Read docs inside the publish form","navigation_title":"Read docs inside the publish form","summary":"","headings":[],"body":"The Docsmith publish tab renders the linked internal group directly in the control panel. It uses the same Markdown renderer, snippet expansion, code protection, navigation, and table-of-contents behavior as the preview modal.","breadcrumb_path":"Read docs inside the publish form","url":"/docs/docsmith/read-docs-inside-the-publish-form"},{"page_id":64,"title":"Reuse snippets","navigation_title":"Reuse snippets","summary":"","headings":[],"body":"Reusable snippets live outside individual pages and can be inserted with tokens like . They are useful for shared install steps, compatibility notes, license notes, and recurring client instructions.","breadcrumb_path":"Reuse snippets","url":"/docs/docsmith/reuse-snippets"},{"page_id":67,"title":"Search and maintenance","navigation_title":"Search and maintenance","summary":"","headings":[],"body":"Published pages and generated license pages are indexed on save/import. Library routes search one library; group routes search all included libraries. Settings includes maintenance actions for rebuilding search indexes, rebuilding stale rendered content, refreshing shared templates, and installing starter frontend assets.","breadcrumb_path":"Search and maintenance","url":"/docs/docsmith/search-and-maintenance"},{"page_id":59,"title":"Write or import pages","navigation_title":"Write or import pages","summary":"","headings":[],"body":"New libraries get a published current version and starter Overview page. Add pages from the navigation tree, or use Import Markdown to create one page from each section. Stored Markdown is preserved, while rendered HTML and search indexes are regenerated as needed.","breadcrumb_path":"Write or import pages","url":"/docs/docsmith/write-or-import-pages"},{"page_id":5,"title":"Docsmith License","navigation_title":"License","summary":"","headings":["Docsmith Commercial Software License","1. License Grant","2. Permitted Use","3. Restrictions","4. License Fees","5. Updates and Support","6. Intellectual Property","7. Third-Party Software","8. Disclaimer of Warranty","9. Limitation of Liability","10. Termination","11. Governing Law","12. Acceptance"],"body":"Docsmith Commercial Software License Copyright © 2026 Bison Digital. All rights reserved. Product: Docsmith for ExpressionEngine License Fee: $25 USD per production site License Type: Perpetual, single-site commercial license Version: 1.0 Effective Date: October 21, 2026 1. License Grant Upon purchase of a valid license, Bison Digital (\"Licensor\") grants the purchaser (\"Licensee\") a non-exclusive, non-transferable, perpetual license to install and use Docsmith (\"Software\") on one production ExpressionEngine website. Each additional production website requires a separate license. This license grants the right to use the Software, not ownership of the Software or its intellectual property. 2. Permitted Use A valid license permits the Licensee to: Install and operate Docsmith on one production ExpressionEngine website. Use Docsmith on associated local development, testing, and staging environments without purchasing additional licenses. Use the Software for personal, business, agency, or commercial client projects. Modify the Software's source code for use within the licensed installation. Transfer the completed licensed website to a client, provided the license remains associated with that website and is not reused elsewhere. Development and staging installations must be associated with the licensed production site. 3. Restrictions The Licensee may not: Redistribute, resell, sublicense, rent, or share the Software as a standalone product. Distribute modified versions of Docsmith. Include Docsmith in another software product, add-on collection, template package, or commercial distribution without written permission. Publish the Software's proprietary source code in a public repository. Use a single license across multiple unrelated production websites. Remove or alter copyright and proprietary notices. Source code modifications are permitted for internal use but do not grant redistribution rights. 4. License Fees Docsmith is licensed for a one-time fee of $25 USD per production website. The license is perpetual and does not require recurring subscription payments. The license fee covers the right to use the purchased version of Docsmith indefinitely, subject to the terms of this agreement. 5. Updates and Support Maintenance releases, bug fixes, and compatibility updates may be provided at the Licensor's discretion. Access to future major versions, additional products, or premium services is not guaranteed under the original license. Technical support may be provided through Bison Digital's designated support channels but is not guaranteed unless separately agreed upon. 6. Intellectual Property Docsmith, including its source code, design, documentation, and associated assets, remains the intellectual property of Bison Digital and its respective licensors. All rights not expressly granted under this agreement are reserved. 7. Third-Party Software Docsmith may incorporate third-party libraries or components subject to separate open-source or commercial licenses. Those components remain governed by their respective license terms. Nothing in this agreement restricts rights granted under applicable third-party licenses. ExpressionEngine is a trademark of its respective owner. Docsmith is an independent add-on and is not affiliated with or endorsed by the ExpressionEngine developers. 8. Disclaimer of Warranty THE SOFTWARE IS PROVIDED \"AS IS\" AND \"AS AVAILABLE,\" WITHOUT WARRANTIES OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT, TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW. The Licensor does not guarantee uninterrupted operation, compatibility with all third-party extensions, or freedom from defects. 9. Limitation of Liability TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, BISON DIGITAL SHALL NOT BE LIABLE FOR INDIRECT, INCIDENTAL, SPECIAL, CONSEQUENTIAL, OR EXEMPLARY DAMAGES ARISING FROM THE USE OR INABILITY TO USE THE SOFTWARE, INCLUDING LOSS OF DATA, REVENUE, PROFITS, OR BUSINESS OPPORTUNITIES. The Licensor's total liability arising from this agreement shall not exceed the amount paid by the Licensee for the applicable Software license, except where such limitations are prohibited by law. 10. Termination This license remains effective unless terminated due to a material breach of its terms. If the Licensee materially violates this agreement and fails to remedy the violation within 30 days of written notice, the Licensor may terminate the license. Upon termination, the Licensee must discontinue use of the Software and remove all unlicensed copies. Provisions concerning intellectual property, warranty disclaimers, and limitations of liability survive termination. 11. Governing Law This agreement is governed by the laws of the State of Kansas, United States, without regard to conflict-of-law principles. 12. Acceptance By purchasing, installing, or using Docsmith, the Licensee agrees to be bound by the terms of this agreement. If the Licensee does not agree to these terms, the Software must not be installed or used. Docsmith Developed by Bison Digital https://gobison.digital Copyright © 2026 Bison Digital. All rights reserved.","breadcrumb_path":"License","url":"/docs/docsmith/license"},{"page_id":5,"title":"Docsmith Changelog","navigation_title":"Changelog","summary":"","headings":["Docsmith Changelog","0.1.19 (2026-11-18)","Fixes","0.1.18 (2026-11-16)","Licensing","0.1.17 (2026-11-15)","Roadmap","Other changes","Upgrade notes","0.1.16 (2026-10-19)","Control panel redesign","Versions and releases","Fixes","Upgrade notes","0.1.15 (2026-09-11)","0.1.14 (2026-08-26)","0.1.13 (2026-08-16)","0.1.12 (2026-08-16)","0.1.11 (2026-08-15)","0.1.10 (2026-08-15)","0.1.9 (2026-08-08)","0.1.8 (2026-08-08)","0.1.7 (2026-08-08)","0.1.6 (2026-08-08)","0.1.5 (2026-08-08)","0.1.4 (2026-08-08)","0.1.3 (2026-08-08)","0.1.2 (2026-08-08)","0.1.1 (2026-08-08)","0.1.0 (2026-08-08)"],"body":"Docsmith Changelog All notable changes to the Docsmith add-on for ExpressionEngine. Newest first. 0.1.19 (2026-11-18) Fixes Installing or updating Docsmith on MySQL 5.7 or 8 no longer fails with a SQL syntax error near . Docsmith now checks for a column before adding it, which works on both MySQL and MariaDB. Sites left half-installed by the error can run the install or update again. 0.1.18 (2026-11-16) Licensing Docsmith now checks its license through ExpressionEngine's add-on licensing. On a production site without a valid license, every Docsmith control panel screen shows a notice: a 14-day countdown at first, then a standing notice until a license key is added. Nothing is disabled at any point. Development hosts never show it. See Licensing in . The install package now includes the license terms at . 0.1.17 (2026-11-15) Roadmap Each library can now have a roadmap page at , the changelog's counterpart for work that hasn't shipped. It lists each draft version that has roadmap notes, in version order, followed by the library's own roadmap text from the Settings tab. Versions have a new Roadmap notes field. A draft only appears on the roadmap once it has roadmap notes, so draft version names stay private until you choose to list them. When you release a version, it leaves the roadmap. If it has no release notes yet, the release screen starts them from its roadmap notes. New template support: the tag, , and on the page tag, and and on . The roadmap gets a Roadmap link in navigation, a footer link in the starter layout, a table of contents and search indexing. Rebuild Stale Rendered Content now covers roadmaps too. Other changes The control panel's built-in documentation is rewritten for the library tabs, the version workflow and releases, snippet overrides, and the license, changelog and roadmap pages. The install package now includes this changelog at , next to . Refreshed the add-on icon. Upgrade notes Adds an table and a column to . Run the add-on update after installing. Run Refresh Shared Templates to add the Roadmap footer link to the starter layout on existing sites. Sites with their own layout can add inside . While a library has a roadmap, serves the generated roadmap page. A library page with the slug is hidden until the roadmap is removed, the same as and . 0.1.16 (2026-10-19) Control panel redesign The library edit screen is now a tabbed screen: Navigation, Pages, Snippets, Versions and Settings. Each tab has its own link, and actions return you to the tab you started from. A version switcher appears on every library tab. Docsmith remembers which version you are working on for each library. If you haven't picked one, it uses the newest draft, or the current version if there are no drafts. The Navigation tab is now a tree with indent and outdent buttons, type icons, public paths and status pills. Pages can now move between sections from the tree. Deleting a row asks for confirmation inline and says how many pages will go with it. The page editor has a settings column with navigation title, slug, parent, status, summary, table of contents, search and hide-from-navigation toggles, and SEO fields. A note warns when a slug or parent change will create a redirect. The snippet editor has the same layout. The settings column shows the snippet reference with a Copy button, its status and scope, and a \"Used on\" list. The page and snippet editors have a live preview with Write, Split and Preview modes. The preview uses the same renderer as saving. The Versions tab shows current and status pills, URL key, source version, release date and public URL. Release date, outdated-banner text and \"make current\" are now editable. Groups were restyled with audience cards. URL Base and Included Channels show only when they apply to the chosen audience. Audience labels now read Public site, Control panel, and Site + control panel. Each Settings maintenance action now explains what it changes and what it leaves alone, and returns to Settings when it finishes. Library status (active or inactive) can be changed from the Settings tab. Versions and releases New Version is now a guided screen. A new version can copy any existing version, start blank with an Overview page, or import Markdown with one page per heading. Imports are checked on a confirmation screen before anything is created. New versions start as drafts, so they aren't public while you prepare them. Pages created in a draft version default to Published, so they go live when the version is released. A new Release action shows how many pages will go live, which pages are still drafts, and which pages show missing-snippet warnings. It won't release a version that has no pages. It also asks whether to archive the current version or keep it listed, and pre-fills the outdated-banner text. Each version now has release notes. The library changelog page lists every released version's notes, newest first, followed by the library's own changelog text. A version can override a library-wide or global snippet with its own copy. Other versions keep using the original. Deleting the override switches back to the shared snippet. Archived versions are no longer indexed for search or listed by . They are still reachable by URL and show their outdated banner. Links inserted while editing a non-current version now follow the current version instead of being pinned to the version you were editing. Fixes Success and error messages in the control panel now display. Previously none were shown. Saving a nested page without changes no longer changes its URL or creates a redirect. Missing-snippet warnings now render as callouts instead of escaped HTML tags. Deleting a version now also deletes that version's own snippets. Release dates are stored correctly. The date was previously saved as just the year. Dark mode in the control panel: select arrows, input backgrounds, buttons and rendered Markdown now follow the EE theme. The publish tab's table of contents now links correctly and no longer shows the anchor character. Dashboard search and the status filter no longer go to a 404. The Library list has the same filter. Cancelling the global snippet form no longer goes to a 404. Rendered Markdown in the editors and preview screens is now styled. The \"Check the pages\" import screen no longer shows the pasted Markdown in a box above the page list. Upgrade notes Adds a column to . Run the add-on update after installing. 0.1.15 (2026-09-11) Pages and Navigation tables in the control panel now have a Delete action on each row, with a browser confirmation. Fixed a packaging bug where rebuilding a version kept files that had since been deleted. Upgrading from an earlier zip may have left stale files behind. The release build now refuses to run when the requested version doesn't match the version the add-on reports to EE. Internal development notes are no longer included in the package. Removed two duplicate files: and . 0.1.14 (2026-08-26) Libraries can have an optional Changelog, managed from the library edit screen. When it has content, Docsmith serves a page for the library. Added the tag, plus , and variables on the page tag, and a Changelog link in navigation. now exposes , , and . The starter layout footer is now a multi-link bar. Before, it was hidden entirely for libraries with a changelog but no license. Changelog content is indexed for search and rebuilt along with other stale content. and now fall back to a normal page with that slug when no generated document exists, instead of returning a 404. 0.1.13 (2026-08-16) Licenses now belong to the library rather than individual pages. The License panel is on the library edit screen. Fixed the starter layout footer. 0.1.12 (2026-08-16) Added View License links in the control panel license panel and the starter article template. 0.1.11 (2026-08-15) Moved License Markdown editing out of page forms and into a panel on the library edit screen. 0.1.10 (2026-08-15) Added optional License Markdown. When it has content, Docsmith serves a page. Added license template variables, the tag, navigation links, and search indexing for license content. 0.1.9 (2026-08-08) The control panel Documentation page is now a single-column article. It covers previewing, audiences and the publish tab. Expanded the packaged . 0.1.8 (2026-08-08) Fixed the publish tab label casing to \"Docsmith\". 0.1.7 (2026-08-08) Headings written without a space after the hashes, such as , now render as headings. Stored Markdown is not rewritten. The publish tab now checks whether stored HTML is up to date instead of guessing from its content. Stale rendered content is rebuilt automatically when the add-on is updated. 0.1.6 (2026-08-08) The publish tab renders Markdown with snippets when stored HTML is missing. 0.1.5 (2026-08-08) Internal cleanup in the publish tab. No visible changes. 0.1.4 (2026-08-08) The publish tab is now a full documentation reader with navigation, articles and a table of contents. It shows only visible, active libraries with published pages. 0.1.3 (2026-08-08) Publish tab links now open the published documentation instead of the library edit screen. 0.1.2 (2026-08-08) The publish tab shows linked documentation as formatted HTML instead of a read-only text field. 0.1.1 (2026-08-08) Groups can be linked to channels with Included Channels. Linked channels get a Docsmith tab on their publish and edit screens, showing the group's documentation inside the control panel. 0.1.0 (2026-08-08) First release. Markdown documentation libraries with versions, navigation trees, pages and redirects. Groups that collect several libraries under one documentation portal URL. Reusable snippets inserted with , scoped globally, to a library, or to a version. Markdown rendering with callouts, code highlighting, copy buttons and a table of contents. Per-library and per-group search. Starter frontend templates in a shared template group, with theme CSS and JavaScript in . Template tags for libraries, groups, pages, navigation, versions, breadcrumbs, table of contents, previous/next links, snippets and search. Import Markdown to create one page per heading. Control panel dashboard, library and snippet management.","breadcrumb_path":"Changelog","url":"/docs/docsmith/changelog"},{"page_id":77,"title":"Anti-spam","navigation_title":"Anti-spam","summary":"","headings":["Why there is no IP limit","If you are getting spam anyway"],"body":"Every submission passes four checks before a ticket is created. CSRF token — enforced by ExpressionEngine itself before the request reaches Wrangler. A bot that posts without first loading the form is stopped here. Honeypot — a visually hidden input that must arrive empty. Signed render timestamp — the form must have been on screen at least 3 seconds and less than 24 hours. The timestamp is signed, so posting an older value does not work. Per-email rate limit — tickets per email address per hour. A rejected visitor goes back to the form with a generic message and their text intact. The message never says which check failed — telling a bot why it was rejected is telling it how to pass. Why there is no IP limit ExpressionEngine reports the connecting address, which behind a CDN or load balancer is the proxy's address for every visitor unless a proxy configuration is in place. A per-IP rule on such a site would lock out real customers after a handful of legitimate submissions — and on a support form, the person being turned away is someone with an urgent problem who cannot tell you about it. Office and mobile networks share addresses too, and an attacker with a modern IPv6 allocation has effectively unlimited ones. So a per-IP limit fails the people you want and does not stop the people you don't. What actually needs protecting is outbound email volume, and the notification ceiling does that directly without ever refusing a customer. If you are getting spam anyway In order of what to try: Raise the minimum form time — most junk arrives within a second. Lower Rate limit per hour. Turn off Allow guest tickets and require an account. Turning off guest tickets is the strongest control available, and also the biggest ask of your customers. It is worth doing only if the first two have not worked.","breadcrumb_path":"Anti-spam","url":"/docs/wrangler/anti-spam"},{"page_id":74,"title":"Attachments","navigation_title":"Attachments","summary":"","headings":["What is accepted","Where the files go","About the storage directory","Internal notes","Email","Templates","Uninstalling"],"body":"Customers and staff can attach images to a ticket — JPEG, PNG and WebP, several at a time. A screenshot usually settles a support question faster than three rounds of email, so the file inputs are on the submit form, on the customer's reply form, and on the reply composer here in the control panel. What is accepted Wrangler decides what a file is by reading its header, not by trusting its name or the content type the browser sent. A PHP script renamed is refused, and so is a PDF, a zip and a video. Only real JPEG, PNG and WebP images are stored. Anything rejected is reported to the person who uploaded it, by name, saying why. The ticket or reply itself is still saved — a bad file never costs someone their support request. Where the files go Not in an upload directory. A support desk collects screenshots of invoices, account pages and error dialogs, and an EE upload destination is served straight off disk with no access check at all — any leaked URL would be the file. Instead the bytes live in a private directory, named only by 256 bits of randomness, and reach a browser through one endpoint that refuses anything without a valid, expiring signature. Setting Default What it does Allow image attachments On Turn off to hide the file inputs and stop new uploads. Images already attached stay on their tickets. Maximum size per image 5 MB PHP's own and still apply. If either is lower, that is the real limit. Maximum images per message 5 Anything beyond this on one submission is dropped, and the uploader is told. Storage directory Absolute server path. Put this above your webroot if you can. About the storage directory Wrangler writes an deny rule into the directory when it creates it. Apache honours it; nginx ignores it entirely. That is why the protection does not rest on it: Filenames are 256 bits of , with no image extension. They are not derivable from the ticket, the message, or the customer's own filename. The filename never leaves the server. A signed image URL names the attachment by its row id, so someone who was legitimately shown an image cannot read a permanent filesystem path out of the URL and keep fetching it after the link expires. Every image URL expires six hours after the page that produced it was rendered. The settings screen tells you when the directory resolves inside your webroot. That is a nudge rather than an error — it is safe as it stands — but a directory above the webroot removes the question, and it is one line of configuration to move it. Internal notes An image attached to an internal note is as private as the note. It is excluded from the customer's thread by the same database query that hides the note text, so it cannot reach the rendered page even if a template does something unexpected with the data. Email Notifications never carry the image files. They link back to the ticket, which keeps messages small, keeps deliverability high — Wrangler already sends two messages per submission — and keeps the images behind the access check instead of loose in an inbox. Templates Inside , each message exposes its own images: Variable Value Signed, expiring URL for the image. Use it for both and . The uploader's own filename, escaped. Human readable, e.g. . / Pixel dimensions. / Per message, and also available at the top level for the whole thread. To accept uploads, add a file input to the submit or reply form. The tag already makes the form , so nothing else is needed: The on the name is what allows more than one file. Uninstalling Removing Wrangler drops its tables but leaves the attachment files on disk. Tables come back from a database backup; a support desk's screenshots do not, and an uninstall is more often a step in moving a site than the end of one. Delete the storage directory by hand when you are sure.","breadcrumb_path":"Attachments","url":"/docs/wrangler/attachments"},{"page_id":78,"title":"Auto-close and cron","navigation_title":"Auto-close and cron","summary":"","headings":["Auto-closing pending tickets","When it runs"],"body":"Auto-closing pending tickets Pending means the ticket is waiting on the customer. Plenty of customers never answer — their problem went away — and those tickets sit in Pending forever. Set Settings → Automation → Auto-close pending tickets after (days) and any ticket that has been Pending with no new message for that long is closed. It is off (0) by default. Only Pending tickets are closed. New and Open tickets are waiting on you, and closing them automatically would hide work nobody has done. No email is sent. The customer's ticket page shows it as Closed, and replying reopens it, from the web or by email. The ticket's history says Closed automatically after 14 days waiting on the customer. When it runs Wrangler checks at most once an hour, triggered by people using the site: any page with a Wrangler tag, and any Wrangler page in the control panel. On a site with steady traffic that is all you need. For exact timing on a quiet site, call the cron URL shown in the setting's description every hour: The URL carries a secret key and only runs the maintenance. It answers with a line of JSON saying how many tickets it closed.","breadcrumb_path":"Auto-close and cron","url":"/docs/wrangler/auto-close-and-cron"},{"page_id":73,"title":"Custom fields","navigation_title":"Custom fields","summary":"","headings":["On the form","Where the answers appear","Changing fields later"],"body":"Ask for more than a subject and a message — an order number, a product, a website address — without touching the database. Define the fields in Settings → Custom fields, one per line: The handle comes first. It names the input and the stored value, and may use lowercase letters, numbers and underscores. The label comes second. After that, in any order: Word Means A one-line answer. The default. A longer answer. Must be an email address. One of a fixed list; give the options separated by commas. A field with options and no type is a select. The ticket is refused until it is answered. A line starting with is ignored. On the form The sample submit form renders every defined field automatically, in order, with the visitor's answers kept after a rejected submission. In your own template, use the pair inside : Variable Value The handle. The input name to use, . A ready-made id, . The label. The answer from a rejected attempt, for sticky values. , , or . The type, as conditionals. Whether it must be answered. For a select: a pair with and . is true when any field is defined. Answers are checked on the server: a missing required answer, an option that is not in the list and a bad email address each send the visitor back with a message naming the field. Where the answers appear On the ticket page in the control panel, under their labels in the header. In the new-ticket staff alert, as . If your saved alert template does not contain , the answers are added to the end of it. In the CSV export, one column per field. On the customer's ticket page, with the pair inside ( , ), or one answer at a time as . Changing fields later Answers are stored on each ticket under the handle. Renaming a label changes how old answers are shown; renaming a handle leaves old answers under the old handle, where they show in the control panel by their raw name. Removing a field hides nothing that was already answered. The older inputs still work alongside custom fields. They are stored the same way, but with no label, type or validation.","breadcrumb_path":"Custom fields","url":"/docs/wrangler/custom-fields"},{"page_id":80,"title":"Developer hooks","navigation_title":"Developer hooks","summary":"","headings":["Example","Working with tickets in code"],"body":"Wrangler calls ExpressionEngine extension hooks when tickets change, so another add-on can post to Slack, update a CRM, or add rules of its own without editing Wrangler. Hook Arguments When , A ticket was opened, from the form or in code. , Any message was added: customer, staff, internal note or system. Check and . , Status, priority, queue, assignee or subject changed. is . A ticket was deleted. The ticket is gone, so this is an array: , , , , , , . is a model and a model. Every hook fires after the change is saved, from every path that makes it: the control panel, the front-end forms, emailed replies, the auto-close sweep, and your own code calling the service. A customer reply that reopens a ticket fires and then . If an extension throws, Wrangler writes it to the developer log and carries on. A broken integration does not stop a customer filing a ticket. Example Working with tickets in code Every change goes through one service, which keeps the history and fires the hooks: The service sends no email. To notify, call yourself, as the control panel and the front end do.","breadcrumb_path":"Developer hooks","url":"/docs/wrangler/developer-hooks"},{"page_id":75,"title":"Email","navigation_title":"Email","summary":"","headings":["Plain text, or branded HTML","Swap variables","Editing templates","Internal notes send nothing","When sending fails","Dashboard widget","The notification ceiling"],"body":"Six messages, each rendered from a template you can edit in settings. Every one ships with working copy, so a fresh install sends sensible mail once a From address is set. Plain text, or branded HTML The templates you edit are always plain text, and they stay the single source of the words. What changes is the wrapper: Nothing configured under Branding — mail goes out as plain text, exactly as written. Any branding set — mail goes out as multipart HTML: your logo above a card, your accent colour on the button. The plain-text version you wrote is sent alongside as the alternative part, so a client that refuses HTML still shows the words rather than markup. Plain text has the better deliverability of the two, which is why an admin who has configured nothing is never silently upgraded into HTML mail. One thing worth knowing when you write a template: a line containing only a URL becomes a button in the HTML version. That is why the built-in copy puts on its own line — the link is the whole reason the email exists. A URL sitting mid-sentence is left as text. Email Sent to When Acknowledgement The requester A ticket is opened. Contains their magic link. Staff alert — new ticket Staff notification recipients A ticket is opened. Customer alert — staff replied The requester Staff post a public reply here. Staff alert — customer replied The assignee, or the staff recipients if nobody is assigned The customer replies. Set Customer replies alert to All staff recipients to copy everyone instead. Staff alert — assigned to you The new assignee Someone else assigns them a ticket. Ticket links reminder The address that asked The \"lost your link?\" form is used and the address has tickets. Swap variables Available in the ticket templates: Variable Value The ticket subject The message that triggered the email Link to the ticket, for whoever is reading the email Link to the ticket here in the control panel The customer's name, falling back to their email Your site name The custom field answers, one per line Who assigned the ticket (assignment alert only) The links reminder has its own two: (every ticket's reference, subject, status and link) and . With email replies on, the two customer emails carry a per-ticket Reply-To and open with a \"Reply above this line\" marker. points wherever that email's reader can actually open the ticket: In the two customer templates, it is the front-end ticket page, carrying the guest's requester's magic-link token. is empty here until Ticket page URL is set in settings. In the two staff templates, it is the control panel. Staff work tickets here, and the front-end page would turn them away — it authorizes a member against the ticket's owner, and the owner is the customer. is always the control panel link, if you want it somewhere explicitly. Every requester gets a token — members as well as guests. A member's ticket is also reachable by simply being signed in, but the link in an email is very often opened somewhere they are not: a phone, a second browser, a private window, a session that expired last week. Without a token on the link, all of those tell the person who filed the ticket that it does not exist. The token is the same every time, so the link in the acknowledgement and the link in every later \"we replied\" email open the same page. Nothing expires and there is nothing for the customer to keep track of beyond the most recent email. Editing templates Clearing a textarea restores the built-in default rather than sending a blank message. There is no way to send an empty email by accident. Mail is plain text. Subjects are not editable in settings; they are in the language file, keyed , , , and , and each takes the ticket reference. The links reminder's is . Internal notes send nothing There is no template for an internal note because no email is ever generated for one. This holds in both directions: the note is absent from the customer's thread and absent from the mail queue. When sending fails A failure is written to EE's developer log and swallowed. Mail is a side effect of the request — a ticket or a reply that was already saved stays saved, and the customer still sees their confirmation. Check Developer Log if mail is not arriving. Staff alerts with no recipients configured are logged too, as is any error while building a message — none of these ever stop the ticket or reply being saved. Staff alerts do not set the customer as Reply-To. Hitting Reply on one goes back to your From address, not the customer: answers belong in the control panel, where they stay on the ticket and reach the customer with their link. A message can also be sent successfully and still never be seen: the receiving server accepts it and files it as junk. Nothing on this side of the send can detect that. The usual cause is a From address on a different domain from the site — use an address on the site's own domain, or send through SMTP (EE's Settings → Outgoing Email) authorized for that address. Dashboard widget Wrangler adds a Support tickets widget to the control panel home page. It lists the tickets waiting on a staff reply, oldest wait first, with counts of those and of new tickets. Above the list it flags any setting that will stop notification mail working: no staff notification recipients, or one that is not a valid address no valid From address a From address on a different domain from the site (likely to land in junk) the notification ceiling tripped in the last hour The widget is registered when Wrangler is installed or updated. It appears on the default dashboard automatically; on a customised dashboard layout, enable it under Edit Layout. Dashboard widgets need ExpressionEngine Pro's dashboard; on a site without it the CP home page shows EE's fixed layout and no add-on widgets. The notification ceiling Wrangler sends two emails per submission, which would make an abused form an outbound relay. The notification ceiling guards against that: if more tickets are opened site-wide in an hour than the threshold allows, Wrangler keeps accepting tickets but stops sending notification email until the hour rolls off, and logs that it did so. Nothing is lost when this trips — the tickets are all in the list here. Set it to 0 to disable.","breadcrumb_path":"Email","url":"/docs/wrangler/email"},{"page_id":76,"title":"Email replies","navigation_title":"Email replies","summary":"","headings":["How it works","Setting it up","Connecting a mail provider","Piping from your own mail server","What the endpoint answers","Turning it off"],"body":"With email replies on, a customer can answer a Wrangler email from their inbox and the answer lands on the ticket, exactly as if they had used the reply form. It is off by default because it needs one piece of setup outside ExpressionEngine: a mailbox whose mail is handed to Wrangler. How it works Every email a customer receives — the acknowledgement and each staff reply — goes out with a Reply-To like this: The part after the names the ticket and carries a signature made from your site's encryption key. It cannot be guessed, and changing the number breaks the signature, so nobody can aim a reply at someone else's ticket. When the reply arrives, Wrangler: finds that address among the recipients and checks the signature; drops it if it is an out-of-office, a bounce, or other automatic mail; cuts off the quoted copy of the original email, using the \"Reply above this line\" marker at the top of every customer email and the usual \"On … wrote:\" lines; adds what is left to the ticket as the customer, reopens a Pending or Closed ticket, and emails staff, just like a reply from the web form. A reply from a different address than the one on the ticket is still kept, but as an internal note marked with the sender, so nothing reaches the customer-facing thread from an address Wrangler did not write to. Copy anything useful from it into a real reply. Images attached to an emailed reply are not imported. The customer can add them from the link in the same email. Setting it up Choose a mailbox on your own domain, such as , that accepts plus addressing ( is delivered to ). Most providers do; cPanel, Fastmail, Google Workspace, Postmark and Mailgun all do. Connect it to the webhook URL on the settings page (Settings → Email replies). It includes a secret key, so treat it like a password. Turn on Let customers reply by email and enter the mailbox as the Reply mailbox. Send yourself a test ticket and reply to the acknowledgement. Do step 3 last. With the switch on and nothing connected, customer replies go to a mailbox nobody reads. Connecting a mail provider Wrangler recognises each of these formats automatically. Point the provider's inbound webhook at the URL from the settings page. Provider Where Postmark Servers → Inbound stream → Webhook URL. Postmark's inbound address supports plus addressing, and its is read too. Mailgun Receiving → Create route → Forward to the URL. The parsed or the form both work. SendGrid Settings → Inbound Parse. \"Send raw\" on or off both work. Piping from your own mail server To deliver from a mailbox on your own server, pipe the raw message to the URL with curl. In cPanel, add a forwarder for the mailbox that pipes to a program, and use a small script: With Postfix or Exim the same command works as the delivery command for an alias. Mail that is piped is never stored by Wrangler apart from the reply text it adds to the ticket. What the endpoint answers The endpoint always answers with a short JSON status once the key is right — , , or , and a reason. Mail providers retry anything that is not a 2xx, and mail Wrangler has decided not to take does not get better by being sent again. A wrong key is a . Rejections are written to the developer log. Turning it off Switch it off and new emails go out without the plus address. Replies to older emails still arrive at the webhook while it is connected, and are refused with a log line until it is switched back on.","breadcrumb_path":"Email replies","url":"/docs/wrangler/email-replies"},{"page_id":69,"title":"Getting started","navigation_title":"Getting started","summary":"","headings":["Before tickets can arrive","Who can use Wrangler","Queues","\"Wrangler is not licensed on this domain\""],"body":"Before tickets can arrive Three settings need attention on a fresh install. Everything else has a working default. From email — the address Wrangler sends as. Nothing goes out without a valid one. Staff notification recipients — separate addresses with commas or semicolons. Empty means nobody is told when a ticket is opened. Ticket page URL — the absolute URL of the template that shows a single ticket, with no trailing slash. Until this is set, emails go out with no link to the ticket. Who can use Wrangler ExpressionEngine has no per-add-on permission. Access to these pages is module access: Super Admins always have it. Anyone else needs a role with Wrangler assigned, under Members → Roles → (a role) → Add-Ons. Anyone else gets the standard unauthorized response on every Wrangler URL. That same group is what \"staff\" means everywhere in Wrangler. It is exactly who appears in the Assignee dropdown on a ticket and in the bulk-assign menu. If someone is missing from that list, give their role access to the module. Note that the staff notification recipients setting is a separate, manual list of email addresses. Assigning a ticket to someone does not email them. Queues Queues are free text, defined as a comma-separated list in settings. They default to . Renaming a queue does not move the tickets already filed under the old name. Those stay filterable — the old name appears in the queue filter marked (retired) until the last ticket using it is re-filed or closed out. \"Wrangler is not licensed on this domain\" ExpressionEngine reports that this site has no valid Wrangler licence, or that it has expired. Nothing is disabled: tickets, replies, email and every screen keep working, and customers never see it. The notice shows only at the top of Wrangler's own control panel pages. For the first 7 days it counts down, then the wording firms up. To clear it, add or renew the licence in Add-ons (the add-on's licence key field) and load any control panel page. ExpressionEngine refreshes its licence check from the browser, so the notice can take one page load to disappear. Local development hosts ( , , , ) never show it.","breadcrumb_path":"Getting started","url":"/docs/wrangler/getting-started"},{"page_id":68,"title":"Overview","navigation_title":"Overview","summary":"","headings":["The shape of it","Statuses","How a ticket moves","What else is here","What Wrangler does not do"],"body":"Wrangler is a lightweight support desk. Customers open tickets from your site, staff work them here in the control panel, and everyone gets emailed when something changes. The shape of it A ticket has a subject, a status, a priority, an optional queue, and a requester — either a logged-in member or a guest identified by name and email. Every ticket carries a human reference like . A ticket holds messages, in order. A message is from the customer, from staff, or from the system. Staff messages can be marked as an internal note, which stays in the control panel and is never shown to the customer or included in any email. Statuses Status Means New Nobody has looked at it yet. Open Being worked on. Pending Waiting on the customer. A customer reply flips it back to Open automatically. Closed Done. How a ticket moves A visitor submits the form on your site. The ticket opens as New. They get an acknowledgement email. A guest's email contains a private link to their ticket. Your staff notification recipients get an alert. Staff reply here. A public reply emails the customer; an internal note emails nobody. The customer replies from their link, or by answering the email if email replies are on. If the ticket was Pending it becomes Open, and the assignee (or the staff list, if nobody is assigned) is emailed. A ticket left Pending long enough can close itself. See Auto-close and cron. Every change is recorded in the ticket's history, shown in the thread alongside the messages. What else is here Saved replies for answers you give often. Custom fields on the submit form — order number, product, anything. Email replies, so customers can answer from their inbox. Slack posts when tickets open, customers reply, or tickets are assigned. A customer view of everything one person has sent you, and CSV export of any list. A lost link form that emails a customer their ticket links again. Extension hooks for developers. See Developer hooks. What Wrangler does not do No attachments other than images, no SLA or business-hours tracking, no satisfaction ratings, and no merging of tickets. Those are deliberate omissions, not oversights.","breadcrumb_path":"Overview","url":"/docs/wrangler/overview"},{"page_id":72,"title":"Sample templates","navigation_title":"Sample templates","summary":"","headings":["Updating them later","The one-panel layout","Install them for me","Or build them yourself"],"body":"Updating them later Settings → Update sample templates replaces the templates in a group you already have with the versions shipped in the current release of Wrangler. Point it at your group and click. It updates the stylesheet only unless you tick Also replace the page templates. That is deliberate: the stylesheet is what changes between releases and almost nobody edits it, while the page templates are exactly what you would have customised — your own markup, extra fields, a file input you added. Ticking the box overwrites all of that. Installing and updating are separate actions on purpose. Install refuses to touch a group that already exists, so it can never overwrite your work by accident; Update only ever works on a group that does exist, and never creates one. The one-panel layout Every sample page puts its heading inside the same as its content, separated by a rule, so a single box holds the whole page. The ticket page opens that panel in plain markup before and closes it after , because the two tags render independently and neither can wrap the other. If you are building your own templates, the pieces are: Class What it is The panel. One per page. A heading inside the panel, with a rule under it. A block below a rule inside the panel — the reply composer, for instance. Install them for me Settings has an Install sample templates button. Give it a template group name and it creates all the templates below, grants every role access to them, and sets Ticket page URL to match. That is the quickest way to a working support page, and it avoids three traps that catch people doing it by hand: A template with no role-access rows is invisible to guests, and EE returns a bare 404 with no hint that access is the reason. The template engine field must be left empty; anything else silently fails to resolve. The ticket page URL has to match the group you created, or every magic link points nowhere. It never touches a group that already exists, so it cannot overwrite work you have customised. If something goes wrong partway it removes the group it was building rather than leaving a half-installed one behind. Everything it creates is yours — restyle or rewrite it freely. Updating Wrangler does not overwrite templates. Or build them yourself These assume a template group called , with Ticket page URL set to . The URL Wrangler builds is for members and for guests, so a guest link looks like . The token is a path segment rather than a query parameter so it does not leak through the header to third-party assets on the page. Segments are , so is the reference and is the token. A signed-in member can omit the token entirely. For signed-in members only. Anything you like. This is where lands after a successful submit. The \"lost your link?\" page, linked from and from the ticket page's not-found message. Update sample templates adds this page to a group installed by an earlier version, even when Also replace the page templates is left unticked: it is new, so there is nothing of yours to overwrite.","breadcrumb_path":"Sample templates","url":"/docs/wrangler/sample-templates"},{"page_id":79,"title":"Slack","navigation_title":"Slack","summary":"","headings":["Connecting it","Or paste a manifest","Another channel later","What gets posted","If Slack is down","Discord, Mattermost and others","More control"],"body":"Wrangler can post to a Slack channel when a ticket is opened, when a customer replies, and when a ticket is assigned. Each post shows the reference, the subject, who it is from, the start of the message, and an Open ticket button that goes straight to it in the control panel. Connecting it You create a small Slack app whose only permission is posting to one channel, then copy its webhook URL into Wrangler. It takes about two minutes. Slack redesigns these screens from time to time, so the wording may drift a little; what you are after is always an incoming webhook. Go to api.slack.com/apps, signed in to your workspace, and click Create New App. Under From scratch, choose Pick features and click Continue. (Not the AI agent or Starter app templates — Wrangler needs neither.) Give the app a name — Support — and pick your workspace. When asked what the app can do, choose Post messages. Its permission is shown as , and it is the only one needed. When asked what it can respond to in Slack, add nothing. Leave the events empty and click Continue. Wrangler only posts; it never reads anything in Slack. On Review your app, check that What it can do in Slack lists just Post messages — incoming-webhook, then click Create and Install. Slack asks which channel the app may post to. Pick it — , say — and click Allow. For a private channel you need to be a member of it first. On the app's settings page, open Incoming Webhooks in the left menu. The webhook is listed there: copy the URL that starts . In Wrangler, paste it into Settings → Slack → Slack webhook URL, tick the events you want, and save. Click Send a test message on the settings page. A wave message should appear in the channel. If Slack refuses it, the reason is shown right there — means the webhook was removed in Slack, and means the channel was archived. If your workspace only lets admins install apps, step 6 sends a request to an admin instead, and the webhook appears once they approve it. Or paste a manifest At step 2, Paste a manifest does steps 3 to 6 in one go. Paste this, then carry on from step 6: Another channel later Back on the app's Incoming Webhooks page, Add New Webhook creates a URL for a different channel. Wrangler posts to one channel per site; paste whichever URL you want it to use. Treat the webhook URL like a password: anyone with it can post into that channel. What gets posted Event Post A ticket is opened Reference, requester, subject, custom field answers, the first 400 characters of the message, priority and queue. A customer replies Who replied, the ticket, the start of the reply, and who it is assigned to. Covers replies by email too. A ticket is assigned Who assigned it to whom. Self-assignment is posted too, so the channel can see who took what. Staff replies and internal notes are never posted. Anything a customer typed is escaped, so a message containing or cannot ping your workspace. Posts follow the same notification ceiling as email: if the ceiling trips during a flood of spam, Slack goes quiet too. If Slack is down A failed post is written to the developer log and nothing else happens: the ticket is saved and the emails still go. Each post waits at most four seconds for Slack, so a slow Slack cannot make your support form hang. Discord, Mattermost and others Discord: create a webhook in the channel's settings (Integrations → Webhooks), copy its URL and add to the end. Discord then accepts Slack's format. Mattermost and Rocket.Chat: their incoming webhooks accept this format as they are. Microsoft Teams uses a different format and is not supported here. A small extension on Wrangler's hooks can post to it. More control To send urgent tickets to one channel and the rest to another, or to format posts differently, use the developer hooks in your own extension instead.","breadcrumb_path":"Slack","url":"/docs/wrangler/slack"},{"page_id":71,"title":"Template tags","navigation_title":"Template tags","summary":"","headings":["Building the queue dropdown","When a ticket page says \"we could not find that ticket\"","The tag finds the reference and token on its own","A note on caching"],"body":"Seven tags. None of them require JavaScript. Wraps its own tag pair in a form that opens a ticket. You write the inputs; the tag supplies the element, the CSRF token, a honeypot, and a signed render timestamp. Parameter Purpose Template path to land on after a successful submit. Must be site-relative. / Attributes for the element. Variable Value Why the last attempt failed. Empty otherwise. True when the last attempt failed. / Sticky values from a failed attempt. / Sticky guest contact details from a failed attempt. Empty for members. The queue chosen on a failed attempt. True when at least one queue is configured. Variable pair over the configured queues. Each row has and . / Whether a member is signed in. True when name and email inputs should be shown. The current setting. / The fields from Settings → Custom fields. See Custom fields. Recognised inputs: and (required); and (required for guests); and (optional, validated against your settings); and any input named , which is stored on the ticket and shown to staff in the meta header. Building the queue dropdown The posted has to match a configured queue exactly — same spelling, case and spacing. A value that does not match is dropped silently: the ticket is still created, just with no queue and no error. Hardcoding the options therefore means a queue renamed in settings quietly stops categorising new tickets. Use the pair instead and both sides come from one source: Rename a queue in settings and the dropdown follows on the next page load, with no template edit. keeps the visitor's choice through a rejected submission. This is how to model products you support: name the queues after your products, and every ticket arrives already filed against one. Queue is a sortable column and a filter in the control panel, so staff can work a single product at a time. If you also need a version, keep the product in the queue and add a input alongside it. If guest tickets are switched off and nobody is signed in, the tag renders . One ticket, for whoever is authorized to see it. Parameter Purpose Which ticket to load. Used for signed-in members; ignored for token holders, because a token already names exactly one ticket. The raw magic-link token, normally the URL segment after the reference. Top-level variables: , the conditionals and , and one (also ) per value stored on the ticket. The pair lists the answered custom fields with and ; says whether there are any. Date variables accept EE formatting, e.g. . The pair yields and the conditionals and . Use for when a message was posted, e.g. . Inside the pair, is still the ticket's opening date — ExpressionEngine fills the outer tag's variables everywhere, loops included — which is why the message date has its own name. Internal notes are excluded by the database query, not filtered out of the loop, so a staff note cannot reach the page even if a template does something unexpected with the data. The tag renders when the requester is not authorized, when the reference is unknown, and when the token is wrong. All three look identical on purpose, so the tag cannot be used to work out which references exist. A signed-in member's own tickets. Parameter Default Purpose — Restrict to , , or . Maximum rows. One of , , , , , , . or . Variables per row: . This tag has no token path. A magic link grants one ticket, never an index, so a logged-out visitor holding a perfectly valid token still gets here. Wraps its tag pair in a form that adds a customer reply. Takes the same and parameters as , plus , and . The only input it reads is . Renders for anyone not authorized to reply. Variables: (sticky) and . \"Lost your link?\" Wraps its tag pair in a form with one input, . On submit, Wrangler emails that address one message listing every ticket opened with it, each with its private link. Takes , and . Variable Value / After a submit. / A malformed address. Sticky value. The page says the same thing whether or not the address has tickets, so the form cannot be used to find out who has contacted you. The email only ever goes to the address the tickets are already on, and each address can ask three times a day. When a ticket page says \"we could not find that ticket\" and show the same message for every failure, on purpose — an unauthorised visitor must not be able to learn which references exist. That is right for them and unhelpful for you, so there is a switch that explains the refusal in Developer Log. In : Then reload the failing page and read the log. You will get one line per refusal naming the requester, the reference, the state of the token, and the URL that was requested: The token is logged as a short fingerprint, never in full. Turn it off when you are done — a crawled ticket page will otherwise fill the log. The tag finds the reference and token on its own The sample templates pass , which is right only when the ticket page sits exactly two segments deep. Put the templates in your site's default group, or nest them one level further in, and those segment numbers point at the wrong things. Both tags therefore fall back to reading the reference and the token out of the URL whenever the parameters do not produce something of the right shape. A reference and a 64-character token are both recognisable on sight, so the tags work wherever the page lives, and the parameters remain the fastest path when they are correct. Nothing is loosened by this: a token still has to match a stored one, so this changes only where the tag looks. The Branding settings, for a template that wants them. Takes no parameters. Variable Value A complete block overriding the stylesheet's colour tokens. Empty when nothing is configured. / The configured logo, if any. / The raw hex values, empty when unset. True when any of the three settings is set. The usual use is one line in : This works because every colour in the sample stylesheet routes through a custom property on — the tag overrides those properties rather than adding rules. Rewrite the stylesheet however you like and CP theming keeps working, as long as , and survive. Hover states are derived from the accent, so you set one colour rather than two. An unconfigured site emits nothing at all — not an empty block — so it is safe to include unconditionally. Do not nest this inside another Wrangler tag. EE does not parse one module tag inside another; call it separately, as the sample templates do. A note on caching Do not enable template caching on a page carrying either form. The CSRF token and action IDs are substituted after the cache layer so they stay correct, but the error and sticky-value variables come from flashdata and a cached page will not show them.","breadcrumb_path":"Template tags","url":"/docs/wrangler/template-tags"},{"page_id":70,"title":"Working tickets","navigation_title":"Working tickets","summary":"","headings":["The list","Bulk actions","One ticket","Saved replies","Deleting tickets","What sends email"],"body":"The list All tickets is sortable on every column and shows 25 at a time, newest activity first. Filter by status, priority, queue and assignee, or search by keyword — the search covers the reference, the subject, and the requester's name and email address. Click a requester to see every ticket from that email address; the list says whose tickets it is showing, with a link back to everyone. Export CSV, above the list, downloads every ticket matching the current filters and search — not just the page you are looking at — with the requester, assignee, dates, message count and one column per custom field. Unassigned and Assigned to me in the sidebar are the same list with the assignee filter already applied. Nothing is different about them; you can get to the same view from the filter bar. Bulk actions Tick the checkbox on any rows and a bar appears at the bottom of the list. Because ExpressionEngine's bulk bar is a single dropdown, each action carries its target in the option itself — Set status: Closed, Assign to: Jordan Vale, Unassign. Pick one and submit. Bulk actions never post a message, so they never send email. Delete is last in the menu, shown to super admins only, and asks for confirmation first, listing the tickets it will remove. See Deleting tickets. One ticket The ticket page has three regions. The meta header shows the reference, the requester and their email, whether they were a member or a guest, when it was opened, and the last activity. Anything the submit form collected in a input — product, version, licence, URL — is listed here too. Custom field answers are listed in the header under their labels. The thread runs oldest to newest. Internal notes are tinted and tagged so they cannot be mistaken for something the customer has seen. The ticket's history is woven into the thread as small grey lines — who changed the status, who it was assigned to, when it closed itself — so the page reads as one timeline. The reply composer posts a message. Three controls matter: Internal note — tick this and the message stays here. The customer never sees it in their thread and no email is sent. Set status on reply — applied after the message is written, so it always wins over any automatic status change. Leaving the message empty is rejected; use the sidebar instead if you only want to change a field. Insert a saved reply…, above the reply box, drops one of your saved replies in at the cursor with the customer's name and the ticket details filled in. Edit it before posting. The Quick edit sidebar changes status, priority, queue and assignee. It saves and reloads the ticket, so the change survives a refresh. The only email it sends is to a new assignee. Under it, This customer lists their other recent tickets, with a link to all of them. Saved replies Saved replies, in the sidebar, holds answers you give often. Give each a title and the text. These variables are filled in for the ticket you insert it on: , , , , (you) and . Saved replies are shared by everyone who works tickets on the site. Deleting tickets Only super admins can delete tickets; other staff do not see the controls, and the control panel refuses the request even if it is sent directly. Delete a ticket from its page (Delete ticket, under Quick edit) or several at once from the list's bulk menu. Both ask you to confirm. Deleting is permanent. There is no trash: the ticket, every message and internal note in it, and its attached images — the files on disk as well as the records — are removed. The customer's link to the ticket stops working and shows the same \"not found\" page as any unknown ticket. No email is sent. If you only want a ticket out of the way, close it instead. Closed tickets keep their history and can be reopened, including by the customer replying. What sends email Action Email Public reply in the composer Customer is emailed Internal note Nothing Assigning a ticket to someone else (quick edit or bulk) The new assignee is emailed Any other quick edit or bulk action Nothing Customer replies, from their link or by email The assignee, or the staff recipients when nobody is assigned — see Customer replies alert in settings Auto-close Nothing Deleting Nothing With Slack connected, new tickets, customer replies and assignments are also posted to your channel.","breadcrumb_path":"Working tickets","url":"/docs/wrangler/working-tickets"},{"page_id":6,"title":"Wrangler Changelog","navigation_title":"Changelog","summary":"","headings":["1.0.3","1.0.2","1.0.1","1.0.0","0.7.4","0.7.3","0.7.2","0.7.1","0.7.0","0.6.0","0.5.0","0.4.5","0.4.4","0.4.3","0.4.2","0.4.1","0.4.0","0.3.x","0.2.0","0.1.0"],"body":"1.0.3 Adds a licence notice: when ExpressionEngine reports the Wrangler licence as invalid or expired, Wrangler's CP pages show a banner, counting down 7 days and then firming up. Nothing is ever disabled. No schema changes. 1.0.2 Replaces the add-on icon. No code changes. 1.0.1 Rewrites the Slack setup steps (Documentation → Slack, and the help text under the setting) to follow Slack's current app-creation screens: Pick features, the Post messages ( ) permission only, no events, Create and Install. Adds a manifest you can paste instead. No code changes. 1.0.0 Rounds the desk out: Email replies. Customers can answer a Wrangler email from their inbox and the reply lands on the ticket. Each customer email carries a signed per-ticket Reply-To; a mail provider's inbound webhook (Postmark, Mailgun, SendGrid) or a curl pipe hands the reply to a new endpoint. Quoted text, auto-replies and bounces are stripped; a reply from a different address is kept as an internal note. Off until configured. Lost links. and a new sample page email a customer every ticket link for their address. Assignment alerts. Assigning a ticket to someone emails them, and a customer reply on an assigned ticket goes to the assignee rather than the whole staff list (configurable). Auto-close. Tickets left Pending a set number of days close themselves, on traffic or from a cron URL. Saved replies, inserted into the composer with the customer's details filled in. History. Status, priority, queue, assignee and subject changes are recorded and shown in the ticket thread. Customer view. Click a requester to see all their tickets; the ticket page lists their others. CSV export of the filtered ticket list. Custom fields on the submit form, defined in settings, validated, shown to staff and included in alerts and exports. Slack. Paste an incoming-webhook URL and new tickets, customer replies and assignments post to a channel, with an Open ticket button. Discord works through its webhook. Extension hooks: , , , . Upgrading: run the add-on update (it adds the table and three actions), then Settings → Update sample templates to add the new page. Your existing page templates are left alone; tick Also replace the page templates to also get custom fields on the sample form and the recover links on the thanks and ticket pages. 0.7.4 Tidies the dashboard widget (each row shows how long the customer has waited, with their name beneath, instead of a timestamp run into the name), makes the delete confirmation read correctly for several tickets, and replaces leftover development wording in the settings help text. 0.7.3 Fixes every message on the customer ticket page showing the ticket's opening time. Message times are now inside ; there is the ticket's date. Existing sites: run Update sample templates with \"Also replace the page templates\" ticked, or change to inside the loop of your ticket template by hand. 0.7.2 Fixes bulk delete doing nothing when six or more tickets were selected. 0.7.1 Limits deleting tickets to super admins, accepts semicolons and spaces between staff recipient addresses, stops a failure while building an email from ever breaking a ticket submit or reply, and removes the customer Reply-To from staff alerts (see Email). 0.7.0 Added ticket deletion: Delete ticket on a ticket's page, and Delete in the list's bulk menu. Both confirm first. Deleting is permanent — the ticket, its messages and internal notes, its attachment records and the image files on disk all go. Also ships the add-on icon. 0.6.0 Added a Support tickets dashboard widget for the CP home page. It lists tickets waiting on a staff reply and flags settings that stop notification mail arriving: no staff recipients, an invalid recipient or From address, a From address on another domain (likely to land in junk), and a tripped notification ceiling. A staff alert skipped for lack of recipients is written to the developer log instead of failing silently. 0.5.0 Added Settings → Update sample templates: a button that refreshes an already-installed template group from the versions shipped with the add-on, so a stylesheet improvement no longer means copying files out of the archive and pasting them into the control panel by hand. Defaults to the stylesheet alone; replacing the page templates is an explicit tick, because those are the ones you will have edited. Also centres the logo and lets it be as large as the rest of the page — the old height cap was set for a wide wordmark and crushed a badge or crest to a third of its size. 0.4.5 Put each sample page's heading inside its panel, so one box holds the whole page instead of the title floating on the background above a container that starts halfway down. Also aligns the message text with the composer's left edge. 0.4.4 Reworked the sample ticket-page layout: the author and timestamp now sit on one line above each message instead of in a fixed side gutter that stranded short replies, attachment thumbnails render at a fixed size rather than collapsing, and image URLs are stable for an hour so a browser can cache them. 0.4.3 Gives member tickets a magic-link token too. They had none, on the assumption that a member would be signed in when they clicked their link — so a member opening their own ticket email anywhere they were not signed in was told the ticket could not be found. 0.4.2 Makes and find the reference and token anywhere in the URL rather than only at / , so a ticket page that does not sit exactly two segments deep stops reporting a perfectly good link as \"we could not find that ticket\". Adds to log why a ticket page refused. 0.4.1 Fixed a rejected or return-less submit landing on the home page instead of back on the form, and an assignee appearing not to stick when the assigned member is no longer staff. 0.4.0 Added image attachments — JPEG, PNG and WebP, several per message, on the submit form, the customer reply form and the control panel composer. It also fixes the emailed ticket links, which pointed somewhere the recipient could not open: staff alerts now link to the control panel, and a guest's link works in every email rather than only the first. Requires: ExpressionEngine 7.3+, PHP 8.1+ Vendor namespace: No Composer dependencies, no JavaScript framework 0.3.x Added branding (logo and colours, applied to the front-end templates and to outbound HTML mail) and the sample-template installer. 0.2.0 Added the customer-facing half: template tags for submitting and reading tickets, the ACT endpoints behind them, guest access by magic link, and four email notifications. 0.1.0 Shipped the data layer and the staff-facing control panel: install routines, models, the ticket service every mutation goes through, and the CP list / detail / settings screens.","breadcrumb_path":"Changelog","url":"/docs/wrangler/changelog"},{"page_id":85,"title":"Changing tokens","navigation_title":"Changing tokens","summary":"","headings":["Renaming a token","Deprecating a token","Pending and queued changes","Pickers follow the change","When rewrites run","Bloqs, picker settings and Undo","Remapping removed tokens","Related"],"body":"Entries store token names. Change a name in the token file and every entry that stores it would break, so Variflow changes names in two steps: first the token file, then (if you want) the stored data. At no point does content point at a name the live build can't resolve. The control panel never writes your token file. Rename and Deprecate record what you asked for and give you the exact patch to commit. The change happens when a build from the updated file goes live. Renaming a token Open the token (Add-Ons › Variflow Tokens, click its label) and choose Rename…. The window shows: Impact: stored references, entries, fields and channels, and the tokens that alias this one. Below it, the pickers whose settings name the token (\"Picker settings that name it: 1 field setting, 4 Bloqs atoms\"): see Pickers follow the change. The new name: checked as you type (valid, not taken, no clash with another token's CSS name). Stored entry data: what happens to content (below). The patch: \"Commit this to <file>\", the diff, and Copy patch. The patch moves the token to its new name, keeps the old name under , and updates every reference to it in the file. Commit it, then build. Stored data What happens Alias only (the default) Entries keep the old name, which resolves to the new token. Nothing in your content changes. Also rewrite stored entry data, after the next build Queued. Once a build with the new name is live, entries are rewritten to the new name. Deprecating a token Deprecate… adds (with the replacement, if you pick one) to the token. Editors stop being offered the token. Entries that already use it keep rendering it, and editors see it marked as being retired, with Switch to … when there's a replacement. Also swap stored values to the replacement: changes those entries straight away, because the replacement already exists. Rename and Deprecate need a super admin on a licensed site (or during the 14-day trial: see Licensing). Pending and queued changes Every change shows on the token's page and under Builds › Queued changes until it settles: Status Means Pending Waiting for the token file to contain the change Queued A rename whose stored data is rewritten once the new name is live Done Settled Cancelled Stopped before it ran Failed The rewrite hit an error; the note says why, and Retry runs it again A token can have one open change at a time. Cancel a pending or queued one from its page or from Builds. Pickers follow the change A Tokens field, Grid column or Bloqs atom can list its tokens by name (Only these tokens) and name a Default. When a change rewrites stored data, those settings change with it, so the picker keeps offering the token the content now holds: Which changes: a rename with rewrite, a deprecate with swap, and a remap. A rename that's alias only, or a deprecation that keeps values, leaves settings alone, just as it leaves content alone. What changes: the old name in the explicit list becomes the new one, in the same place (it isn't listed twice if the new name was there already), and a default equal to the old name becomes the new one. Scheme pickers, and the tier, type and group filters, are never changed. When: in the same run as the content, so a queued rename's settings change when its rewrite runs. The result note says how many (\"Picker settings updated: 1 field setting, 8 Bloqs atoms.\"). Filters that leave the token out. A picker with no explicit list that filters by tier, type or group can stop offering the token: the old name passed the filter and the new one doesn't. Its filter isn't changed. The window (in the patch box) and the run's result warn instead, e.g. \"Field \"Accent\" filters by group color.brand; color.action.accent is outside it.\", so you can widen the filter in the field's settings. When rewrites run After every publish (a build or a rollback), Variflow checks the site's open changes against the new live build, and runs a queued rewrite once the new name is live: Where it looks: stored values exactly equal to the old name, in fields, Grid columns, Fluid fields and Bloqs atoms (draft blocks too). Nothing else in an entry is touched. Batches: entries are written 50 at a time, each batch in its own transaction. Safe to repeat: every write checks the value is still the old name, so an interrupted rewrite can simply run again. Revisions: each changed entry gets a revision where the channel keeps revisions. The window names channels that don't, before you queue anything. Failures: a rewrite that fails never fails the build, because the build is already published. On the command line, does the same and says what's still waiting. Bloqs, picker settings and Undo ExpressionEngine's entry revisions don't include Bloqs blocks or field settings, so they can't undo those. Instead, Variflow records every Bloqs atom and every picker setting a rename, deprecate-and-swap or remap rewrites, with its old and new value. To put them back, open Builds, find the change under Queued changes, and click Undo. Each Bloqs atom that still holds the new name goes back to the old one, and each picker whose list and default are still what the change wrote gets its old ones back. Anything an editor has changed since is left as it is, and the message says how many. Undo doesn't touch channel fields: restore those from the entry's revisions as usual. An entry whose only change was in Bloqs doesn't get a revision, since it wouldn't hold that change. Remapping removed tokens If a new token file removes tokens that content still uses, the build fails and says so. Click Remap usage… on the failure banner: Pick a replacement for each removed token: one that's in both the live build and the new file. Apply. Stored values move to the replacements now, while the old build is still live. Rebuild. The removal now passes. Each row also says which picker settings name the removed token: the remap updates them too (see Pickers follow the change), and warns under the replacement when a filter would leave it out. A name neither build has. Content can store a name the live build doesn't have as a token either: a reference that was already broken, or an old name the live build only resolves through a rename. Its type is unknown, so the replacement can be any token that's in both builds, and isn't deprecated in the new file. The list starts with the tokens nearest the old name ( , then ), then the rest grouped by type. The screen notes \"Neither build has this token, so its type is unknown: check the replacement suits where it's used\", and there's no colour difference to show. Remap needs a super admin, and never a licence: it's how a stuck deploy gets unstuck. Related Token files Deploying Command line","breadcrumb_path":"Changing tokens","url":"/docs/variflow-tokens/changing-tokens"},{"page_id":89,"title":"Command line","navigation_title":"Command line","summary":"","headings":["variflow:init","variflow:verify","variflow:build","variflow:rollback","variflow:usage:rebuild","variflow:rewrite:run","variflow:import","variflow:import:tokens","variflow:convert","variflow:convert:undo","variflow:doctor","Related"],"body":"Every command runs through EE's command line, from the site root: On a local stack, run it where the site's PHP runs: (DDEV), (Lando), or inside the PHP container. lists a command's options. Commands that work on one site take (default: the first site). , , and also take . variflow:init Writes a starter token file and prints the lines for it. Option Does Write the Fernhaven Outfitters demo set (five schemes, derived colours, contrast pairs) instead of the starter Where to write it (default: , or ) Overwrite an existing file Exit codes: 0 written, 1 the file exists or can't be written. variflow:verify Checks the token file and compares it with the live build. Writes nothing. Option Does Check this file instead, for example a draft from , against the site's content. The token file isn't changed Print the result as JSON List each framework map rule that was skipped Exit codes: 0 no errors, 1 errors, 2 a config or file problem. variflow:build Checks, compiles and publishes. A build with errors publishes nothing and leaves the live build in place. Option Does Publish even when the output matches the live build Print the result as JSON List each framework map rule that was skipped Exit codes: 0 published or unchanged, 1 errors, 2 a config, file or lock problem. variflow:rollback Republishes an earlier build's files, without recompiling. Option Does The build to put back; is the newest earlier build that still has its files Show the build history instead ( for JSON) Exit codes: 0 rolled back (or listed), 2 refused. variflow:usage:rebuild Rebuilds the usage index from stored field data (channel fields, Grid, Fluid and Bloqs atoms), reports the count per source, and lists references the live build no longer has. Option Does Count without writing Exit codes: 0 done, 2 a problem. variflow:rewrite:run Settles pending renames and deprecations, and runs every queued rename rewrite the live build allows. It lists what's still waiting, and why. Option Does Say what would run, without changing anything Exit codes: 0 done, 2 a problem. variflow:import Writes a draft token file from a stylesheet's custom properties. It never writes your live token file. Option Does Where to write the draft (default: next to the token file, as ) Overwrite an existing draft Print the draft instead of writing it After the 14-day trial without a licence (Licensing), it prints the review only. Exit codes: 0 written, 1 unreadable or empty CSS, 2 a config problem or a draft that already exists. variflow:import:tokens Writes a draft token file from a Figma, Tokens Studio or DTCG resolver export. Each mode becomes a scheme, holding only what differs from the default mode. It never replaces your live token file. See From Figma, Tokens Studio or Sketch. Give it the exported files, a folder (read recursively), or both. Option Does The mode that becomes the base and the default scheme. Needed unless a resolver document names a default The mode group whose modes become schemes: a Tokens Studio theme group, a Figma collection (its folder), a resolver modifier. Needed when there's more than one The mode another group uses (default: its first). Repeatable A DTCG file's mode, or to put it in a group too. Default: Figma's , else the file name. Repeatable A Variflow extras file: layout presets, component variants, scheme labels and descriptions, group descriptions, flags such as , and contrast pairs, merged in before the review. Its contrast pairs replace inferred ones Don't write inferred editor labels Don't write inferred tiers Don't write inferred contrast pairs Don't turn hover and pressed shades into derive rules Where to write the draft (default: next to the token file, as ) On a site with no token file: once the draft is written, rename it to the token file. On its own (no export named), use the draft already saved ( , or the default). Refused, with nothing written, when the site has a token file. Needs a licence Overwrite an existing draft Print the review and the draft as JSON instead of writing. The review's has every proposal with its reason, and what wasn't inferred Names of groups and modes match without regard to case. The review ends with what was inferred (see What's inferred): counts per kind, the derive rules, the pairs that fail, and the edge cases left as they are. With , it then lists what the extras file added ( ) and what it left out ( , with why), and the extras file's contrast pairs with any that fail; has them as . An extras file that isn't one exits 1, with the reason. When it can't decide (several mode groups, or no default), it lists the choices and writes nothing. After the 14-day trial without a licence it prints the review only. Exit codes: 0 written, 1 unreadable or empty export, 2 a choice to make, a config problem or a draft that already exists. variflow:convert Converts a Text Input, Select, Radio or Color Picker field (or a Grid column, ) to a Tokens field, mapping each stored value onto a token. Option Does The Tokens settings, as a field stores them: . Default: the same suggestion as the control panel Decide values yourself: , giving a token name, for the field default, or (with ) Map medium-confidence values to their nearest token. Without it, the command stops and lists them Outliers keep their raw values instead of becoming the field default Show what would change; write nothing Print the review and result as JSON Finish an interrupted conversion Past conversions Exact and High matches map on their own. After the 14-day trial without a licence, the command stops after the dry run. Exit codes: 0 done or dry run; 1 refused (not convertible, unchecked medium values, values changed since the review, an unfinished conversion, unlicensed); 2 a config problem or a failed run. variflow:convert:undo Puts the field's old type, settings and values back. Values an editor has changed since the conversion are left alone. It's refused if the field's type has changed again since. It never needs a licence. Exit codes: 0 undone or dry run, 1 refused, 2 a problem. variflow:doctor Checks the set-up and says what to fix: PHP and its extensions; the EE version, the add-on's version and its database; the token file; the output folder, and the live CSS over HTTP; the live build and its files; the picker assets, the licence and queued work. Option Does Also time a build of a generated N-token file (default 300): load, validate, compile and write, median of 3. It publishes nothing Don't request the live CSS over HTTP Print the results as JSON Exit codes: 0 everything ok (warnings allowed), 1 a check failed. Related Deploying Troubleshooting","breadcrumb_path":"Command line","url":"/docs/variflow-tokens/command-line"},{"page_id":91,"title":"Deploying","navigation_title":"Deploying","summary":"","headings":["In a deploy script","Where the CSS goes","Automatic builds","Environments","Rolling back","Checking an environment","Related"],"body":"Variflow works in file mode: the token file is in your repository, and each environment builds its own CSS from it. Builds are fast (a 300-token file takes about a tenth of a second on a modern server) and safe: a build with errors never replaces the live CSS. In a deploy script After your code is in place: checks the file and compares it with the live build. It writes nothing, and exits non-zero on errors. publishes. When the output is the same as the live build it publishes nothing (\"Unchanged\"), so running it on every deploy is free. If the live build's files have gone missing from the output folder, it writes them again. Queued rename rewrites run by themselves when the build goes live. does the same on demand. With MSM, add to and . Where the CSS goes Builds are written to as , alongside a manifest ( , which the control panel and pickers read) and the source it was built from. Not in the add-on's theme folder: an upgrade that replaces never deletes live CSS. Don't commit it. Each environment builds its own. If your deploy wipes , either keep that folder between deploys or run after it: the build writes the live files back. Elsewhere: set and, if it's served from another URL, . Automatic builds With on, the first control panel request after the token file changes runs a build and shows a banner with the result. Development hosts: on by default. Elsewhere: off by default. Production should build from the deploy script, so a broken file is caught there, not by the first editor who logs in. Environments Paths, the prefix and the output folder come from only, never the database, because the database travels between local, staging and production while paths differ. Set them per environment the way you set EE's own paths. The settings on the Settings page (automatic builds, contrast checks, builds to keep) are stored per site in the database. A value in always wins over them. Rolling back Or Builds › Roll back to #N in the control panel. What it does: republishes an earlier build's files without recompiling, so it works even when the current token file is broken. How far back: the live build and the five before it keep their files ( ). Older builds stay in the history without files. Afterwards: roll forward by building again, once the file is fixed. Checking an environment It checks: PHP, EE, and the add-on's version and database; the token file; the output folder, and that the live CSS answers over HTTP; the picker assets and the licence; queued work. also times a build of a generated 300-token file, without publishing anything. Related Command line Changing tokens Troubleshooting","breadcrumb_path":"Deploying","url":"/docs/variflow-tokens/deploying"},{"page_id":92,"title":"Developers: the Integration API","navigation_title":"Developers: the Integration API","summary":"","headings":["The stability promise","Getting the service","Embedding the picker","Settings","Assets and markup","Validation and saving","Template output","Checking your configuration against the build","The grid and layout presets","Component variants","Assets","Writing a content source","The interface","Registering: the hook","Keeping usage current","Contract tests","A complete example: Token Notes","Reference","The contract tests in full"],"body":"This page is for developers of other ExpressionEngine add-ons (page builders, block editors, anything with its own editor or storage) who want to: offer Variflow's picker for a value in their own editor; output that value in templates exactly as a Tokens field would; and have Variflow's usage tracking, build guard, renames, remaps and Undo cover the token references they store in their own tables. You need none of Variflow's internals for this. Everything public lives in the namespace: The service: readiness, settings, the picker, validation, template output, the build query, usage. The interface your storage implements so Variflow can find and rewrite your references. , Where a reference lives, and what's stored there. What the hook hands you to register a source. , A picker's validated settings, and what needs to draw one value. The stability promise The hook, , the value objects and the service are public from Variflow 1.2.0 and follow semantic versioning: nothing in them changes incompatibly before 2.0. New methods and constants may be added; (an int: 1 in 1.2.0; 2 in 1.3.0 with ; 3 in 1.3.0 with component variants; 4 in 1.3.0 with hidden tokens; 5 in 1.3.0 with named assets) goes up when they are, so you can check for what you use. Constructors marked are Variflow's to call; get objects from the service. Anything outside the namespace may change in any release. The API never throws at you. When Variflow can't serve a site, it answers with empty results and says why; whatever your source throws is caught, logged and shown by . Licensing doesn't change anything here: the picker and template output work whatever the site's licence, as Tokens fields do. Getting the service Variflow is optional for your add-on, so check it's installed first: is true when Variflow is installed, its tables are there and the site has a live build. is null then, or a sentence you can show. Embedding the picker Settings A picker's settings mean the same as a Tokens field's (The Tokens fieldtype): mode ( , or, from API 3, ), allowed schemes, tier, type and group filters, an explicit list, the component (variant mode), a default, the display style and whether deprecated tokens are offered. validates them with the fieldtype's own rules and returns . Its list says what doesn't fit the live build; store : To let site builders choose these settings in your own settings screen, gives you EE shared-form rows, the same controls and live \"N tokens match\" preview a Tokens field has. The inputs are named , and so on, so what's posted goes straight back into : Assets and markup returns a ; turns it into the element, with a no-JavaScript fallback (radios or a select) that posts the value by itself: In the control panel, also adds the components script to the page. Anywhere else, load yourself: is empty today (the picker styles itself), but load it if it isn't. The script URLs change with each Variflow release, so don't hard-code them. Two optional arguments: (the one-line picker Grid and Fluid use) and . In a JavaScript editor (Vue, React, …), render the markup on the server and drop it into your component; is a framework-free web component. Picking writes the reference to a hidden input named inside the element and fires a bubbling event from it: gives , and the (the JSON the element reads) if you want to draw your own summary of the value. Its stable keys: , , , ( , , , , ), , , (each , , and ) and . Since API 4 (1.3.0): a token the file hides from editors is never among the choices, except the saved value, which is there with so you can still show it (the picker pins it as the current value, and it saves unchanged). The optional key gives the headings the file sets for the choices' groups (path => , ), which the picker uses when it groups a long list. If you draw your own picker from , leave out the ones with set. Validation and saving Store the reference string the picker posts ( , ), or an empty string for \"use the default\". Before saving, apply the fieldtype's rule: A new value must be one of the choices in the live build. An unchanged value always saves, even if it has since been deprecated or removed, so pass what's stored now as the third argument; an empty value always saves. Template output returns exactly what a Tokens field tag outputs (Templates). Pass your tag's parameters, plus : Token value Scheme value Variant value (API 3) (none) ; typography needs (or one typography part) — — — — — (renames followed) A variant outputs the value of the attribute, not the attribute, so one element can carry several: . Renames are followed, and an empty or unresolvable value outputs ' default (or nothing). Without , the mode comes from the value ( , a variant reference such as , or a token) and there's no default. Output never needs a licence and never throws; problems go to the template debugger. Remember to output the CSS too: in the page's . Checking your configuration against the build If your add-on has configuration that names tokens or groups (a component schema that says \"this slot takes a colour from \"), check it against the live build: returns each group's , , (tokens at any depth), and (null when its tokens' tiers differ). returns each token's , , , , (what shows) and . follows renames. The grid and layout presets From Variflow 1.3.0 ( 2), a token file can define a page grid and layout presets (Grid and layout presets). A page builder lays pages out from them: editors pick a preset (\"8 / 4\", \"Three across\"), never column spans. returns null when the site's token file has no grid (or there's no live build). Otherwise: Key , the column count , the narrowest an item may be, in columns , and : , , (as has it; schemes may change it, so use the variable) name => , , , for and when the file has them name => , , , narrowest first ( , , , …). is the literal for a media or container query, which can't read variables list of , , , , , , in the file's order when the file lists no presets and these are Variflow's defaults A preset's add up to . Below (a breakpoint name) its items stack; with spans (otherwise null) they use those from until . is its fit width: the narrowest slot, in columns of the page grid, it fits in when nested, so no item gets narrower than . With 12 columns and 3, a 4-across needs the full 12 and a 6/6 needs 6. Offer a preset in a slot only when is at most the slot's span. To render a preset, output the layout stylesheet and the attributes (Layouts): Component variants From API 3 (Variflow 1.3.0), a token file can give a component group named variants (Component variants): with Primary, Outline and Ghost. An inspector offers \"button: Primary / Outline\" from them, and the editor picks a name, never a colour. returns every group with variants (sorted by path), or only ; when there are none or there's no live build. Each group: Key , , , , the default variant's name: the group's own values, what an element without the attribute shows the tokens its variants change: the ones they override, and what depends on them (a derived hover) in the file's order, each with , ( : store this), , (or null), (bool), and A variant's lists the tokens whose value differs from the default variant's, as shows them: , , , and the default's value as . is what the Tokens field's cards draw ( , , , , , each a CSS value or null), for a swatch of your own. Store the reference and render it in the attribute, with the token CSS loaded. Every variant's values are right under every scheme, whichever is nested in which: Variant references are content like token references. Report them from your content source as they're stored ( ): usage counts them, the build guard refuses a token file that drops a variant your content uses, and a remap can replace one ( and get → ). Assets From Variflow 1.3.0 ( 5), lists the site's assets: the logos and other files the token file and the Assets page name. Offer them in your own image picker, store , and resolve it with when you output, so a file replaced on the Assets page follows on every page that uses it: is for a decorative asset and null when none is given. lists the files of the schemes that swap one (an can't follow ; the CSS variable can). Writing a content source Your add-on stores token references in its own format: a table, or a JSON document in a field. Variflow can't read that, so you tell it how, with a content source. Once registered, your content is covered like a Tokens field: usage: the token page's Usage list shows it, and reads it; the build guard: a build can't remove a token, scheme or (API 3) component variant your content uses; renames with rewrite, deprecate-and-swap and remaps rewrite your values through your source, and Undo puts them back the same way. Variflow never reads or writes your storage itself. The interface Each has a (where), the stored , a for the control panel (\"Token Notes › Spring sale\") and an optional , a CP path such as (not a compiled URL: those can carry the session). A is your source's , the site, the entry (0 for content that isn't part of a channel entry), an only you understand (up to 191 characters; a row ID, , …) and optionally the EE holding it, which the CP names. The rules: Name: lower case letters, digits and , starting with a letter, up to 32 characters. Usually your add-on's short name. and are taken. Cells carry your name, and the site (and entry) asked for. Others are ignored and reported. Item IDs are stable: the same location gives the same key on every read. returns exactly the cells whose value, ignoring surrounding whitespace, is , read from your storage. writes only where the value is still (ignoring surrounding whitespace) and returns whether it wrote. A null or empty means \"nothing stored\". Return false for another source's key, a location that's gone, or a value you won't change: the rewrite then counts it as skipped and its note in the control panel says so (\"Skipped 2 references in token_notes: that add-on didn't write them\"). Don't throw. If you do, Variflow catches it, logs it, lists it in and treats the call as returning nothing. Registering: the hook Variflow fires the extension hook once per request, the first time it needs its sources. Add an extension method for it ( in your installer, or a migration) and register your source: returns false when the source is skipped: an invalid name, a name another source has, or a that throws. Skipped sources are logged and lists them; nothing else is affected. Keeping usage current Variflow learns about changes three ways: When you save: call with the cells you just stored. For an entry, it replaces every row your source has for that entry (pass when the entry no longer holds any). For content outside entries ( 0), it replaces only the items your cells name; a cell with an empty value clears its item. After an entry saves: Variflow re-reads for that entry anyway, from EE's hook and again once EE has written an updated entry's field data (1.3.0), so entry content stays current even if you don't call , and can read the entry's saved field data. When content goes: deleting an entry deletes every source's rows for it. For content outside entries, call when you delete it (and for each item when your add-on is uninstalled). replaces everything from . Contract tests Variflow's own sources are tested against one contract: , a PHPUnit test case printed in full at the end of this page. Copy it into your tests and extend it: It checks the name, that cells are yours and on the right site, stable item IDs, , exact , and that writes only where the value is still , refuses keys it doesn't own, and clears with null. A complete example: Token Notes A tiny add-on that stores a colour token per note in its own table, with a CP page that uses Variflow's picker, a template tag, and a content source. Copy these files into , install Token Notes in Add-Ons, and open it. Variflow's own tests install it as written. Notes aren't part of entries, so their cells have entry 0, saving calls , and deleting calls . The add-on. Install: the table, and the extension row for Variflow's hook. Uninstall tells Variflow the notes are gone. The hook: register the source. Where the notes keep their tokens. Saving and deleting, with validation and / . The CP page: the list, and the form with Variflow's picker. The template tag: . In a template, with the CSS tag in the page's : Rename the note's token with a rewrite, or remap it after removing it from the token file, and the note follows; the token's Usage list shows \"Token Notes › Spring sale\", linking to the note. Reference Everything public, all in . Stable until 2.0. ( ), Method Returns : installed, tables there, a live build : why not ready, or null , validated as a Tokens field's settings EE shared-form rows, inputs named : with its no-JS fallback : null when it may be saved : what a Tokens field tag outputs list of , , , , list of , , , , , , (API 4: true when the file keeps it from editors) : a token, group, or (API 3) variant reference : , , , , , (with ), ; null without a grid. Since API 2 (1.3.0) list of groups: , , , , , (each , , , , , , ). Since API 3 (1.3.0) list of assets (logos and other files): , , , , , , , (scheme => URL). Since API 5 (1.3.0) one of those by name ( or ), or null. Since API 5 (1.3.0) : rows written : rows removed (interface): , , , , , . : , , , , ; , . : , , , . : . : , , , , , , , , , , , (API 3); , . : , , ; , . The hook: , one argument, a . The contract tests in full , as Variflow runs it (PHPUnit 10 or later). Change the namespace to yours.","breadcrumb_path":"Developers: the Integration API","url":"/docs/variflow-tokens/developers-the-integration-api"},{"page_id":83,"title":"From Figma, Tokens Studio or Sketch","navigation_title":"From Figma, Tokens Studio or Sketch","summary":"","headings":["1. Export","From Figma","From Tokens Studio","From Sketch","From a DTCG resolver document","2. Import","3. Check it, then swap it in","What becomes a scheme","Several mode groups","What's skipped","What's inferred","Labels","Tiers","Contrast pairs","Derive rules","What's left to you","The extras file","Related"],"body":"Your design system already lives in Figma, as variables with modes (Light, Dark, Brand…), or in Tokens Studio, as token sets and themes. Variflow calls modes schemes. Import turns an export into a token file with one scheme per mode: export, import, build, with no JSON to edit by hand. Variflow never connects to Figma. You export the files and give them to Variflow. Sketch's token export imports too; see From Sketch. 1. Export From Figma Open the Variables panel (Local variables). Right-click the collection that has your modes, for example Theme with Light and Dark, and choose Export modes. Figma writes one file per mode, for example and . To export a single mode instead, right-click the mode and choose Export mode. Do the same for the collections those variables point at (your primitives), or a reference to them can't be kept. Put each collection's files in a folder named after the collection: Figma doesn't write the collection's name into its files, so Variflow takes it from the folder. Each file's mode comes from the file itself (Figma writes it as ), or from its name. Variables plugins that write DTCG files, one per mode, work the same way. From Tokens Studio Either of these works: One file: export or sync to a single JSON file. It holds your token sets, and . A folder: sync to a folder (GitHub, GitLab, a local folder) with multi-file storage. It holds a file per token set, plus and . Import the whole folder, or a zip of it in the control panel. Each theme is a mode, and a theme group is a mode group. A theme's tokens are its token sets marked Enabled or Source, in your token set order, later sets winning. Both the legacy format ( , ) and the W3C DTCG format ( , ) are read. From Sketch In the Sketch web app, open the document or Library, choose Document details › Export Design Tokens, pick JSON and download it. Import that one file; color variables, text styles and their colours arrive as tokens. Sketch has no modes, so groups such as \"Light Mode\" and \"Dark Mode\" import as ordinary groups, not schemes. Expect a few warnings in the review: Names: Sketch names keep their spaces (\"Dark Mode\"), which Variflow names can't have, so they become . Labels keep the original wording. Line height: Sketch writes for an Auto line height. It's left out, so the browser's normal line height applies, rather than becoming . Font names: Sketch writes PostScript names, such as or . Change them to the family name your CSS loads ( , ). Layer styles (fills, borders, shadows) aren't imported yet. Make colour, border and shadow tokens for them by hand. From a DTCG resolver document The DTCG 2025.10 Resolver Module describes sets and modifiers in a file. Import that file together with every file it refers to. Sets are shared by every mode; one modifier's contexts become the schemes, and its is the default mode unless you pick another. Remote URLs aren't fetched: download them and import them with the rest. 2. Import In the control panel: Add-Ons › Variflow Tokens › Import › Design tokens (super admins). Upload the files, or a of the export folder. The limit is 1 MB a file and 2 MB in all. If you keep an extras file for what the export can't carry, choose it under Extras file (optional). Then: Pick which group's modes become schemes, if the export has more than one group. Pick the default mode. Read the preview: each scheme's name, label and number of overrides, then what was skipped and any warnings. Review what was inferred: labels, tiers, contrast pairs and derive rules (see What's inferred). Turn a kind off or untick items, then Update preview. With an extras file, Added from … lists what it added, and any entry left out, with why. Save draft writes it, with what's ticked, next to your token file. Download gives you the file instead. On a site with no token file yet, the saved draft's banner offers Use as the token file: it renames to and links to Rebuild from file. It never replaces a token file, so the button isn't there when you have one. On the command line: This writes next to your token file and prints the review, with what was inferred. Add (or , , ) to leave a kind out. See Command line for every option. On a site with no token file yet, add to make the draft the token file once it's written, or run on its own to use the draft you've already saved. Either is refused when the site has a token file. The import never replaces your live token file. Reviewing works without a licence; saving, downloading or writing the draft needs one after the 14-day trial (Licensing). 3. Check it, then swap it in This checks the draft against your site's content without using it. A token your entries use that the draft doesn't have is reported, for example. Then (if you didn't use it as the token file already): Replace your token file with the draft, or point at it. Commit it. Run . What becomes a scheme The base: the default mode's tokens, plus everything every mode shares (usually your primitives), make up the file's tokens. is that mode. The schemes: each other mode becomes a scheme. Its name is the mode's name as a slug, so \"Dark · night forest\" becomes , and its label is the mode's name. Overrides: a scheme holds only the tokens whose value differs from the default mode. References stay references ( ) and are never resolved to values. Figma's links to other collections: Figma exports a variable that points into another collection as a value, plus . When the target is in the import, it is written as a reference again. Tokens some modes lack: A token that isn't in the default mode joins the base from the first mode that has it, with a warning. A token missing from another mode keeps the default's value in that scheme. Names: a name Variflow can't use, such as \"Brand Name\", is changed (\"Brand-Name\"), and the references to it follow. Each change is listed. In every scheme, each token resolves to the value it had in that mode. Several mode groups Variflow's schemes are one dimension. If the export has two mode groups, say colour (Light, Dark) and density (Comfortable, Compact), you pick the group that becomes schemes. Every other group uses one mode: its first, or the one you pick ( ). The review lists what was left out, for example \"Density: Compact, where 2 tokens differ from Comfortable\". On the command line, an export with several groups and no lists the groups and exits 2 without writing. So does a missing . A group with only one mode, such as a Figma primitives collection, is simply shared. What's skipped Nothing is dropped silently. The review lists each skipped token and the reason: Unsupported types: for example Figma's string and boolean variables, or Tokens Studio's and types. You get the same warning as in a token file. Tokens Studio math: a value such as . Type clashes: a token whose differs between modes. Broken references: a token that refers to a skipped or missing token. Values that aren't tokens: an object with fields but no (or ), such as a style written as . It's named with its fields, so you can move them under and import again. The import keeps: , Tokens Studio's included; every block, Figma's ( , scopes, ) included. Variflow ignores them; hidden and scoped Figma variables, which aren't filtered out. Typography is tidied as it comes in, each change listed as a warning: Line heights become ratios, as CSS and DTCG expect: or on a 32px font becomes , and becomes . A plain number of 3 or less is already a ratio and is kept. A line height that can't become a ratio (pixels on a font size, say) and Sketch's for Auto are left out. Fields a typography token has no place for, such as , and , are left out. Make a colour token for a text colour. Figma's number variables arrive as tokens, without units. Give spacing tokens a unit afterwards if you want or . What's inferred An export has no place for editor labels, tiers, contrast pairs or hover rules. Variflow infers them from how your tokens are named and organised, and writes them into the draft. The review lists each one with its reason (\"on-primary sits on primary\", \"12% toward black in every mode, ΔE ≤ 0.4\"). In the control panel, each kind has a switch and each item a tick box; Save draft writes only what's ticked. On the command line, turn a kind off with , , or ; lists every proposal. Nothing your export already says is replaced: a token that has a label, tier or derive rule keeps it. Nothing is inferred from colour values alone: every rule needs a naming signal. Labels Every token without a label gets , written out so it's easy to edit: the readable name editors would see anyway (\"Surface default\", from the last two parts of the name). When a name had to change on import (\"Brand Name\" became ), or is written in camelCase ( ), the label keeps its words (\"Brand Name\", \"Primary hover\"). Tiers In this order: A collection, set or group named like a tier: , , , are primitive; , , , are semantic; is component. For Figma that's the collection's folder ( ), for Tokens Studio the token set ( , ), for a resolver document the set or modifier. A derived colour (see Derive rules below) is semantic. A component-like path ( , , , , or ) whose tokens refer to semantic ones is component. A plain value that's the same in every mode is primitive. A reference, or a value that differs between modes, is semantic. The tier goes on the highest group whose tokens all agree, and on single tokens otherwise. The review counts the tokens per tier and per reason. Contrast pairs Convention Pairs with Rule or ( , ) , and its , , and shades text , , , , each surface in the same family text status colours: , , , , , … each surface in the same family text , , , , each surface in the same family, except the background a border outlines (below) ui an action colour ( , , , , …) that has an colour the default surface ui an action colour without one, so it's used as text each surface in the same family text Surfaces are names with , , , , or . The family is the name before the role word: in , in . When a family has no surfaces, the nearest family above it is used. Inverse: a name with pairs only with inverse surfaces, and the others never do. At most 6 surfaces per colour, the closest names first: same group, then the same last part ( with ), then . The rest are listed. A border isn't paired with the background it outlines: one in its own group ( with , and that background's hover and pressed shades), or one it takes its colour from in every scheme (a filled button whose border is , like its fill). The contrast that makes such a border visible is against what's around the component, which the names don't say. A whole-palette group such as doesn't count as one thing's group, so still pairs with . Focus rings are always paired. The review lists the backgrounds left out. Kept: only pairs of two colours that every mode has. Palette steps ( ) and tokens in a primitive collection are never paired. Checked: each pair in every scheme, with the same contrast check as a build. The review shows its worst ratio and the scheme. A failing pair is kept and flagged, not dropped or \"fixed\": it's the finding. reports it as a warning. Derive rules A hover or pressed shade arrives from a design tool as a plain value in each mode. Variflow turns it back into a derive rule when one rule reproduces it everywhere. Candidates: a colour whose last part is , , , , , , or , or ends with one ( , ). Its base: the name without the state ( → ), else the group above it ( → ), else a or beside it. The fit: a mix toward , or in , or , with one amount in whole percents, within ΔE 1.0 (OK ΔE) in every mode. ΔE 1 is about the smallest difference anyone notices side by side; the export's 8-bit colours and the rounding to a whole percent take up most of it. Black in some modes, white in others: the rule mixes toward , one semantic token that's black or white per scheme. Your export's own is used if it has one; otherwise the import adds it. When it fits, the token gets , its scheme overrides go (the rule covers every scheme), and keeps the default mode's value as a fallback. Every value is checked again after the rules are written. A rule that would move any token's value by more than ΔE 1.0 in any scheme isn't written. A shade that's a reference ( ) in every mode stays a reference: it's a palette choice, not a mix. What's left to you The review lists, per kind, what wasn't inferred and why. Typically: A shade with no base by its name, such as when there's no . A hover made by hand, whose amount differs between modes (\"10% toward black in Light, 30% toward white in Dark\") or that no mix reproduces within ΔE 1.0. Its plain values stay. Translucent colours and shadows named without a state word ( , ): kept as plain values and, being the same in every mode, primitive. Pairs no convention reveals, and the surfaces past the 6 per colour. Scheme labels come from the mode names. Add a under if you want one, or keep labels, descriptions and the rest in an extras file, so every import gets them back. Your next export can be imported the same way; compare the new draft with your token file before you swap it in, so you keep what you edited by hand. The extras file Figma and Tokens Studio have no place for some of what a Variflow token file holds: grid layout presets, component variants, scheme labels and descriptions, group descriptions, flags such as , and the contrast pairs you've chosen. Keep them in a small JSON file beside the export and give it to the import with the export, as the CP's Extras file or . The import merges it in before the review, so the draft you save already has them. Every key is optional. Key What it adds The format's version, . Recommended, so the file says what it is. The token file's . Per scheme, its and . A scheme is named by its name ( ) or its mode's ( ), in any case. Per group (a dotted path), its and : what goes in the group's , such as , , or . Per token, the same: , and for its ( , a …). The pairs to check, as in a token file: , and ( or ; when left out). Merged over what the import wrote: a here replaces the inferred one; keys you don't give are left as they are. Contrast pairs replace inference. When the file has (even an empty list), the import writes exactly those and infers none. Each is checked in every scheme, and the review shows its worst ratio, as it does for inferred pairs. Conflicts are left out, and say so. An entry naming a scheme, group or token the import doesn't have (renamed in Figma, say) isn't written; its line in the review shows a warning with the reason. So is an entry that would stop the draft validating. The rest is still written. What isn't an extras file is refused with the reason: a key other than those above (or and , which are ignored), or a value of the wrong shape. Uploading the export itself as the extras file is the usual slip. The draft notes the file's name in . To start one from a token file you already have, copy those parts out of it: the scheme labels and descriptions from , each group's and (leave out and , which the import infers), token flags such as , and . Related Token files Retrofitting a site Command line","breadcrumb_path":"From Figma, Tokens Studio or Sketch","url":"/docs/variflow-tokens/from-figma-tokens-studio-or-sketch"},{"page_id":82,"title":"Getting started","navigation_title":"Getting started","summary":"","headings":["Requirements","1. Install","2. A token file","3. Build","4. A Tokens field","5. Use it in a template","6. Check it in the browser","Next","Upgrading","Related"],"body":"From a fresh install to a section whose colours come from your tokens, in about twenty minutes. Nothing on your live pages changes until you add the CSS tag in step 5. The commands below run EE's command line from your site's root folder: On a local stack, run it where the site's PHP runs: on DDEV, on Lando, or inside your PHP container on Docker Compose. Everything here can also be done in the control panel, except writing a starter file (step 2), which you can do by hand. Requirements ExpressionEngine 7.3 or later, PHP 8.2 or later. Write access to (for the token file) and (for the built CSS). 1. Install Unzip the download. It has two folders, and . Copy each into the same place in your site. In the control panel, open Add-Ons, find Variflow Tokens and click Install. Or: Check the set-up: At this point it warns that there's no token file and no live build. Everything else should say . 2. A token file Pick one: See everything working first: the demo set is Fernhaven Outfitters, an outdoor shop: seven colour ramps, five schemes (Light, Dark, Brand, Muted, Seasonal), hover and pressed shades derived per scheme, translucent tokens for shadows and scrims, and 23 contrast pairs checked in every scheme. Start small: a starter file with a few colours, spacing steps and two schemes. You already use CSS custom properties: turn them into a draft token file with Add-Ons › Variflow Tokens › Import. See Retrofitting a site. You have a file from a design tool: any W3C DTCG token file works, and so does a Tokens Studio export. See Token files. writes and prints the lines for it. With the default location you don't need them, but adding them makes the setup visible to the next developer: Commit the token file to your repository: it's the source of truth from now on. 3. Build A build checks the file, compiles it and publishes it only if there are no errors. Warnings (a contrast pair under 4.5:1, say) are listed but don't stop it. Add-Ons › Variflow Tokens now lists every token, and Schemes shows each scheme on a sample section. You can also click Rebuild from file on the Builds page. On development hosts, Variflow also rebuilds by itself on the first control panel request after the file changes. 4. A Tokens field Fields › New Field, type Tokens. Name it, for example Section look (short name ). Mode: Scheme picker. Editors choose a whole look for a section: every colour in it follows. Leave all schemes ticked, and set the Default value to Light. Save, and add the field to a channel: Channels › edit › Fields, or on a fresh site create one (Channels › New Channel, for example Pages, and tick the field on its Fields tab). Add a second field for a single token if you like: Mode Token picker, Type Color, Groups . Name it Section background ( ). The preview under the filters shows exactly what editors will be offered. Open an entry in that channel. The field shows a card for each scheme, drawn in its own colours. Pick Dark and save. The entry stores , a reference to the scheme rather than its colours. 5. Use it in a template Add the stylesheet to your layout's : Then output the field where the section starts: outputs . Inside that element every token resolves to its Dark value, so your CSS uses tokens the usual way: A token field outputs the token's variable, ready for a style attribute or your CSS: 6. Check it in the browser Load the page. The section should take the Dark scheme's colours. If it doesn't: Is the stylesheet loading? View the page source: there should be a that opens in the browser. Is the attribute there? The should have . Then check the set-up: run . It checks the output folder, the CSS URL and the live build. Next Change a colour in the token file, build again, and reload: every entry follows. The Builds page shows what changed. Token files: labels editors see, tiers, schemes, derived colours, contrast pairs. Deploying: build in your deploy script and keep the live CSS safe. Changing tokens: renaming a token that content already uses. Upgrading Replace both folders, and , with the new ones. Don't keep old files behind. Add-Ons shows an Update button for Variflow Tokens. Click it, or run: Until the update runs, the Tokens pages show a banner asking for it. Your token file, built CSS (in ) and stored values aren't touched by an upgrade. The changelog lists what's new. Related The Tokens fieldtype Templates Troubleshooting","breadcrumb_path":"Getting started","url":"/docs/variflow-tokens/getting-started"},{"page_id":81,"title":"Overview","navigation_title":"Overview","summary":"","headings":["What's in it","Requirements","The guide","Licensing","Support"],"body":"Variflow Tokens brings your design tokens into ExpressionEngine 7. Your token file (W3C DTCG format) lives in your repo. Variflow checks it, compiles it to one stylesheet, and gives editors pickers that only offer your tokens: a section's look (\"Light\", \"Dark\") or a single colour or spacing step. Entries store a reference such as , never a hex code. Change the token file, build, and every entry follows. What's in it Builds: checks the token file (missing references, loops, unknown types, contrast) and compiles it to a hashed stylesheet; publishes only when there are no errors, so a bad file never replaces the live CSS; lets you roll back to an earlier build. The Tokens fieldtype: scheme cards, colour swatches, spacing steps or a dropdown; works in Grid and Fluid; outputs CSS variables ( ) or a scheme attribute ( ). Usage tracking: every stored reference is indexed. A build that would remove a token content still uses stops and says where it's used. Changing tokens safely: rename and deprecate with a patch to commit, an optional rewrite of stored entries, and remapping of removed tokens. Retrofitting: turn an existing stylesheet's custom properties into a draft token file; convert Text Input, Select, Radio and Color Picker fields to Tokens fields, with a review of every value and Undo. Framework maps: a Bootstrap 5.3 preset sets Bootstrap's own variables from your tokens. Grid and layout presets: define the grid (columns, gutter, containers, breakpoints) and layout presets in the token file; an opt-in layout stylesheet renders them, with their reflow, from a attribute. Grid and layout presets Component variants: named looks for a component (a button's Primary, Outline and Ghost) that editors pick by name. Each is right under every scheme, and contrast is checked per variant. Component variants Command line: build, verify, roll back, import, convert and more, for deploy scripts. A command checks your set-up. Integration API for add-on developers: other add-ons can offer Variflow's picker, output tokens as Tokens fields do, and register their own storage so usage tracking, the build guard, renames and remaps cover it. Developers Requirements ExpressionEngine 7.3 or later. PHP 8.2 or later, with the json, mbstring and ctype extensions (standard on most hosts). The database ExpressionEngine 7 itself needs (MySQL or MariaDB). Variflow adds seven tables. Optional: Bloqs 5, for Tokens atoms in blocks. Shell access to run EE's command line is recommended for deploys, but not required: the control panel can build too. The guide Getting started: install, a token file, a build, your first field. Token files: the format, Variflow's extensions, schemes, base files and MSM. The Tokens fieldtype: settings, what editors see, Grid and Fluid. Templates: the CSS tag, values, field tags and schemes in markup. The control panel: each page, and who can do what. Changing tokens: rename, deprecate, the rewrite queue and remap. Retrofitting a site: import from CSS, field conversion, framework maps. Deploying: builds in deploy scripts, auto-build, rollback, environments. Command line: every command, its options and exit codes. Troubleshooting: start with . For add-on developers: Developers, the Integration API (Variflow's picker, template output and usage tracking for content your add-on stores). The same guide is in the control panel under Add-Ons › Variflow Tokens › Docs. Licensing One licence covers one production site, plus any number of development and staging copies of it. Buy it in the ExpressionEngine store, then add its key in Add-Ons › Licences (EE checks it automatically; the status refreshes the next time someone loads a control panel page). A 14-day trial. On a production site without a valid licence, everything works for 14 days, counted from the first time Variflow sees the problem (a new site, or a renewal that lapsed; adding a key resets it). Members who can act on it (super admins, and roles with access to the add-on) see a banner on Variflow's pages counting down the days; they can dismiss it for the browser session. After the trial, a few configuration and import tools stop until a licence is added. Nothing a live site, a deploy or an editor depends on ever stops: Always works Stops after the trial, without a licence Builds, verify and rollback (CLI and control panel), and builds a deploy triggers Saving Settings Template tags and field output Rename and deprecate The Tokens fieldtype and pickers for editors Import: downloading, saving or using the token file Every control panel page (Tokens, Schemes, Builds, Settings, Docs) Field conversion: Convert Remap, the rewrite queue, , and : writing anything Import's review; Field conversion's review and dry run Finishing or undoing a field conversion , , Only EE's statuses that name Variflow as unlicensed ( , ) count. EE's own licence messages about your ExpressionEngine installation (such as or ) never count against Variflow, and neither does \"no status\" ( ). Development hosts are always treated as licensed: , , , , , , , and any you add in : To see what an unlicensed site gets on a development host, set (the trial's banner) or (after the trial). It can only take a licence away, never grant one. The full terms are in LICENSE.md. Variflow's editor components use Lit (LICENSE-lit.txt). Support This guide online: gobison.digital/documentation/variflow. Help and questions: gobison.digital/support or jon@gobison.digital. Version history: CHANGELOG.md. Before you ask for help, run and include its output. Variflow Tokens is made by Bison Digital.","breadcrumb_path":"Overview","url":"/docs/variflow-tokens/overview"},{"page_id":90,"title":"Retrofitting a site","navigation_title":"Retrofitting a site","summary":"","headings":["Import from existing CSS","Convert a field to Tokens","Framework maps: Bootstrap 5.3","Related"],"body":"You don't need to start from scratch. There are three tools for sites that already have CSS and content: Import turns your stylesheet's custom properties into a token file. If your design system is in Figma, Tokens Studio or Sketch, import that instead: see From Figma, Tokens Studio or Sketch. Field conversion moves fields where editors typed colours by hand onto tokens. Framework maps point Bootstrap's own variables at your tokens. Import from existing CSS Add-Ons › Variflow Tokens › Import (super admins). It's also linked from Settings and from the empty Tokens page. Pick CSS: paste a stylesheet, or give the path to a file inside the site folder (up to 1 MB). Review: What gets imported: custom properties on , or become tokens. Properties under a dark-mode selector ( , , , ) become scheme overrides, and becomes a reference. Prefixes: a prefix most names share ( ) is dropped. Per row: rename the token, change its type or tier, or leave it out. Confidence: a value's form ( , ) gives high confidence. A guess (a named colour, a unitless number) gets medium confidence, marked check. Not imported: anything that can't be classified ( , , a property only set inside ) is listed with the reason, and isn't imported unless you pick a type for it. Token file: the draft, with Download and Copy JSON; the command that writes the same file; if the site has no token file yet, the config line to add. Import never writes your token file. Review the draft, add labels and contrast pairs, commit it, then build. From the command line: This writes next to your token file; prints it instead. Reviewing works without a licence; downloading or writing the draft needs one after the 14-day trial (Licensing). Convert a field to Tokens For fields where editors typed hex codes, or picked from a hand-made Select: Text Input, Select Dropdown, Radio Buttons and Color Picker fields, and Grid columns of those types. Pick field: The list shows each field and Grid column you can convert, where it's used, and how many entries have a value. Choose one, and you get the Tokens settings form, pre-filled from what the field holds. Every value names a scheme? Scheme mode. Mostly colours? Token mode, with the colour tokens the values match. Review mappings. One row per distinct stored value: how many entries hold it, the nearest token, the confidence, and Map to. Exact: the same colour (or the token's name, label or value), within ΔE 0.5. High: within ΔE 2. Medium: within ΔE 5. It's pre-filled but outlined amber: check it. Outliers (Low, No value, Unparseable) never map on their own. They become the field default unless you pick a token for them. Keep outliers as raw values is an escape hatch: editors then see those values as unresolved. ΔE is how different two colours look: about 1 is the smallest difference anyone notices side by side. Dry run says how many values and entries would change, and how many revisions would be saved. It writes nothing. Convert: Backup first: the field's current values are saved. The switch: the field becomes a Tokens field with the same short name, and every value is rewritten. Revisions: each changed entry gets a revision where versioning is on. The result has Undo conversion, which puts the old type, settings and values back. A value an editor changed since the conversion is left alone. Templates keep working. now outputs , which works anywhere the old hex worked in CSS. Use where you need the literal value. Things to know: A field's uses inside Fluid are converted with it. Changes during the review: if an entry's value changes after you review, Convert refuses and asks you to review again. Interrupted runs: they show Finish conversion, which carries on where it stopped. Large fields: the control panel converts up to 20,000 values at a time. For more, it gives you the command to run. Licence: reviewing and dry runs are free; Convert needs a licence after the 14-day trial. From the command line: See Command line for every option. Framework maps: Bootstrap 5.3 A framework map sets a CSS framework's own variables from your tokens. With the Bootstrap 5.3 map, , , the button variables and the rest follow your tokens in every scheme. You don't edit Bootstrap's CSS. Then build. The build prints the coverage (\"33 of 45 rules applied\"), and Settings › Framework maps lists the rules it skipped and the token each one needs. Load order: put after Bootstrap's stylesheet. Which tokens it reads: the usual role names, as in the starter and demo files: , , , , , , , and so on. Missing tokens: a rule whose token you don't have is skipped, and Bootstrap's own value stays. The map never fails a build. Dark mode: set Bootstrap's and Variflow's attributes together on a section: Maps never change token values, and they're never licence-gated. Related From Figma, Tokens Studio or Sketch Token files The Tokens fieldtype Command line","breadcrumb_path":"Retrofitting a site","url":"/docs/variflow-tokens/retrofitting-a-site"},{"page_id":86,"title":"Templates","navigation_title":"Templates","summary":"","headings":["The stylesheet","Layouts","A single token","An asset","Token fields","Scheme fields","Component variants","Empty and missing values","In Grid and Fluid","Related"],"body":"Three things go into templates: the stylesheet, the values of individual tokens, and the output of Tokens fields. All of them point at the live build, so a new build restyles every page without changing a template. The stylesheet This outputs , the live build's CSS. Put it in your layout's , after any framework CSS that a framework map sets (Bootstrap, say). outputs the CSS in a tag instead. The file name changes with every build, so browsers and CDNs never serve a stale copy. The previous five builds' files are kept, so a page cached with an older link keeps working. The stylesheet declares every token on , then one block per scheme. Each block matches and the class , and is wrapped in cascade layers ( , , and when the token file has component variants), so your own CSS wins without fighting specificity. Layouts When the token file has a grid and layout presets, a second, opt-in stylesheet renders them: outputs a to the live build's layout stylesheet ( for a tag). It's a separate tag so each tag outputs one stylesheet, and only pages that want layouts load it. With no grid in the token file it outputs nothing. It's small (a few KB), and cached and versioned with the build like the token CSS. Three attributes do the rest; there are no classes to learn: Attribute A CSS grid on with between columns. Its children take the preset's spans, its tablet spans from , and stack below. With more children than spans the pattern repeats, so eight items in a make two rows. , , Centred, at most or wide, with the gutter as side padding. is edge to edge, without padding. While the items are stacked, the last comes first. Put a sidebar or image after the main content in the markup, and it still leads on phones. Widths that aren't a preset: each child gives its own span in whole grid columns, . They stack below and take their spans from there. Variflow Builder's column dividers make these; you can write them too. Nesting: layouts nest, and each one reflows by its own width, not the screen's: they're CSS container queries, so a 6/6 inside the narrow column of an 8/4 stacks as it would on a phone. A layout needs a width from its parent (a block, or a grid cell, as here); inside a flex row, give it . Breakpoints are written in as the build's values, since queries can't read CSS variables. Change a breakpoint in the token file and rebuild. Browsers: container queries work in every current browser (Chrome and Edge 105, Safari 16, Firefox 110, all from 2022–23). An older browser shows every layout stacked, which still reads. Schemes: the layout stylesheet sets no colours, and a scheme that changes the gutter or a container width changes the layouts inside it. Your CSS wins: the rules are in the cascade layer. Override the gap of the rows with , or align items with , in your own CSS. Don't change or : that's the gutter between every column. A single token gives the resolved value, without as has it. Use it where CSS variables don't work: an email, a . Renamed tokens: old names keep working through the token file's . Nothing to show: with no live build, or a name that doesn't exist, the tag outputs nothing and notes why in the template debugger. An asset A logo or other file from the token file's assets: : (the default), or . Paths starting with get the site's URL. : takes , , and . on the tag replaces the asset's alt text. : prints an file's markup, so takes the text colour around it. It works only for files under the site root. Variflow adds and from the alt text, or for a decorative asset. A file with script, event attributes, or links or s to anything outside itself is refused: the tag outputs nothing and the template debugger says why. : that scheme's file. Without it, the default scheme's, as has it. An inline or logo doesn't follow the way CSS does. Use the CSS variable for that, or output one per scheme. As a pair: , , , (as written in the file), and . EE treats a single as the start of a pair when a follows it anywhere in the template. So don't use the single and pair forms in one template, or put the pair in an embed. Nothing to show: with no live build or an unknown name, the tag outputs nothing and notes why in the template debugger. never answers for an asset. Token fields For a token field, : Tag Output For a typography token: . A typography token needs : font-family, font-size, font-weight, line-height or letter-spacing. , the resolved value. It's fixed when the page renders, so prefer the in cached templates (renames followed) Scheme fields For a scheme field, : Tag Output : put it inside an element's opening tag (the CSS matches this class too) Schemes nest: a Light card inside a Dark section is Light. Component variants When the token file gives a component variants, the attribute picks one: the component's key, a colon, the variant's name. Style the component once, with its tokens; the attribute changes their values. Several components, one element: separate them with spaces. Each applies to its own component's tokens. Scopes like a scheme: everything inside the element takes the variant, so put it on a wrapper to restyle every button in it. Nesting, in any order: a variant inside a Dark section uses Dark's colours; a Dark section inside an Outline wrapper keeps Outline, in Dark's colours; an inner variant of the same component wins. No attribute means the default variant. Write it out ( ) to reset an outer variant. For a variant field, (Variant mode): Tag Output : the attribute's value, so several can share one attribute Empty and missing values Empty: the field's default is output. A saved value that's no longer in the live build: the default is output. No default: nothing is output, never a broken . Renamed tokens keep working through the token file's . For conditionals, compare the output rather than the field: see About . In Grid and Fluid The same tags and modifiers work on Grid columns and on fields inside Fluid: Related The Tokens fieldtype Token files: schemes, component variants and how they compile. Retrofitting a site: framework maps for Bootstrap.","breadcrumb_path":"Templates","url":"/docs/variflow-tokens/templates"},{"page_id":88,"title":"The control panel","navigation_title":"The control panel","summary":"","headings":["Who can do what","Tokens","A token's page","Schemes","Assets","Builds","Import and Field conversion","Settings","Docs","Multi Site Manager","Related"],"body":"Add-Ons › Variflow Tokens has these pages: Tokens, Schemes, Builds, Import, Field conversion, Settings and Docs. They show the current site's live build and how content uses it. They never change token definitions: the token file in your repository is the only place tokens are defined. Where a page changes a token (Rename, Deprecate), it hands you a patch to commit. Who can do what Action Who See the pages Any role with access to the add-on (Roles › CP access › Add-ons) Rebuild from file, roll back Super admins Remap removed tokens; cancel or retry queued changes Super admins Rename, deprecate Super admins, on a licensed site or during the trial Save settings Super admins, on a licensed site or during the trial Import: read CSS and review Super admins Import: download or copy the token file Super admins, on a licensed site or during the trial Field conversion: pick, review, dry run, finish, undo Super admins Field conversion: convert Super admins, on a licensed site or during the trial Every action checks permission on the server, not only by hiding buttons. \"During the trial\": the 14 days an unlicensed production site gets (Licensing). Tokens Every token in the live build, 50 to a page: Filters: tabs by tier (primitive, semantic, component), and filters for type, status (active, deprecated, pending) and group. Search: over names, labels and values. Bookmarkable: the filters are part of the URL, so a filtered list can be bookmarked or shared. Column Shows Preview A colour square, a length bar, a radius corner, \"Aa\" in the typeface, a shadow tile, or the value Label / token The label editors see, the token name and its tier Value The value on ; \"Varies in N schemes\" links to Schemes Alias of The token this one points at Entry refs How many places in content use it directly; the line under it counts indirect use Status Active, Deprecated (with its replacement), or a pending rename or deprecation A strip above the list shows the live build, its file hash and counts, and links to Builds. A red strip appears when the newest build failed. Component variants: when the list includes a group with variants (filter by the group, say), a strip names each group's variants, with how many times content picks each. Click one to see that group's tokens with the variant's values: \"Outline value\" marks a token the variant overrides, \"follows Outline\" one that changes with it (a derived hover). The default variant shows the tokens as they are. A token's page Click a token's label: Alias chain: what it resolves through, and what aliases it. Per scheme: its value in each scheme on that scheme's surface, with the contrast results of every pair it's in. A pair a component's variants change shows each variant's result (\"with button:outline\"). Usage: every entry, field, Grid cell and Fluid field that stores it, filterable, with Export CSV. Value: HEX, RGB, OKLCH, the CSS and the template tag, each with Copy. Source: the file and line that define it. Rename… / Deprecate…: see Changing tokens. Schemes One card per scheme, each showing the same sample section in that scheme's colours. Each card shows: how many sections use the scheme; whether it's the default; its contrast result; the tokens it overrides. Compare overrides puts every overridden token against every scheme in one table. Assets Logos, marks and other images, added and changed without editing the token file. Each card shows: a preview, the file and its alt text; where it comes from: Token file, Added here, or Replaced here (a token file's asset with another file put in its place on this page); each scheme's own file, if any; the templates that name it; Copy tag and Copy CSS. Add asset opens a form with ExpressionEngine's own file field, so you can drop a file in, upload one, or choose one from the File Manager. You can also type a path (a theme folder) or an address. Name: leave it empty and it's named after the file ( is ). Alt text: or tick decorative. A different file per scheme: for a reversed logo under Dark, for example. Save checks the file is on the server, then builds at once, so the change is live when the page comes back. A save that would break the build is put back and the reason shown. Edit: changes an asset added here. Its name can change too; templates that use the old name then output nothing. Replace: gives a token file's asset another file. Its name stays. Undo replacement: goes back to the token file's file. Remove: deletes an asset added here, after warning you which templates name it. A token file's asset can only be removed in the file. What this page saves goes in the assets file, beside the token file: gets . The token file itself is never written. Commit the assets file with the token file; see The assets file. Changing assets needs a super admin. Builds Rebuild from file: runs the same build as . A failed build: a banner leads with what it means (\"Build #48 was not published. Build #47 is still live.\"), then the cause and the fix. Removed tokens that content still uses are listed with their use counts, and Remap usage… offers a way out. Copy CLI output copies what the command line would print. Diff: the newest build against the one before it: removed, changed (colours and sizes drawn before and after), renamed, deprecated, added, and scheme changes, each with how much content it touches. History: every build, each with its report and diff. A recent build that still has its files offers Roll back to #N. Layout presets: when the token file has a grid, a build's page lists its presets: each one's spans drawn as a bar of columns (and its tablet spans under it), where it stacks, and the narrowest slot it fits in. Defaults marks presets Variflow supplied because the file lists none. Component variants: a build's page lists each component's variants, the value that applies each, how many tokens it overrides, and whether its contrast pairs pass. Queued changes: renames and deprecations waiting for the token file or a build, with Cancel and Retry. Import and Field conversion Import turns a stylesheet's custom properties into a draft token file, in three steps: pick CSS, review, download. Field conversion moves an existing Text Input, Select, Radio or Color Picker field onto tokens, in three steps: pick, review, convert. Both are in Retrofitting a site. Settings Read-only: the token file, base file, prefix, output folder and output URL. They come from only, because they differ between local, staging and production while the database travels between them. Each has a Copy button for its config line. Editable per site: Setting Config key Default Automatic builds On for development hosts, off elsewhere Contrast checks Warnings Builds to keep 5 A value set in always wins, and shows as \"Set in config.php\". Framework maps: each configured map with its coverage (\"33 of 45 rules applied\") and the rules it skipped. System: versions, licence, the picker assets and the site. Docs This guide, inside the control panel. Multi Site Manager Every page shows the current site only: its token file, builds, usage and settings. Switch sites with EE's site switcher. Related Changing tokens Deploying","breadcrumb_path":"The control panel","url":"/docs/variflow-tokens/the-control-panel"},{"page_id":87,"title":"The Tokens fieldtype","navigation_title":"The Tokens fieldtype","summary":"","headings":["Setting up a field","Variant mode","What editors see","Saving","Grid and Fluid","Bloqs","The usage index","About","Related"],"body":"A Tokens field lets an editor pick a scheme (a whole section's look), a single token (a background colour, a spacing step, …) or a component's variant (a button's Outline look). The entry stores only a reference, such as , or , never a value. Templates output CSS that points at the live build, so the next build restyles every entry without anyone re-saving it. Setting up a field Create a field of type Tokens in Fields: on its own, as a Grid column, or for use inside a Fluid field. Setting What it does Mode Scheme picker (recommended): Light, Dark, …, and every colour in the section follows. Token picker: one token. Variant picker (1.3.0): one of a component's variants, such as Primary, Outline or Ghost (below). Component Variant mode: the component group whose variants editors choose between. Allowed schemes Scheme mode: which schemes editors may pick. All ticked means \"all\", including schemes added later. Filters Token mode: tier, type and groups, combined (a token must match all three). + Spacing and + Radius fill in the and groups. An explicit list (one token per line) overrides the other filters. The preview shows exactly what editors will be offered. A rename with rewrite, a swap or a remap updates the explicit list and default for you (Changing tokens); filters are never changed. Default value Used when the field is left empty, and when a saved value is no longer in the live build. Display style Swatches, cards or a dropdown. Grid and Fluid always use the compact picker. Deprecated choices On (recommended): deprecated tokens aren't offered for new choices. Entries that already use one keep rendering it, and editors are nudged to the replacement. Template output A reminder of the tags this field outputs. The choices come from the live build. Until there's one, the field shows a notice and keeps any value it already has. Good starting points: A section's look: scheme mode, all schemes, default Light. A section background: token mode, type Color, groups , tier Semantic. Spacing: token mode, + Spacing, display Swatches. A button's style: variant mode, component Button, default Primary. Variant mode When the token file gives a component variants, a Variant field lets editors choose the component's look by name: Primary, Outline or Ghost for a button, Raised or Flat for a card. Pick the Component in the field's settings, and a Default (usually the group's default variant). Editors see a card per variant: the component drawn in that variant's colours on the page surface, with its label and description. Grid and Fluid use the compact row; the dropdown display works too. Swatches don't apply. It stores the variant's reference, , and the tag outputs that value for the attribute (Component variants). outputs the label, the name. Validation: a new value must be a variant of the field's component in the live build. The build guard covers variants as it does tokens: a token file that removes a variant entries still use is refused, and the failed build's Remap offers the component's other variants. Renaming a variant is the same as removing it: remap, or keep the old name until entries move. Works on its own, as a Grid column, inside Fluid and as a Bloqs atom, like the other modes. What editors see Editors pick from previews of the live values, never token names: Schemes: cards drawn in each scheme's own colours. Variants: cards with the component drawn in each variant's colours. Colours: swatches; translucent ones sit on a checkerboard. Long colour lists (13 or more, 1.3.0): the swatches are grouped the way the token file is. With choices from , editors see Action, Surface, Text, … (the group's when the file gives one), each a heading that opens and closes. Colour ramps ( … ) gather in a Palette group, one compact strip per hue in step order; Palette starts closed, unless the value is in it. The current value and the default are pinned on top (\"Current: Primary\"), so a choice in a closed group is never out of sight. From 25 choices there's a Filter box: it matches labels and token names, and opens the groups that match. The swatches are still one radio group: arrow keys move across every swatch that's showing, whatever its group. Sizes: spacing steps drawn at their size, and radii as corners. Typography: \"Aa\" in the token's font. Grid and Fluid use a compact row of small swatches, or a segmented row for sizes. Tokens the file marks hidden are never offered. An entry that already uses one keeps it: the picker shows it as the current value, and it saves unchanged. State Shown as Default (nothing chosen) A dashed ring on the default, and \"Using the default: Light.\" Selected A solid ring, a check on scheme cards, and a bold label A retiring choice in use A dashed amber ring and \"!\", \"'Forest' is being retired…\", and Switch to … when the replacement is available The saved choice was removed The default with a dashed red ring and \"?\", \"The saved look was removed. Showing Light until you pick one.\", and Choose a look Read-only Dimmed and locked: \"Locked. Ask your site admin to change this.\" Use the default (…) goes back to the default (or Clear, when there's none). The pickers follow the control panel's light and dark themes and work from the keyboard: arrow keys move, and Space or Enter picks. Without JavaScript they fall back to plain radio buttons or a dropdown. Saving A new value must be one of the field's current choices (so never a hidden token). A value that hasn't changed always saves, even if its token has since been deprecated or removed, so editors can always save the rest of the entry. Grid and Fluid Tokens fields work as Grid columns, inside Fluid fields, and in Grids inside Fluid. Each cell is tracked separately in the usage index, so renames, conversions and the Usage list on a token's page all see them. Bloqs Tokens works as an atom in Bloqs 5 blocks, with every safety feature that covers channel fields. Bloqs is optional: without it, nothing changes. Set-up. In Bloqs' block definition editor, add an atom of type Tokens. Its settings are the same as a Grid column's: scheme or token picker, allowed schemes, types, groups and a default. Publishing. Editors get the compact picker in each block, including new, cloned, reordered and nested blocks. Templates. Atoms take the same tags and modifiers as a field, inside the block's tag pair: What Variflow tracks. Usage: each Tokens atom is recorded in the usage index when the entry saves, and the token's page lists it as \"Field › Block › Atom, block N\". Drafts: a token used only in a draft block is still in use. A build won't remove it, and the token's page labels those uses Draft. Deleted blocks and definitions: their uses drop out of the index the next time usage is read. Renames, deprecations and remaps rewrite Bloqs atoms too. Undo for those works differently from channel fields: see Changing tokens. Not covered. Field conversion doesn't convert Bloqs atoms. To move a Color Picker atom to Tokens, add a Tokens atom to the block and re-pick the values. Bloqs 4 and earlier aren't supported. Doctor warns when it finds one. The usage index Every saved reference is recorded, per entry, field, Grid cell, Fluid instance and Bloqs atom. That's how: a build knows not to remove a token content still uses; the Tokens page counts uses; a token's page lists exactly where it's used. The index is updated when entries are saved or deleted. To rebuild it from the stored data, for example after importing entries straight into the database: About An empty Tokens field stores a single space, which means \"use the field's default\". ExpressionEngine doesn't call a fieldtype for an empty value at all, so this is how the default gets output. As a result is always true. Test the output instead: Related Templates: every tag and modifier. Retrofitting a site: converting an existing field to Tokens. Changing tokens","breadcrumb_path":"The Tokens fieldtype","url":"/docs/variflow-tokens/the-tokens-fieldtype"},{"page_id":84,"title":"Token files","navigation_title":"Token files","summary":"","headings":["Where it lives","Tokens and groups","What editors see: labels","Hiding tokens from editors","Groups in pickers","Tiers","Schemes","Assets","The assets file","Derived colours","Contrast pairs","Component variants","Deprecating and renaming","A shared base file","Multi Site Manager","Grid and layout presets","What a build checks","Related"],"body":"Your tokens live in one JSON file per site, in the W3C Design Tokens (DTCG) format. Anything Variflow-specific goes under , so other DTCG tools read the file unchanged. The file is the source of truth: the control panel reads it but never writes it. Where it lives by default. Set another location in : Paths are relative to the site root, or absolute. Keep the file in your repository. Tokens and groups Names and references: a token's name is its path, . A reference points at another token: . is inherited from the group. Supported types: , , , , , , ; (a composite: , , , , ). Other types are reported as warnings and skipped; they never stop a build. Value forms: both DTCG 2025.10 objects ( , colour objects with ) and the older string forms ( , ) are accepted. Tokens Studio exports are read too. Their themes aren't read from a token file; (or Import › Design tokens) turns themes, and Figma's modes, into schemes, and infers labels, tiers, contrast pairs and hover rules from your naming. See From Figma, Tokens Studio or Sketch. Each token compiles to a CSS custom property: becomes . Change the prefix with . What editors see: labels Editors never see token names. They see , or a readable version of the name (\"Surface default\") when there's none. Give the tokens editors pick from proper labels. Hiding tokens from editors Some tokens are only for templates: the colours that draw placeholder art, a mix target, an internal shade. Mark them hidden and no picker offers them (Tokens fields, page builders): Where: on a token, or on a group, which hides every token in it, at any depth. A token (or a group) inside a hidden group can say to be offered again. The value is or ; anything else stops the build, with its line. Still a token: a hidden token compiles to its CSS custom property, resolves, can be referenced, and appears in the control panel, as before. Content that already uses one keeps working: the picker shows it as the current value, and it saves unchanged. Editors just can't choose it anew. Groups in pickers A picker with many choices groups them by the file's structure: with choices from , is one group and another. Each group is headed by its when it has one (\"Actions\"), or its name (\"Action\"); its is the heading's tooltip. Numbered ramps ( … ) become a Palette group, one strip per hue, in step order. Within a group, choices keep the order of the file. See What editors see. Tiers Each token is a primitive (a raw value: ), semantic (a role: ) or component ( ). Fields can be limited to a tier, so editors pick roles rather than raw palette colours. If you don't set a tier: a literal value is primitive, and a reference is semantic. Set one with on a token or on a group. A token inherits its group's tier. Schemes A scheme is a named set of overrides: the same token names with different values. A section marked takes the Dark values, and so does everything inside it. Schemes can nest. The compiled CSS declares, in each scheme block, every token whose value differs in that scheme, including tokens that depend on an overridden one. So aliases follow the scheme without any work on your part. Assets A logo isn't a design token: DTCG has no type for a file. Assets give such files a home in the token file anyway. Each one is named, can change per scheme, and reaches both templates and CSS. Declare them under the root's , beside the schemes. A scheme swaps a file in its own : Names: lowercase letters, digits and , starting with a letter. Dots group: . : a path from the site root, starting with , or an URL. A plain string is shorthand for . : the text an or inline SVG gets. marks the asset as decorative. Leave it out and a labelled asset gets a warning. Schemes may swap only assets declared at the root. A scheme that doesn't swap one uses the asset's own file. A shared base file: the site file's asset replaces the base's of the same name, and scheme swaps merge per asset. Each asset compiles to a custom property, . A swapped asset is declared again in every scheme block, so it follows like a token. shows the reversed logo inside a Dark section. The CSS keeps the path as written. If the site lives in a subfolder, in a stylesheet means the domain root, so use an URL there. Templates output assets with . The assets file The control panel's Assets page never edits the token file. It saves to a file of its own beside it, named after it: gets , and gets . It's a token file that holds only assets and schemes' asset swaps, in the same shape as above, so an entry can be moved into the token file as it is. Builds lay it over the token file. Its assets replace the token file's of the same name, and its swaps merge per scheme and asset. It only holds assets. Anything else in it (tokens, overrides, settings) is left out with a warning, and so are swaps for a scheme the token file doesn't have. It's part of the build. Verify and build check it like the token file and name it in errors, and a change to it counts as a change for auto-build and for \"the file has changed since\". Deploying: commit it with the token file. The page deletes it when its last asset goes, so a site without one builds exactly as from the token file alone. Derived colours A hover or pressed shade that follows its base colour in every scheme: What it compiles to: . : , , , a hex, or a token reference. : from 0 to 1, the share of . : (the default), or . : a static fallback for other tools; Variflow ignores it. A scheme may override a derived token, which replaces the mix in that scheme. Mixing toward a token. When is a reference, the mix follows that token in every scheme. The demo set darkens buttons in light schemes and lightens them in dark ones with one token, (black in Light, white in Dark), that each scheme overrides: That compiles to , declared again in every scheme block, so a Light card inside a Dark section gets Light's hover. Translucent colours. with 0.9 gives the base colour at 10% opacity: shadow colours, scrims and tints stay tokens instead of hand-typed . Contrast pairs The rules: needs 4.5:1, and needs 3:1 (WCAG 2.x). Every scheme: each pair is checked in each scheme. What a failure does: a failing pair is a warning, unless you set ; then a failing pair blocks the build. Translucent colours: a translucent foreground is mixed over its background first. Component variants: a pair with a token that variants change is checked in every scheme × variant combination, and a failure names it (\"in scheme \"dark\" with button:ghost\"). Component variants A variant is a named look for one component: Primary, Outline or Ghost for a button. Editors pick the name (a Variant field or a page builder's inspector), never a colour. A variant is a set of overrides on one component group, applied where an element says , exactly as a scheme is for the whole set where an element says . Where: on a group under ( , ), not on itself, and not inside another group that has variants. Its key is the path after : , . The key is reserved. Names are slugs (lower-case letters, digits and ), unique in the group. is what editors see (the name, capitalised, when there's none); shows under it on the picker's cards. The group's own names the component (\"Button\"). must name one of the variants. The default is the group's own values: what an element without the attribute shows. So it has no overrides; change the tokens themselves. Overrides may only change tokens inside the group, and must keep each token's type. Values are written as anywhere else: a reference ( ) or a literal. A reference resolves as usual, so a variant stays a choice between semantic tokens and every scheme still applies. Derived colours follow. A derived token in the group (the hover above) recomputes from the variant's values, so Outline's hover is Outline's fill mixed, in every scheme. A variant may also override a derived token outright. Schemes set colours; variants choose between them. A scheme can't override a token a variant changes (the build says which); override the semantic token it refers to instead. Not yet: typography composites (give the group a font-size or font-weight token instead), and variants on groups outside . In markup, the attribute names the component and the variant; several components can share an element, and the tokens are the same variables whatever the variant, so partials need no change (Variants in templates): Nesting works in every order: a variant inside a Dark section takes Dark's colours; a Dark section inside an Outline element stays Outline, in Dark's colours; a variant inside another variant of the same component wins, and resets what the outer one changed. What it compiles to: a layer after the schemes, with one block per variant, , re-declaring what the group's variants change. Values stay references, so they resolve where they're used. For a scheme section nested inside a variant, each scheme block carries small \"space toggle\" helpers for the tokens variants override, so it evaluates the active variant's value with its own colours. Only tokens a variant changes get them; a token file without variants compiles exactly as before. Renames and content. Renaming a token rewrites variant overrides that refer to it (and the override's key, when it's the token a variant overrides). A variant's reference ( ) is what fields and page builders store: usage counts it, and the build guard refuses a token file that removes or renames a variant content still uses, as it does for tokens. The failed build's Remap screen then offers the component's other variants. Deprecating and renaming Deprecate: (or ). Editors stop being offered the token, and entries that use it keep working. Rename: use the CP's Rename, which writes the patch for you. The old name is kept under , so content that stores it keeps resolving: See Changing tokens. A shared base file Several sites (or an MSM install) can share a base file. Each site's file is merged over it: Multi Site Manager Each site has its own token file, builds, usage index and settings. Override any setting per site under , keyed by the site's short name: A field's choices come from its own site's live build. Grid and layout presets A token file can define the site's grid: its columns, gutter, content widths and breakpoints, and the layout presets pages are built from (\"full\", \"8 / 4\", \"three across\"). Editors pick a preset, never column spans; how it reflows on smaller screens comes from the file too. The tokens are ordinary number and dimension tokens, found by their names: : the column count (a whole number); : the space between columns, usually a reference to a token; and (optional): content widths; (optional, default 1): the narrowest an item may be, in columns; , and , in px or rem, each wider than the last. Add more ( ) if presets need them. They compile like any token: , , , , … turns the grid on. A file without it builds exactly as before. With it but without the gutter and the three breakpoints, the build warns and there's no grid yet. Schemes may change the gutter and the containers (a roomier scheme, say). They can't change , or a breakpoint: those are fixed when the site builds, because CSS media and container queries can't read custom properties. Trying is a build error. Presets go in on the group: Field Unique; letters, digits, , and ( , ). Templates use it: . What editors see. Defaults to the name. One per item, in columns. They must add up to , and none may be below . A breakpoint name (default ). Below it, the items stack, one per row. Optional spans used from until , one per item. They wrap into rows, and each row must add up to : is two side by side, then one full width. So a 3-across with stacks below , shows two and one from , and three across from . No presets? You get the defaults for your column count: with 12, , , , , and (both wrapping two to a row on tablets), leaving out any with a span below . The build report and say when you're on the defaults. Fit: each preset gets a fit width, the narrowest slot (in columns) it fits in when it's nested, so that no item is narrower than . With 12 columns and 3, an 8/4 needs 9 columns and a 4-across needs all 12. A page builder offers only the presets that fit (see Developers). Errors name the preset and its line: spans that don't add up, a span below , a duplicate name, a that isn't a breakpoint, tablet spans that don't fill whole rows. To use the presets in templates, see Layouts. The build page lists them, with a diagram of each. What a build checks Errors stop the build: invalid JSON or structure; a reference to a token that doesn't exist; a reference loop; two tokens that compile to the same CSS name; removing a token content still uses (unless points it somewhere); an invalid grid token or layout preset, or a scheme that changes the column count or a breakpoint; an invalid component variant: an override outside its group, of the wrong type or to a token that doesn't exist, a missing default, a scheme that overrides what a variant changes, or removing a variant content still uses; a that isn't or ; an asset with an invalid name or value, a file that isn't there under the site root, or a scheme that swaps an asset that isn't declared. Warnings don't stop it: contrast failures; deprecated tokens still in use; unsupported types; a labelled asset without . runs the same checks without publishing. Related Getting started Templates Deploying","breadcrumb_path":"Token files","url":"/docs/variflow-tokens/token-files"},{"page_id":93,"title":"Troubleshooting","navigation_title":"Troubleshooting","summary":"","headings":["Start with variflow:doctor","The section doesn't change colour","My CSS didn't change after a deploy","A build failed with","A build failed with another error","The picker shows plain radio buttons","The field says \"Tokens aren't built yet, so there's nothing to choose from\"","Editors see \"The saved look was removed\" or \"Saved choice not found\"","The publish form won't save a Tokens field","\"Variflow Tokens needs its update\"","Convert is disabled, or Rename and Deprecate are missing","\"Couldn't write the build files\"","A build says a token is in use, but I can't find it","The usage counts look wrong","Related"],"body":"Start with variflow:doctor It checks the whole set-up and prints one line per check: : fine. : works, but worth a look. : needs fixing. Every line that isn't comes with what to do (→). Include the output whenever you ask for help. Add to time a build. The section doesn't change colour Check the stylesheet loads. View the page source: the should have from , and it should open in the browser. No link: there's no live build yet. Run . The link returns 404: the build's files are missing from the output folder. Run to write them again, or check that matches . Check the attribute is there. The element should have : put inside the opening tag. Check your CSS uses the tokens. A scheme only changes token values, so your CSS has to use the tokens ( ). Your own rules win over Variflow's layers. My CSS didn't change after a deploy Did the build run? prints \"Published build #…\", or \"Unchanged\" when the output is the same as the live build. A cached page? The CSS file name changes with every build, so a cached page keeps the old link until its cache clears. Did the build fail? It says so, and the previous build stays live. The Builds page explains the error. A build failed with The new token file removes tokens that content still uses. The error lists each token and how many places use it. Either: Rename it properly (the old name keeps resolving): use Rename… on the token's page in the old build, and commit the patch. Remap it: Builds › Remap usage… moves content onto replacements, then rebuild. Add it to : put the old name under , pointing at its replacement. See Changing tokens. A build failed with another error lists every error with the file and line, for example a missing reference or a reference loop. Fix the file and build again. Until then the previous build stays live. The picker shows plain radio buttons The editor components in didn't load. Check that the folder was uploaded with the add-on (Doctor reports \"Picker assets missing\"). If it's there, hard-reload the control panel (⌘⇧R / Ctrl+F5). The plain controls still save correctly. The field says \"Tokens aren't built yet, so there's nothing to choose from\" There's no live build. Run , or Rebuild from file on the Builds page. Any value an entry already has is kept meanwhile. Editors see \"The saved look was removed\" or \"Saved choice not found\" The entry stores a token or scheme that the live build no longer has. It renders the field's default until an editor picks again. To fix many entries at once, remap the removed token (Builds › Remap usage…) or add it to . After a conversion with the escape hatch on, the raw values kept are shown this way too. The publish form won't save a Tokens field A new value must be one of the field's current choices in the live build. If the field's filters changed, or the token was removed, pick another value. An unchanged value always saves. \"Variflow Tokens needs its update\" The add-on's files are newer than its database. Click Update under Add-Ons, or run . Pages that need the new tables say so until then. Convert is disabled, or Rename and Deprecate are missing Your role: these need a super admin. The licence: after the 14-day trial, Convert, Rename, Deprecate, Settings and Import's download need a licence (Licensing). Doctor shows the licence status and the trial's days left. Without a licence, reviews and dry runs still work. \"Couldn't write the build files\" The output folder ( by default) isn't writable by the user PHP runs as. The message names that user. Make the folder writable by both the web server and the user that runs the command line. A build says a token is in use, but I can't find it Look at the token's page: the Usage list names every entry, field and Bloqs block that uses it. Two places are easy to miss: Bloqs draft blocks count as uses (labelled Draft). Delete the draft block, or change its value, then build again. Bloqs 4 isn't supported, so its atoms aren't tracked at all. Doctor warns about this. Other add-ons' content (a page builder that registers a content source) is listed with that add-on's own description. Doctor's Content sources line shows each source and how many references it holds; Content sources skipped means an add-on's source couldn't be used, so its content isn't protected until that add-on is fixed. Usage from unknown sources is left by an add-on that's been removed: clears it. The usage counts look wrong Entries imported straight into the database don't go through EE's save, so the usage index doesn't know about them. The same goes for Bloqs blocks written by an import tool. Rebuild it: Related Getting started Deploying Command line","breadcrumb_path":"Troubleshooting","url":"/docs/variflow-tokens/troubleshooting"},{"page_id":6,"title":"Variflow Tokens License","navigation_title":"License","summary":"","headings":["Variflow Tokens Commercial License Agreement","1. License Grant","2. Development and Staging","3. Licensing and Versions","4. Permitted Use","5. Restrictions","6. Client Projects","7. Ownership","8. Your Tokens and Output","9. Third-Party Software","10. Your Content and Data","11. Updates and Support","12. Termination","13. Disclaimer of Warranty","14. Limitation of Liability","15. Changes to This License","16. Contact"],"body":"Variflow Tokens Commercial License Agreement Version 1.0 Copyright © 2026 Bison Digital. All rights reserved. This Commercial License Agreement (\"License\") governs the use of Variflow Tokens (\"Software\"), an add-on for ExpressionEngine developed and distributed by Bison Digital. 1. License Grant Subject to the terms of this License and payment of the applicable license fee, Bison Digital grants you a non-exclusive, non-transferable license to install and use Variflow Tokens on one production ExpressionEngine website for each license purchased. A \"production website\" is one ExpressionEngine installation serving a public domain, including its subdomains and language versions run from the same installation. One installation counts as one production website, including every site it serves through Multi Site Manager. 2. Development and Staging Each license also covers any number of local, development and staging copies of the licensed website, provided they are used only to build, test or maintain that website and are not publicly offered as a separate site. 3. Licensing and Versions Each license applies to the website it was purchased for and is validated by ExpressionEngine's add-on licensing. A production website that uses Variflow Tokens without a valid license may use it fully for a 14-day trial, during which the control panel displays a notice. After the trial, some configuration and import tools in the control panel and command line need a license, as described in the documentation at https://gobison.digital/documentation/variflow. The Software is not disabled: builds, template output and the fields editors use keep working. Bison Digital may change the pricing, licensing model, features, support terms or availability of future versions of Variflow Tokens. A version of Variflow Tokens lawfully obtained under this License may continue to be used under the terms that applied to that version. Major future releases may require the purchase of a new license, upgrade or other commercial arrangement. This License does not guarantee access to future major versions, premium features, services, updates or support. 4. Permitted Use You may: Install and use Variflow Tokens on websites you have licensed, including websites you own, manage, or build for clients. Use Variflow Tokens in commercial website development projects. Modify Variflow Tokens for the purposes of integrating it into a website for which you are licensed. Make reasonable backup, development and staging copies associated with licensed installations. 5. Restrictions You may not: Install Variflow Tokens on more production websites than you hold licenses for. Sell, sublicense, publish, distribute or redistribute Variflow Tokens as a standalone product. Repackage Variflow Tokens and offer it as your own add-on, product, library or development tool. Make Variflow Tokens available for download or distribution to third parties except as necessary to deliver a licensed client website. Remove, bypass or interfere with Variflow Tokens' license checks or license notice, or remove or obscure copyright, licensing, attribution or proprietary notices contained within the Software. Use Variflow Tokens or substantial portions of its source code to create and distribute a competing design token product or ExpressionEngine add-on. Claim ownership or authorship of Variflow Tokens or any portion of the Software owned by Bison Digital. 6. Client Projects You may include Variflow Tokens as part of a completed ExpressionEngine website delivered to a client, provided that website is licensed. The client may use Variflow Tokens as part of that website but does not receive the right to separately redistribute, resell, sublicense or repackage Variflow Tokens. A license may be transferred with the website it was purchased for, for example when a client takes over hosting, where ExpressionEngine's licensing allows it. 7. Ownership Variflow Tokens is licensed, not sold. Bison Digital retains all right, title and interest in Variflow Tokens, including its source code, interface, documentation, branding and other original materials, except for third-party components identified separately. No ownership rights are transferred under this License. 8. Your Tokens and Output Your token files, the CSS and manifests Variflow Tokens generates from them, and the content stored in your entries belong to you. They are not part of the Software, and you may keep and use them after this License ends. The demo token file included with the Software may be used and adapted freely on licensed websites. 9. Third-Party Software Variflow Tokens incorporates third-party components, including Lit (BSD 3-Clause License, included as ). Third-party components remain subject to their respective licenses and copyright notices. Nothing in this License is intended to restrict rights granted by, or override obligations imposed by, those third-party licenses. 10. Your Content and Data Variflow Tokens runs on your server. It does not send your content, token files, settings or visitor data to Bison Digital. License validation is handled by ExpressionEngine. 11. Updates and Support Unless separately stated by Bison Digital, this License does not guarantee technical support, maintenance, updates, compatibility updates, new features or future releases. Bison Digital may discontinue support or development of any version of Variflow Tokens at its discretion. 12. Termination Your rights under this License terminate automatically if you materially violate its terms. Upon termination, you must stop using Variflow Tokens on unlicensed websites and stop distributing or creating new installations of it. Bison Digital may provide an opportunity to remedy a violation before termination where appropriate. 13. Disclaimer of Warranty THE SOFTWARE IS PROVIDED \"AS IS\" AND \"AS AVAILABLE,\" WITHOUT WARRANTIES OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT, TO THE MAXIMUM EXTENT PERMITTED BY LAW. 14. Limitation of Liability TO THE MAXIMUM EXTENT PERMITTED BY LAW, BISON DIGITAL SHALL NOT BE LIABLE FOR ANY INDIRECT, INCIDENTAL, SPECIAL, CONSEQUENTIAL, OR PUNITIVE DAMAGES, OR FOR LOSS OF DATA, REVENUE, PROFITS, OR BUSINESS ARISING FROM THE USE OF OR INABILITY TO USE VARIFLOW TOKENS, INCLUDING CHANGES MADE TO STORED ENTRY DATA BY RENAME REWRITES, REMAPS OR FIELD CONVERSIONS. YOU ARE RESPONSIBLE FOR KEEPING BACKUPS OF YOUR WEBSITE AND DATABASE. 15. Changes to This License Bison Digital may publish different licensing terms for future versions of Variflow Tokens. Changes to the license for a future release do not retroactively alter the license granted for a version you previously obtained unless you expressly agree to the new terms. 16. Contact Questions regarding commercial licensing, multi-site or agency licensing, redistribution, OEM use, or other uses not permitted by this License may be directed to Bison Digital at jon@gobison.digital. Documentation, including this License, is published at https://gobison.digital/documentation/variflow. Variflow Tokens is a product of Bison Digital.","breadcrumb_path":"License","url":"/docs/variflow-tokens/license"},{"page_id":7,"title":"Variflow Tokens Changelog","navigation_title":"Changelog","summary":"","headings":["Changelog","1.3.0 (unreleased)","1.2.0 (unreleased)","1.1.0 (unreleased)","Fixed","1.0.0 (unreleased)"],"body":"Changelog 1.3.0 (unreleased) Assets: logos and other files in the token file. names files that aren't tokens, each a path from the site root or an URL, with a label and alt text. A scheme swaps a file in its own (a reversed logo under Dark). Each asset compiles to , which follows like a token. outputs the URL, an , or the SVG inline with and its alt text, refusing a file with script or outside links. Verify and build report an invalid name or value, a scheme swapping an undeclared asset, and a file missing under the site root, each with its line. The manifest gains an map. A token file without assets builds byte for byte as before. See Assets. Control panel: an Assets page. Tokens › Assets lists every asset with a preview, its alt text, each scheme's file, the templates that name it, and Copy tag / Copy CSS. Add asset uses ExpressionEngine's own file field (drop, upload, or choose from the File Manager), names the asset after the file, and builds on save, so the change is live at once. A token file's asset can be replaced and the replacement undone. The page never writes the token file: it saves to an assets file beside it ( for ), which builds lay over the token file and which counts toward the build's file hash. With no assets file, hashes are as before. See Assets. Integration API 5: and list and resolve the site's assets for other add-ons (Builder's image fields offer them). See Assets. A build whose CSS matches an older build's no longer fails writing that build's source copy when the files it came from differ (a reformatted token file, say). Import: Sketch exports, and line heights in pixels. Design-token Import now turns typography line heights written in pixels ( , , as Sketch, Tokens Studio and Figma write them) into the ratio CSS expects ( on a 32px font), and into . Before, compiled to . Sketch's for an Auto line height is left out rather than compiled to . Typography fields with no place in a token ( , ) and objects with fields but no are now listed in the review instead of disappearing. See From Sketch. Licensing: a 14-day trial. A production site without a valid licence now works fully for 14 days from the first time Variflow sees the problem (a new site, or a renewal that lapsed), with a banner counting down for members who can act on it (dismissable for the browser session). After that, saving Settings, rename and deprecate, Import's download, save and use, Field conversion's Convert, and writing from , and stop until a licence is added. Before, they stopped at once. Front-end output, template tags, fields and pickers, builds (including a deploy's), remap and every control panel page never stop. See Licensing. Only EE's statuses that name Variflow ( , ) count as unlicensed. EE's own messages about the ExpressionEngine installation's licence (such as or ) no longer count against Variflow; before, any status but , or did. marks development hosts for every Bison Digital add-on, as does for Variflow; or shows a dev site what an unlicensed one gets. and Settings show the trial's days left. The guide is online at gobison.digital/documentation/variflow. Grouped colour picker. A long list of colours (13 or more) is grouped the way the token file is: Action, Surface, Text, … with the file's label for a group when it has one, each a heading that opens and closes. Numbered ramps ( … ) gather in a Palette, closed until opened, one compact strip per hue in step order. The current value and the default are pinned on top, and from 25 choices a filter box matches labels and token names. Still one radio group from the keyboard. Tokens fields and Variflow Builder's inspector both get it. See What editors see. Pickers list a group's tokens in the token file's order (they were sorted by name, so came after ). An explicit list keeps its own order. Hidden tokens. on a token or a group keeps it out of every picker; it still compiles, resolves and can be referenced, and content that already uses one still shows it and saves. The build refuses a that isn't true or false, on its line. See Hiding tokens from editors. Integration API 4: says which tokens are ; picker payloads carry the saved value even when it's hidden ( ) and the file's group headings ( ). The Fernhaven demo hides its illustration colours, mix target, caption scrim and shadow colours from editors. The Fernhaven demo's journal has six stories (four new, across its three topics, with their own dates), enough to try Builder's entry picker and the latest-entries grid. On a demo that's already seeded, adds the stories it lacks (by URL title) and never edits or deletes existing ones; with Structure on, they're listed under Journal. Picker labels wrap between words (Variflow Builder B6a): a swatch, step, card or dropdown label in a narrow column breaks only between words, never inside one (\"Seconda ry\"); a single word that can't fit is cut with \"…\" and the label's tooltip has it all. Pickers no longer inherit a host page's . Use as the token file. On a site with no token file, Import › Design tokens offers Use as the token file once the draft is saved: it renames to and links to Rebuild. It never replaces a token file. On the command line: . See Importing design tokens. The build manifest records each token's and file , and the labels and descriptions of groups that have them. Template generator: EE's writes a useful example for each Tokens field (a scheme attribute, a variant attribute or a token value), in channel fields, Grid, Fluid and Bloqs. Grid tokens and layout presets. Define the site's grid in the token file ( , , and , , ) and the layout presets pages are built from ( , , , …) in , each with its spans, where it stacks and optional tablet spans. The build checks them and reports a problem on its line; with no presets you get sensible defaults. See Grid and layout presets. The layout stylesheet, opt-in: renders any preset from , and attributes, with its reflow. Layouts nest and reflow by their own width (container queries). No framework, no utility classes. See Layouts. Widths that aren't a preset (what Variflow Builder's column dividers make) are , each item's span in its : one rule. The build page lists the presets with a diagram of each; says when they're the defaults. Integration API 2: gives other add-ons the grid and presets, each with its fit width ( ), so a page builder offers only presets that fit. is 2; nothing from 1 changes. The Fernhaven demo has a grid: its product cards are a layout and its story teasers a with the image first on phones. A token file without a grid builds exactly as before. Component variants. A group under can declare named variants ( and ): Primary, Outline and Ghost for a button, each a set of overrides on the group's own tokens. applies one to an element and everything in it; several components can share the attribute. Every variant resolves correctly under every scheme, in any nesting order, and derived colours in the group (a hover) follow the variant. The build checks names, the default, each override's group, type and references, and schemes that would fight a variant, each on its line. See Component variants. Contrast for pairs with a component token is checked in every scheme × variant combination; a failure names the combination. Variant mode for Tokens fields: editors pick a component's variant from cards drawn in its colours; the tag outputs the attribute value ( ). Works in Grid, Fluid and Bloqs. See Variant mode. Variant references are content: usage counts them, the build guard refuses removing a variant entries use, and the Remap screen offers the component's other variants. Renaming a token rewrites variant overrides that refer to it. The token browser shows a group's variants, with how often each is picked, and a toggle to see its tokens per variant; the build page and list the variants; contrast results show the scheme and variant. Integration API 3: lists each group's variants with labels, the default and a preview of the tokens each changes; and take variant references; pickers have a mode; content sources may store variant references. is 3; nothing from 1 or 2 changes. The Fernhaven demo has button (Primary, Outline, Ghost) and card (Raised, Flat) variants, used across its templates, and its call-to-action block's card button is a Variant field. A token file without variants compiles byte for byte as before. Fix: usage for content sources (Bloqs, other add-ons') is current after the first save of an existing entry. EE runs before it writes an updated entry's field data, so a source that reads field data recorded the previous values until the next save; the sync now runs again once the data is written. The design-token import takes an extras file: a small JSON file beside the export for what Figma and Tokens Studio can't carry: layout presets, component variants, scheme labels and descriptions, group and token descriptions, flags such as , and your own contrast pairs. Choose it as Extras file in Import › Design tokens, or pass to . It's merged in before the review, which lists what it added; an entry naming a scheme, group or token the import doesn't have is left out, with a warning on its line. Its contrast pairs replace inferred ones. See The extras file. Contrast-pair inference no longer pairs a border with the background it outlines: one in its own group ( and , and the background's hover and pressed shades), or one it takes its colour from (a filled button whose border is its fill). The review lists what it left out. Focus rings are paired as before. Fix: Import › Design tokens › Save draft failed when the token file's folder ( by default) didn't exist yet. It now creates the folder, as does (0775, with its parents), and says so plainly when it can't. Fix: on ExpressionEngine 7.3.0 with PHP 8.2+, , and printed \"E_DEPRECATED: Creation of dynamic property … \" (from EE 7.3.0's own database driver, on every transaction). Variflow no longer sets it off. 1.2.0 (unreleased) Integration API for add-on developers. Other add-ons (page builders, block editors) can offer Variflow's own picker in their editors, output values exactly as a Tokens field tag does, and check their configuration against the live build, through . See the new Developers page. Content sources. An add-on that stores token references in its own tables registers a content source through the extension hook. Its content is then covered by usage tracking, the build guard, renames with rewrite, remaps and Undo, like a Tokens field. The hook, the interface and the Integration service are public and follow semver from 1.2.0 ( is 1). The token page's Usage list shows other add-ons' content with their own description, linking to where it's edited. A rewrite or remap that another add-on's source declines to write counts it as skipped, and the change's note says so. lists the content sources with their usage counts, any that were skipped (an invalid or taken name, or one that throws), and usage left by sources no add-on registers any more. 1.1.0 (unreleased) Bloqs 5 support. Tokens works as a Bloqs atom: settings, the picker in new, cloned, reordered and nested blocks, and every template tag and modifier. Every safety feature covers Bloqs: the usage index, the build guard (draft blocks count), renames and deprecations with rewrites, remaps and . Undo on the Builds page puts back Bloqs atoms and picker settings a change rewrote, since entry revisions don't hold them. The token page's Usage list names Bloqs locations (\"› Hero › Accent, block 2\") and labels drafts. reports Bloqs and warns on an unsupported version. Rewrites save an entry revision only when the entry's channel fields changed. The demo token set is now Fernhaven Outfitters ( ): five schemes (Light, Dark, Brand, Muted, Seasonal), hover and pressed shades that mix toward a per-scheme token, and 23 contrast pairs that pass in every scheme. It replaces the Kestrel set. Import a Figma or Tokens Studio design system, with modes as schemes. Give (or Import › Design tokens) Figma's per-mode variable export, a Tokens Studio file or folder, or a DTCG 2025.10 resolver document. Pick the default mode, and you get a draft token file in which every other mode is a scheme holding only what differs, references kept. With several mode groups you pick the one that becomes schemes. Unsupported tokens are listed, never dropped silently, and the import never writes the live token file. The design-token import infers what an export has no place for: editor labels, tiers, contrast pairs, and hover and pressed shades as derive rules ( toward black, white, transparent or a per-scheme ). Each comes from a naming convention, with its reason; failing pairs are kept and flagged, and what no convention reveals is listed instead of guessed. Turn a kind off ( , , , ) or untick single items in the control panel. Every token still resolves to its imported value. checks a draft against the site's content before you swap it in. Tokens Studio font family lists ( ) are read as lists of families. Fixed Renames with rewrite, deprecate-and-swap and remaps now update the pickers' own settings too: a Tokens field's, Grid column's or Bloqs atom's explicit list and default that named the old token name the new one (Undo puts them back). Filter-only pickers that would stop offering the token are reported, not changed. A stored reference that neither the live build nor the new file has as a token (already broken, or only a rename alias) can now be remapped: the Remap screen offers every token in both builds, nearest names first, and says the type is unknown. 1.0.0 (unreleased) The first release. Builds: validates a W3C DTCG token file (references, loops, CSS name collisions, contrast pairs in every scheme) and compiles it to one hashed stylesheet, with cascade layers, scheme blocks and derived colours; publishes only when there are no errors; keeps the last five builds for rollback; auto-build on development hosts. Command line: ( writes the Kestrel demo set), , , , , , , , and . The Tokens fieldtype: scheme cards, colour swatches, spacing steps, radii and a dropdown, with the compact picker in Grid and Fluid; every editor state (default, retiring, removed, read-only) shown the same way; works without JavaScript. Templates: , , and field tags with , , , and . The usage index: every stored reference, per entry, field, Grid cell and Fluid instance. A build that would remove a token in use stops and says where it's used. The control panel: Tokens, token detail, Schemes, Builds (with diffs, history and rollback), Import, Field conversion, Settings and the built-in guide. Changing tokens: rename and deprecate with a patch to commit, an optional queued rewrite of stored data, and remap of removed tokens. Retrofitting: import a stylesheet's custom properties as a draft token file; convert Text Input, Select, Radio and Color Picker fields to Tokens fields, with a review of every value, a dry run, resumable runs and Undo. Framework maps: a Bootstrap 5.3 preset, and your own map files. Multi Site Manager: per-site token files, builds, usage and settings, with an optional shared base file. Requirements: ExpressionEngine 7.3+ and PHP 8.2+. Developed in phases 0–7 (versions 0.1–0.9 were pre-releases); see the repository for the history.","breadcrumb_path":"Changelog","url":"/docs/variflow-tokens/changelog"},{"page_id":98,"title":"Bring your own CSS","navigation_title":"Bring your own CSS","summary":"","headings":["What's on the page","The hooks","Attributes","Custom properties","Partial variables","What the layout stylesheet does, and what it leaves to you","Three rules","1. Builder owns the outer grid","2. Map the framework's variables to tokens, never the reverse","3. Put Variflow between your base and your components","Recipes","Plain CSS","and","Tailwind v4","and","Tailwind v3","UnoCSS","daisyUI","Bootstrap 5.3","and","Bulma 1.x","Foundation 6","Open Props","Gotchas","Classes that are only in a schema","Conditionals on text fields","beats schemes","Framework grids follow the screen"],"body":"Builder renders your partials, so every page is your own markup. It doesn't ship a theme. You style parts with whatever you already use: plain CSS, Tailwind, UnoCSS, daisyUI, Bootstrap, Bulma, Foundation or Open Props. This page is what Builder and Variflow Tokens give you to style with, three rules that keep a framework from fighting the layout, and a short recipe for each. What's on the page A Builder page loads three stylesheets: Stylesheet Tag What it does Token stylesheet Every token as a CSS variable on , one block per scheme, one per component variant, and any framework map. Layout stylesheet Sections' content widths and the layouts' columns. Builder needs it. Yours your Everything else. The line sets the cascade layers' order (rule 3). It can live at the top of your own stylesheet instead, if that loads first. The hooks Attributes Builder and Tokens style through attributes, not classes, so your class names never clash with theirs. Attribute Where it comes from Builder, on every layout A grid of the preset's columns. One plain per column, nothing else. for spans set with the column dividers. Builder, on a layout set to Last column first While the columns are stacked, the last comes first. Your section partial: The content width: , or . , from a part's look The scheme's token values for everything inside, and its background and text colour on the element itself. The class does the same. , from a part's variant The variant's component tokens for everything inside. Several are separated by spaces ( ); match one with . Builder also adds and keeps your markers in the editor's preview only. Visitors never get them, so don't style them. Custom properties Property Every token, by its name with hyphens: is , is . Names are lowercased ( is ). A typography token has one per part: . changes . A component's tokens ( ), which switches. Style the component once with these. , , , The grid. Schemes can change the gutter and widths. On a column of a layout: its width in grid columns ( ). Builder writes it; the layout stylesheet reads it. Schemes and variants re-declare tokens on their element, so anywhere inside a dark section is the dark value. That's what makes a component styled once look right in every scheme. Partial variables Most of what a partial needs to style is in Pages › Variables. These three are for layout: Variable A section's content width ( , , ). Put it on your wrapper as . The width of the column the part sits in, in grid columns (12, 8, 4 …), from the presets around it. The same on every screen. The component's name when its column is narrower than , otherwise nothing (Parts). Use it to switch markup: three across in a wide column, a list in a narrow one. (the scheme and variant attributes) goes on the element they should style, and gives a token control's value as , for an inline style or a custom property. What the layout stylesheet does, and what it leaves to you It does: Containers: is centred, at most or wide, with the gutter as side padding. is edge to edge, with no padding. Layouts: is a CSS grid of columns with between them. Its columns take the preset's spans. Reflow: columns stack below each preset's breakpoint, and take tablet spans where the preset has them. These are container queries on the layout's own width, so a layout nested in a narrow column stacks as it would on a phone. Each layout is a size container ( ). Phone order ( ) and custom spans ( ). Everything is in the cascade layer, and it sets no colours. It leaves to you: the space above and below sections (Builder gives you for it), and between components stacked in one column; everything inside a column: components, type, images, buttons; colours beyond a scheme's background and text colour. Don't change or on a layout: that's the gutter. and are yours. Three rules 1. Builder owns the outer grid Sections, layouts and columns are Builder's. Don't put a framework's grid on them: no , , , , or in a section partial, and nothing that targets or its columns except and . Editors choose layouts from the token file's presets, and the editor, the canvas and the layout stylesheet all work from those. Inside a component, use any grid you like: a row of cards, a form, a gallery. But most framework grids switch at screen widths, and a component doesn't know how wide its column is on a screen. Choose the markup from the column instead: or in the partial: ; or a container query on the component itself (Tailwind's , or your own ). The nearest container is otherwise the whole layout, not the column. 2. Map the framework's variables to tokens, never the reverse The token file is the one source for colours, sizes and fonts: editors pick from it, Tokens checks contrast and tracks usage from it, and schemes and variants switch it. So point the framework's variables at the tokens ( ), and never write a token from a framework value. Declare the mapping where schemes can change it. A custom property that holds is worked out on the element that declares it, and its children inherit the result. Declared only on , is the root's surface colour everywhere, dark sections included. Declare it on the root and on every scheme: Add for variables mapped from component tokens, or set those on the component itself (as does in the Bootstrap recipe). A utility that uses directly (Tailwind's , Tailwind v3's and UnoCSS's theme values) needs none of this. 3. Put Variflow between your base and your components The token stylesheet declares its layers in this order, and the layout stylesheet adds its own: All five are inside one layer, . ( is there when the token file has component variants.) Name it once, in your own order, before any of them load: Reset and base below . A reset's would otherwise take the containers' gutter padding away, and a base would beat the scheme's colours. Components and utilities above it. Your components win over the layout and the schemes without fighting specificity, and so does a utility you put on purpose. The first statement wins. The order is set where a layer is first named, so this line goes before Tailwind's, Bootstrap's or Variflow's CSS. Later statements only add new names at the end. Unlayered CSS beats every layer. A framework loaded as is (most are unlayered) beats the layout stylesheet and the schemes wherever its selectors match. Put it in a layer, as the recipes below do. Framework maps. Tokens' Bootstrap 5.3 map is unlayered, so it beats Bootstrap's own variables wherever Bootstrap is. Load after Bootstrap. Recipes Each recipe was built with the tool's own CLI in a scratch folder, with nothing installed in the site, and checked in Chromium against the Fernhaven demo token file: the layouts' columns and the containers' padding come through, and the same markup takes each scheme's and each variant's colours. Versions are the ones tested. Token names are Fernhaven's; use your own. Install the tool where your CSS is built first, as a dev dependency ( , , and so on). and the Sass imports need the package installed, not just . Recipe Tested with Build Plain CSS Lightning CSS 1.0.0-alpha.72 (optional) Tailwind v4 Tailwind CSS 4.3.5 Tailwind v3 Tailwind CSS 3.4.19 UnoCSS UnoCSS 66.13.0 daisyUI daisyUI 5.8.0, Tailwind CSS 4.3.5 as Tailwind v4 Bootstrap 5.3 Bootstrap 5.3.9, Dart Sass 1.108.2 Bulma 1.x Bulma 1.0.4, Lightning CSS Foundation 6 Foundation 6.9.0, Dart Sass 1.108.2 Open Props Open Props 1.7.23, Lightning CSS The paths assume your stylesheet sits beside the site's templates; change to where is from your CSS. Plain CSS No build step. Layer your reset and base below Variflow, style components with tokens. and The card's schema has a control on , a that defaults to , a control on the group, and . Tailwind v4 and : scan the folder (partials and schemas) and your own templates, nothing else. : point the theme at . writes the variable into each utility ( ), so it follows schemes and variants. Without it, Tailwind's is worked out once on and every scheme gets the root's colours (rule 2). drops Tailwind's palette, so a partial can't reach for . Layers: Tailwind's own are . Name after (Preflight) before the import. and makes the component its own container, so and follow its column, not the screen. The field's option values are whole class names ( , ), which Tailwind finds in the schema; is or , so the class is safelisted with . Tailwind v3 Utilities take theme values as they are, so follows schemes with no extra step. Tailwind v3 doesn't output native cascade layers; wrap its three directives in your own. The layer names mustn't be , or : Tailwind v3 treats those as its own directive. Opacity modifiers ( ) don't work on colours in v3. UnoCSS Use : it writes theme values into each utility, so follows schemes. ( puts the theme in variables on , which have the problem in rule 2.) The CLI takes the files to scan as arguments: UnoCSS's own layer statement doesn't name , so set the order in the page's , before its CSS: daisyUI daisyUI 5 is a Tailwind v4 plugin. Turn its themes off and set its theme variables from tokens on the root and every scheme, so each is a daisyUI theme of its own. Builder's schemes replace . Then and take each scheme's colours. daisyUI 5 puts its components in Tailwind's layer, above . Bootstrap 5.3 Turn on Tokens' framework map, which sets Bootstrap's own variables ( , , 's and the rest) from your tokens in every scheme: , then build (Variflow Tokens' guide, Retrofitting a site). Build Bootstrap from Sass, in layers, with only the parts you use. No , and the grid only for rows inside components. Keep in step with the scheme, so Bootstrap's dark-mode rules and the map agree. Bootstrap 5.3's Sass uses , which Dart Sass reports as deprecated; the two flags quiet that. and follows the screen, so the partial drops it when the column is narrow ( ). Bulma 1.x Bulma 1's colours are CSS variables, but most are built from hue, saturation and lightness variables ( , , ), which a token holding a colour can't fill. Map the variables that take a whole colour, and style buttons from component tokens yourself. Use the build without dark mode: Bulma's default build follows the visitor's system setting, which Variflow's schemes don't. , and the text then take each scheme's colours. Don't use and for page layout; inside a component they're fine. The bundled file is large (about 550 KB minified); building Bulma from its Sass with only the parts you use is smaller. Foundation 6 Foundation's colours are Sass variables, and Foundation works out shades from them at build time, so they need real values, not . Generate a Sass file from the live build's values, and style anything that must follow schemes with the CSS variables. Sass variables from a build step. The build's manifest ( ) lists every token with its value. This writes one Sass variable per token ( ): Run it after each token build. These are the root values: schemes don't change them. The XY grid inside components only. Open Props Open Props is a set of variables ( , , ) and an optional normalize. Use it for what your tokens don't cover, such as easings, shadows and animations, and keep colours, spacing and type on tokens. Point normalize's role variables at tokens. Don't alias tokens to Open Props' palette ( ): that's the reverse of rule 2. Put the colour in the token file instead. Gotchas Classes that are only in a schema Tailwind, UnoCSS and other tools that purge keep only the classes they find in the files they scan. Two kinds go missing: Class names in a schema's option values ( ) are in the , not the partial. Scan files in as well as . Class names a partial builds ( ) are in no file. Safelist them: Tailwind v4's , Tailwind v3's and UnoCSS's . Prefer whole class names as option values, so scanning finds them. Scanning schemas also finds words such as and and generates those utilities; they're unused unless a class names them. Conditionals on text fields Test a field with its bare variable: Not with the value in quotes, . That copies the text into the conditional before EE reads it, so text with an apostrophe or a quote mark in it can end the string early and break the conditional. The same goes for your own templates' channel fields: , not . (Tokens fields are the exception: test their output, as Variflow Tokens' guide says under About .) beats schemes An declaration beats every normal one, whatever its layer, and between layers it runs backwards: an important rule in a lower layer beats one in a higher layer. So a framework's important colour utility (Bootstrap's , , Tailwind's ) beats the scheme's colours wherever it's used, and you can't override it from your components layer. Bootstrap: before importing it, as above. In a layer the utilities still win by order. Tailwind: don't use the modifier, or v3's , for colours. Don't put fixed colour utilities on an element that carries or sits in a scheme: map the utility to a token instead. Framework grids follow the screen A framework's breakpoint is the screen's width, not the column's. In the narrow column of an 8/4 a three-across row stays three across on a desktop screen. Use , or a container query on the component (rule 1).","breadcrumb_path":"Bring your own CSS","url":"/docs/variflow-builder/bring-your-own-css"},{"page_id":97,"title":"Editing pages","navigation_title":"Editing pages","summary":"","headings":["Opening the editor","The start prompt","The editor","The toolbar's buttons","The canvas","The grid","Editing on the page","When the canvas can't show the page","Plan","Adding","Dragging and dropping","Drop targets","Splitting into columns","Resizing columns","Changing content","Picking entries","Layouts","Phone order","Narrow layouts","Moving, copying and removing","Moving and adding with the keyboard","Tokens","Locked parts","Detaching","Saving a pattern","Problems","Publish checks","Undo","Keyboard shortcuts","Saving","For developers"],"body":"A page built with Variflow Builder lives in one field of an entry. You edit it in the page editor, which opens over the entry's publish form, and you save it with the entry's own Save button, so statuses, revisions and permissions work exactly as they do for any other field. Everything in the editor works from the keyboard, and every action is announced to screen readers. Opening the editor The Builder field in the publish form shows one button, Launch Variflow Page Builder. Choose it to open the editor full-screen. (If the field has a problem, such as a page that couldn't be read, its message shows above the button.) An empty page opens on a start prompt (below). Pick something to begin. Close the editor with Done, or with Escape (it asks first if you've changed anything). Your changes stay in the form, and nothing is kept until you save the entry. If you leave the page without saving, your browser warns you. Preview opens the entry in EE's own Live Preview with your unsaved changes, if the channel has a preview URL. You rarely need it: the editor's centre already shows the page. The start prompt A new page (a Builder field with nothing in it yet) opens on Start this page instead of an empty canvas: up to six of the field's section patterns, the ones this channel's pages use most first (then the order your developer listed them), each a card with its icon, name and description; Blank section, if the field allows sections that don't come from a pattern: the field's default section (or its first), empty, to lay out yourself; Browse all patterns, which opens the Library's Patterns tab; Start with an empty page, which closes the prompt and leaves Plan's empty page with + Add section. Choosing a card adds it and closes the prompt, as one step you can undo (undoing it leaves the empty page, not the prompt). The editor The editor has three columns. F6 moves to the next one, Shift+F6 to the previous one. Left: the Library. What you can add and your site's design tokens, on three tabs: Components (blank sections, components and layouts), Patterns (section and content patterns) and Tokens (schemes, variants, spacing and colour steps), with a search box (Adding). Centre: the page. The Canvas shows the page itself, as visitors will see it (below). Plan shows it as an outline instead (below): each section is a band, its layouts drawn as their columns, each component a card with its main words, and every item with its type's icon and its tokens as small chips. Switch with Canvas | Plan above the page; the editor remembers your choice in this browser. Choose Desktop, Tablet or Phone in the toolbar to see the page at that width: columns stack on phones and some use different widths on tablets. Right: the inspector. What's selected: where it is, its content, its appearance and what you can do with it. Its labels sit above their controls and it never scrolls sideways: a long row of spacing steps becomes a dropdown, and long names wrap between words, never inside one (a single word too long for its space is cut short with \"…\", and pointing at it shows it all). Some fields show only when they apply: an image's Focus only once its Shape crops it, say. A field that's hidden keeps what it was set to, so switching back brings it back. Selecting something in one column selects it in the others. The toolbar's buttons Most of the editor's buttons are icons. Each has a name that screen readers read, and pointing at one (or reaching it with Tab) shows its name in a small tooltip, with its shortcut if it has one. A pressed button (the device you're showing, the grid when it's on) has a coloured edge. Icon Name Where ↶, ↷ Undo, Redo The top bar Monitor, tablet, phone Desktop, Tablet, Phone The top bar (one is pressed) Edit JSON The top bar, for developers (below) Columns Show the grid Above the canvas (The grid) Colour square Grid colour and opacity Beside it Circular arrow Reload page Above the canvas Lines, cards Compact, Comfortable The Library (Adding) + Add to page… Beside each Library item Target Apply to… Beside each Library token Arrow to a line Select parent The inspector, beside the breadcrumb ↑, ↓, ←, → Move up, Move down, To previous column, To next column The inspector's Item Arrow out of a box Out of this layout The inspector's Item Four arrows Move… The inspector's Item Two squares Duplicate The inspector's Item (Remove is a word, set apart) Six dots The drag handle Plan's items, the selection's tab on the canvas ⋯ The item's menu Plan's items The canvas The canvas is the entry's real page, made by your site's own templates through EE's Live Preview, with your unsaved changes in it. What you see there is what visitors get when you save. Selecting: pointing at something outlines it; clicking selects it, and the breadcrumb and the inspector follow. The selection has a small tab: a drag handle (six dots) for moving it, its type's icon and name (and a lock if it's part of something locked), and a ▾ for its menu, which has Select parent, Move…, Move up, Move down, Duplicate and Remove, as in the inspector. Clicking an empty part of a column selects the column. Selecting something in the breadcrumb (or in Plan, then back to the canvas) scrolls the page to it. Columns: with a section (or one of its layouts or columns) selected, the canvas outlines its columns, drawn over the page, never in it. Each has a small label (Column 1, …) that selects it. An empty column, such as a new band's, shows as a dashed box with + Add, at least 64 pixels tall even when it has no height on the page; click the box to select the column. + Add opens a short menu beside it of what fits in that column (arrow keys move through it, Enter adds, Esc closes it); what you choose lands in the column. A column that already holds items has no +: drag from the Library, or select the column and click a Library item, or use the Library's + (Add to page…). Esc walks back out: column, then layout, then section. Empty columns: a column with nothing in it has no height on the page, so the canvas always draws it, whatever is selected: a thin dashed box, at least 64 pixels tall, saying Column 2: empty. Pointing at it draws it in full and shows its + Add; clicking it selects the column (and then its section's columns are drawn as above). While you drag, an empty column the drop marker covers shows the marker instead. Empty items: a heading, text or image you haven't filled in yet has no size on the page, so the canvas draws a dashed placeholder where it is, with its icon and name (Heading: empty). Point at it, click it to select it, or drag it to move it, as you would the item itself. Its + Add opens the same menu, and what you choose goes after it. Once the item has content, the placeholder goes and the item itself is what you click. Links and forms on the canvas don't go anywhere: clicking a link selects it. The page's own scripts still run, so sliders and menus behave as they do on the site. Updates: a change you make in the inspector shows on the page within a moment. Only the section you changed is redrawn, so the page doesn't jump. Adding, moving or removing whole sections reloads the page; it comes back at the same place with the same selection. Devices: Tablet and Phone show the page at 820 and 390 pixels wide. When the space is narrower than the device, the page is scaled down to fit. Hidden things: something inside a closed accordion or an inactive tab can still be selected in Plan, where everything is listed. Back on the canvas, it opens the accordion or tab when it can; otherwise it says the item \"isn't visible on the page\". Reload page (the circular arrow above the canvas) loads the page again, keeping where you were and what's selected. The grid Show the grid (above the canvas) draws your design's grid over the selected section: its container's edges, and its columns with the gutters between them, as your token file defines them. Select a component and you see the grid of the section it's in; with nothing selected, every section's. It's drawn over the page in the editor only: the page itself, and what visitors get, never change. While you drag a column divider, the layout's own columns show (whether the grid is on or not), so you can see where it will snap. The grid is light blue at first. If it gets lost in a design, Grid colour and opacity (the small square beside it) offers Light blue, Pink and Dark (high contrast), and an Opacity slider. The editor remembers the grid, its colour and its opacity for you in this browser; they're never part of the page. Editing on the page Fields your developer has marked as editable in place (headings, captions, short text, button labels, rich text) are edited right on the canvas: select the item, then click the words again (or press Enter to start on its first one). Enter saves a one-line field; Escape cancels. Leaving the field saves it too. Pasted text arrives as plain text, and a field stops at its length limit. Rich text gets a small toolbar above it: Bold, Italic, Link and lists (⌘K or Ctrl+K adds a link too). For anything bigger, use the inspector's editor. Images: double-click one to choose a file with EE's file picker, or drag an image file from your desktop onto the item: it's uploaded into the item's image. Every change made on the page is a step in Undo, and the inspector shows it at once. Locked items can still have their words, links and images edited in place, and nothing else. An empty optional field (an eyebrow you haven't filled in, say) isn't on the page, so fill it in in the inspector. When the canvas can't show the page No preview URL: the editor says \"This channel has no preview URL — set one in Channel › Settings\", with a link to the channel's settings, and shows the Plan instead. Pages managed by Structure (or EE's Pages module) use their page's URL, so they don't need one. Entries in a channel whose Live Preview is turned off get the same message. The page doesn't load within 10 seconds, or loads with an error so Builder can't connect to it: the canvas says so, with Try again and Show the plan. Your changes are never affected: keep editing in Plan and the inspector, and save as usual. Problems in a part: something that can't be shown (a part with an error in its template, say) shows a dashed Variflow Builder notice in its place on the canvas. Visitors never see these. Your control panel session ended: the editor says so. Your changes stay in the form: log in again when the control panel asks, then save. Plan Plan is the page as an outline: the one place to see and rearrange its whole structure, and the way through the page from the keyboard and with a screen reader. Each item shows its type's icon (the same as in the Library), its name, its main words, a lock (Locked, Structured or Fixed), a section's pattern (\"from Home hero\") and a ⚠ problem badge where they apply, written out rather than shown by colour alone, a drag handle (six dots), a menu (⋯: Select parent, Move…, Move up, Move down, Duplicate, Remove, and where they apply Save as pattern… and Detach from pattern) and its token chips (Tokens). A copy of a pattern that has changed since it was inserted says Out of date (Locked parts). The handle and menu show when you point at the item, select it or reach it with the keyboard. Click an item to select it; the arrow before its name opens and closes it. A full-width layout with one column (the usual case) draws no Layout or Column boxes: its items sit right under the section's name, with a small full tag; click the tag to select the layout. It's still there for the keyboard and screen readers: arrow down from the section to the layout, then its column (outlined when it has focus), then the items. Layouts with more columns are drawn as their columns. Dragging works here exactly as on the canvas (below): drag an item's handle to move it, or a Library item in, and Plan shows the same places (a line, an edge, a column, a \"New section\" band) for the same rules. The empty area below the last section makes a new section. The outline scrolls when you drag near its top or bottom. Column dividers show between the columns of the selected layout when they sit side by side (on the device you've chosen), and work as on the canvas; while you drag one, the layout's grid columns show behind it. It's a tree for the keyboard and screen readers: ↑/↓ move through it, →/← open and close items, Home/End go to the first and last, and typing a name jumps to the next item that starts with it (except M, which is Move…). Enter selects, F2 goes to the first field, Alt+↑/Alt+↓ move the item, M (or Enter on its handle) moves it anywhere, Shift+F10 opens its menu, Delete removes it and Ctrl+D (⌘D) duplicates it. Tab from an item reaches its chips, + Add, handle and menu. Selecting several items side by side in a column, to save them as a pattern: Shift-click the last one, or Shift+↑/Shift+↓ from the first. They're all marked selected, and their menu offers Save N items as a pattern…. With the canvas showing, switch to Plan with Canvas | Plan (F6 reaches it) whenever you want the outline: the selection stays as it is. Adding The Library always lists everything this field allows, whatever is selected, on two tabs: Components (blank sections, components and layouts) and Patterns (section and content patterns); Tokens is the third (Tokens). ←/→ move between the tabs. The line at its top says where a click puts an item: with nothing selected: at the end of the page. A section goes there; a component, content pattern or layout goes in a new section there (the field's default section, the item in one full-width column); with a section selected: into it, at the end of its column (\"Adds into Section.\"), or, when it has more than one, of its last column (\"Adds into Call to action › Column 2.\"); with a layout selected: into its last column; with a column selected: into the column, at its end; with a component selected: after it, in the same column; with a container selected (a row of buttons, a list of features, a panel): inside it, if it holds that kind of item. Sections and section patterns always go after the selected section (or at the end of the page): they never go inside one. When it doesn't fit there. A locked or structured pattern copy, or a section whose layout is fixed, takes nothing inside it; a column may be too narrow for an item (a story teaser in a quarter-width column, say); or a layout may nest deeper than the field allows. Clicking such an item opens a small menu by its row: Add above Hero or Add below Hero (the section you're in) makes a new section there, from the field's default section, with the item in it. ↑/↓ move in the menu, Enter chooses, Escape closes it and changes nothing. The line at the top says so beforehand (\"Adds after Hero; Hero is locked, so new items go in a new section above or below.\"). If the field has no default section, the menu offers Choose a place… instead (add mode, below). When it fits nowhere. An item that can't go anywhere on this page (it needs more of the page grid's columns than any place here has, or its layouts would nest too deep) is still listed, but dimmed; point at it, or listen to its name, for why. Each component and layout says how many of the page grid's columns it needs. Components that show entries from your site, such as the latest journal stories, are marked LIVE. Click or drag. Each item is a row with its type's icon, its name and a line of its description (point at it to read all of it; screen readers read all of it). Click a row (or press Enter on it) to add it where the line at the top says. Drag it instead (a grip shows when you point at it) to put it exactly where you want on the page or in Plan: dragging shows only the places it fits, empty sections and a new section between sections included (below). Its + (Add to page…) does the same from the keyboard (below). A new section, however it's added, is scrolled into view. Compact and Comfortable (the two buttons beside the search box) switch between these rows and taller cards with two lines of description. The editor remembers your choice for you in this browser. + Add section (at the end of Plan) and + Add (in each column in Plan) take you straight to the Library for that place (on the canvas, + Add opens a menu by it instead); after + Add section the line says the section goes after the selected one (\"Adds a section after Section.\"), just for that add. Search the Library at its top narrows every tab, tokens too, to what matches. Dragging and dropping On the canvas and in Plan you can build by dragging: Library items onto the page, items already on it to a new place, the dividers between columns to change a layout's widths, and tokens onto items (Tokens). Everything dragging does can also be done from the keyboard (below), and every drag is one step in Undo. Drop targets Press on a Library item (or an item's drag handle) and move: a label follows the pointer, and the page shows where it can go near the pointer, with the one it will use highlighted and named (\"After Heading in Column 1 of 8/4 in Call to action\"). Let go to drop it there. Only places where it fits are ever shown, so where nothing is shown, nothing fits. A line above or below an item: it goes in the same column (or container), before or after that item. A highlighted edge on an item's left or right side: the item and the new one go side by side (below). A shaded column: an empty column takes it. A \"New section\" band at a section's top or bottom edge, or on the page outside any section: a new section, from the field's default section, with the item in it. (Only when the field has a default section and allows open sections.) Sections go only between sections: dragging one shows a line between the sections. Locked sections and locked or structured parts take nothing inside them: they only show places above and below. Something too wide for a column, or a layout that would nest too deep, never gets a target there. Near the top or bottom of the page the canvas scrolls. Escape, or letting go outside the page, cancels and changes nothing. A dropped item is selected, and the page updates as it does for any change. Moving an item: drag its handle (six dots): in Plan every item has one; on the canvas it's on the selected item's tab. The item is dimmed in its place while it moves, and it takes everything inside it. Moving the last item out of a column leaves the column empty. On a touch screen (a tablet), press and hold an item for a moment to start dragging it; a touch that moves straight away scrolls as usual. Splitting into columns Drop beside an item (on its left or right edge) to put the new item next to it: An item alone in a full-width column becomes two halves (6/6), the new one on the side you dropped. Beside one of two halves, it becomes three across (4/4/4), then four across (3/3/3/3), and so on through your grid's equal layouts, as long as everything in every column still fits. When the next one doesn't fit, or there isn't one, there's no side target. An item that shares its column with others (or sits in a layout with unequal columns, such as 8/4) is wrapped with the new one in a two-column layout inside that column, if it fits there. Resizing columns Select a layout (or point at the gap between its columns) to show a divider between each pair of columns. Drag a divider sideways: it snaps to the layout presets with the same number of columns that fit (6/6, 8/4, 4/8…), and a label shows the result (\"8 / 4\"). Let go to apply it; Escape cancels. If the field allows any column (its Column dividers setting), hold Alt (⌥ on a Mac) while dragging to see a stop at every single grid column instead (7 / 5, say), as long as every column stays at least the grid's narrowest width and fits what's in it. A width that isn't a preset is kept as the layout's own (shown as \"custom\" in Plan); choosing a preset in the inspector later replaces it. Sections that allow only some layouts offer only those. From the keyboard: Tab to a divider, then ← and → move between stops (hold Alt/⌥ for single columns where allowed), Enter applies and Escape cancels. Changing content The inspector's Content shows each field with the matching control: text, longer text, rich text, numbers, choices, on/off, links (URL and label) and images. A change is made when you leave the field. An image shows its thumbnail and file name, with Replace and Remove. With none yet, the field is a drop zone: Drop an image file on it, or Upload one. It goes into the File Manager like any upload, into the field's folder (pick it under Upload to when there are several). Choose file opens EE's File Manager. From Assets lists Variflow's assets (Tokens › Assets), such as the logo. The page then follows the asset: replace the file on the Assets page and every page shows the new one. Alt text says what the image shows. Leave it empty and the file's description is used (the field shows it greyed). Tick Decorative for an image that's only there for looks: screen readers skip it, and the publish check doesn't ask for alt text. Advanced shows the stored value (a file ID, a path, an address or ). Appearance shows only the options the part has: the Look (a scheme, drawn in its colours), the Style (a component's variant), spacing and colour options as token pickers, and the Content width (Default, Wide or Full) for sections. Every choice is one of your design tokens; there's nowhere to type a colour or a size. Space above and Space below are on every component: the gap before and after that one item. Standard (the default) is the site's usual spacing; pick a step to open it up or tighten it, and Use standard spacing goes back. The step applies at every screen size. A long colour list (an Accent) comes in groups from the token file, with the palette closed until you open it, the current colour pinned on top and a filter box; colours the token file hides from editors are never offered. Picking entries Some components list entries you choose yourself, such as Featured stories: their field shows the picked entries in order, each with its title, channel, status and date, and how many you've picked of the most allowed (2 of 6 picked). Add entries… opens a search under the list. It only ever offers entries the field takes (its channels and statuses, on this site) and that you can see in the control panel. Type to search by title; with several channels, choose one. Results come 20 at a time, newest first, with Previous and Next. Click one (or press Enter) to add it to the end of the list. Entries you've already picked say Added and can't be added twice. When the list is full, adding stops and the search says why: remove one to add another. Done or Escape closes it. Reorder by dragging a row's grip (⠿), or with the keyboard: Tab to the grip and press Alt+↑ or Alt+↓. Remove with the row's ✕. Each add, remove and move is one step you can undo (\"Add 'Linen apron' to Featured stories\"), and the page on the canvas updates that section. The page shows the entries in your order. An entry someone has switched off (closed, scheduled for later, or expired) stays in the list under its title, with a quiet note: \"Not shown while it's closed\". It isn't a problem: the site leaves it out, saving goes ahead, and it shows again when the entry is reopened. So you can turn a case study or story off without touching the pages that feature it. An entry that can't come back by itself (deleted, or moved to another channel or site) stays in the list as Entry 48 with the reason (\"Deleted\", \"Not in Journal\") instead of its title, and is a problem on the page. The site leaves it out quietly. Remove it. Components that show entries (marked LIVE) have What it shows: a line saying what the query is (\"Latest 3 from Journal\") and its options, such as a topic and how many to show. Layouts Select a layout to change its Layout preset. Only presets that fit where the layout sits are listed. The columns keep their content: if the new layout has fewer columns, the items of the columns that go move to the end of the last column; if it has more, the new columns start empty. Changing the number of columns asks first. Phone order A layout with two or more columns has On phones in the inspector: In order (the first column on top) or Last column first (stacked in reverse: a 6/6 shows its right column first; a layout of three columns stacks 3, 2, 1). It's one step you can undo. Choose Phone above the page to see it: the canvas shows the real page at phone width, and Plan draws the columns in their phone order. Plan marks such a layout phone: reversed on every device. A locked or structured pattern copy keeps its pattern's phone order, unless the pattern lets editors change it. Narrow layouts Some components have a layout for narrow columns (your developer's ): Latest from the journal becomes a list in a column narrower than two-thirds of the page, say. Where one does, Plan shows Shown as List here on it and the inspector says so, with why (how wide the column is in the page's grid, and how wide it needs to be for the full layout). The choice is made from the column's width in the grid, so it's the same on every screen: at tablet and phone widths the note says the column is wider there but the layout stays. Move the component to a wider column, or change the layout, to get its full layout back. Moving, copying and removing The inspector's Item actions, for whatever is selected: These are icon buttons, each with its name as a tooltip (the toolbar's buttons): Move…, to move it anywhere it fits, with the keyboard (below); Move up and Move down, within its column, container or the page; To previous column and To next column, when the item fits there; Out of this layout, for an item in a layout that's inside another column; Duplicate, which puts a copy right after it; Remove, a word rather than an icon, set apart from the rest. A message offers Undo straight away. Moving and adding with the keyboard Move mode moves the selected item anywhere it fits: choose Move… in the inspector or the selection tab's menu or an item's menu in Plan, press M in Plan, or press Enter on a drag handle. Add mode is the same for something new: the + button beside each Library item (Add to page…). A bar above the page says what's moving and where it would go (\"4 of 37: After Heading in Column 1 of 8/4 in Call to action\"); the canvas (or Plan) draws that place and scrolls to it, and a screen reader reads it. ↓ or →, ↑ or ←: the next or previous place (the same places dragging offers); Page Down, Page Up: the first place in the next or previous section; Home, End: the first or last place; Enter drops it there; Escape cancels and changes nothing. Tokens Your site's design tokens are on the Library's Tokens tab: the schemes (looks), the variants of each component (Button, Card…), and every spacing, colour or other token group a part's appearance uses (Space, Color, Radius…), each with a swatch drawn as the pickers draw it. With an item selected, the tab lists only what that item takes; tick All tokens to see everything. The search box narrows it too. Chips. In Plan each item shows the tokens it uses as chips, small rounded pills with a swatch: its look (\"Aa Light\"), its variant, and its appearance values (space above and below, an accent…). A chip with a dashed edge is the part's default, not something set on this item. Each chip starts with which option it's for: ↑ and ↓ for space above and below (and ←, → for left and right), otherwise the option's first word (\"Look\", \"Accent\"); its full name is in its tooltip and what screen readers read (\"Space above: 3XL · 96px\"). The menu that asks which option a dropped token sets marks them the same way. Dropping a token on an item sets it, as one step in Undo (\"Set Card look to Dark\"): a scheme goes on an item with a Look that allows that scheme; a variant goes on an item with a variant (Style) of that component; any other token goes on an item with an appearance option from that token's group. The item's lock has to allow it too: a locked copy takes nothing, a structured copy only the options its pattern allows. While you drag, the items it can go on are marked and the others are dimmed; pointing at one says what the drop does, or why it can't (\"Hero is locked\", \"Text has no variant\"). When an item has two options from the same group (space above and space below, say), dropping asks which. Click a Library token to set it on the selected item. Drag a chip to another item to copy its value; hold Alt (⌥) to move it instead, and the item it came from goes back to its default. Letting go anywhere else does nothing. Delete on a focused chip puts that option back to its default (or change it in the inspector). From the keyboard, Apply to… (the target button beside each Library token, or Enter on a chip, Alt+Enter to move it) steps through the items that take it, announcing each: ↓/↑ choose, Enter applies, Escape cancels. Tokens drop on the canvas the same way: point at the item on the page. Locked parts Some sections come from patterns your developer (or a site builder) has locked, so they stay as designed. They're marked with a lock in Plan and on the canvas, and the inspector says what you can change: Locked: only the words, links and images. You can't add, move or remove anything inside it, or change its look; you can still move, copy or remove the whole section. Structured: the words, links and images, and the appearance options the pattern allows. Fixed layout: a section whose layout is fixed (a footer, say): fill it in and style it, but its parts stay where they are. When Builder's licence has lapsed (after the 14-day trial, on a site without a licence: see Licensing), the whole page behaves like a locked copy. The editor says so once, under its toolbar: \"Builder's licence has lapsed, so page layout is locked. Text and images can still be edited.\" The Library, the start prompt, + Add section and the item actions are gone, and appearance and tokens can't change; edit the words, links, images and picked entries and save as usual. Out of date. When a pattern changes after a copy of it was inserted (a new tree or lock is a new version), its copies are marked Out of date in Plan, and the inspector says which version each is. Nothing changes on the page: copies don't update from their pattern yet (that comes with synced patterns in a later release). Detaching Where the field allows it (Allow detaching in its settings), a locked or structured copy can be cut loose from its pattern: Detach from pattern in its menu (in Plan, or on the canvas's selection tab) or in the inspector's Item actions. After a confirm, the copy is open: you can change anything on it, and it no longer follows the pattern (later changes to the pattern, and syncing, won't reach it). It remembers which pattern it came from. Detaching is one step: Undo puts the link back. Where the field doesn't allow it, there's no Detach, and saving refuses a copy that was detached some other way. A copy of a saved pattern that has since been deleted is open already: nothing holds it to a pattern any more. Saving a pattern If your role has Save patterns (a super admin grants it on Builder › Patterns), you can turn part of a page into a pattern that editors can insert anywhere the field allows it: Select what to save: a section, or one or more items side by side in a column (Shift-click, or Shift+↑/↓ in Plan, above). Sections make a section pattern; items make a content pattern, which goes in any column it fits. Choose Save as pattern… from its menu (in Plan or on the canvas's selection tab) or the inspector's Item actions. Give it a label (the name follows it; you can change it: lowercase letters, digits and underscores, unique on the site), a description and an icon, and choose its lock: Locked (copies change only their words, links and images), Structured (and the appearance options you tick) or Open (a starting point). What will be saved shows the outline. Save pattern is enabled once the server says the pattern is valid (it's checked as a developer's pattern file is, and can't hold HTML or a name that's taken); problems show in the dialog. By default the selection becomes a copy of the new pattern, as if you'd inserted it there (untick Make this … a copy of the new pattern to leave it as it is); that's one step you can undo. The pattern itself is saved straight away, in the database, and appears in the Library's Patterns tab, marked Saved, for every Builder field that allows it. To change or delete it, use Builder › Patterns; a developer can export it to a file with (Parts). Problems The page is checked as you work. Problems show in the inspector beside what they're about, and as a ⚠ problem badge in Plan and on the page (never as colour alone). With nothing selected, the inspector lists every problem on the page. You can keep working with problems. Whether the entry saves with them depends on the field's When the page has problems setting and the entry's status (Pages). The toolbar says which, beside Done: ⚠ 2 problem(s): won't save (the entry's Save is refused, and says what's wrong, naming each place) or ⚠ 2 problem(s): saves with a warning (the entry saves, and the publish form lists the problems after saving). Click it for the list, with a fix for each problem that has one (Publish checks). Problems with the page's structure or its tokens (integrity problems) always stop the save; unfinished content (a required field left empty, text too long, a query limit out of range) can be saved where the field allows it. A new field allows it while the entry isn't published (Save drafts only); a field saved before the setting existed refuses. Publish checks Before an entry is published, Builder lists what's wrong with the page, each with a fix where there is one. When: when you use the entry's Save (or Save & Close) with a status that publishes it (open), after opening the editor, Builder checks the page first. If it has problems (or images without alt text), Before you publish opens instead of saving. With nothing to fix, the entry saves straight away. Drafts aren't checked. The list is also there any time from the toolbar's problems button (⚠ 2 problem(s): …), as Problems on this page. The list is grouped by section, in page order. It has the page's problems (the same ones the inspector shows: required fields left empty, text too long, picked entries that can't be shown any more…), and two more: an empty column: a column with nothing in it; an empty section: a section with nothing in it (its columns aren't listed one by one). Each says whether it refuses the save: that follows the field's When the page has problems (Problems). Empty columns and sections are unfinished content, so drafts still save with them. Advice: an image with no alt text, where the page shows the image's own alt text, is listed as advice. The site uses the file's description (or its title) instead, so it never stops a save, but describe the photo for people who can't see it. Parts that have their own alt text field aren't listed: that field is required instead. Fixes, one click each, and each one step you can undo (the list has its own Undo after each): Remove the column: the layout drops to the layout with one column fewer. An even layout takes the grid's even layout (three across with one empty becomes halves, halves become full width); otherwise the column's width goes to the column beside it (8/4 with the 4 empty becomes full width) and the button says which. Where neither is a layout the section allows, there's no fix. An empty layout with one column is removed. Remove the section. Remove the unavailable entries (or Remove entry 48): the deleted picks and those in another channel or site; the others, switched-off ones included, keep their order. Cut to 160 characters: text cut to its field's length limit. Select it, for everything, and the only choice for problems without a fix (a required field to fill in): the list closes and the item (or column) is selected. Fixes are never offered where the page can't change: a locked or structured pattern copy's columns, or a fixed section's, aren't listed as empty at all. Saving anyway: Save with these problems (they don't stop this save) or Try saving anyway (some refuse it: EE shows them on the field) saves the entry as it is. Keep editing closes the list and leaves the editor open. Undo Every change is a step you can undo: Ctrl+Z (⌘Z on a Mac) undoes, Ctrl+Shift+Z (⇧⌘Z) or Ctrl+Y redoes, and the toolbar has Undo and Redo. The editor remembers the last 100 steps while it's open. Keyboard shortcuts Keys What they do F6, Shift+F6 Next or previous column (the Library, the page or Plan, the inspector) Ctrl+Z (⌘Z) Undo Ctrl+Shift+Z (⇧⌘Z), Ctrl+Y Redo Alt+Shift+↑ Select the parent of what's selected Escape Close the editor (asks first if you've changed anything); cancels a drag or move first Moving or adding (move and add mode) ↓ / →, ↑ / ← Next or previous place Page Down, Page Up, Home, End Next or previous section's first place; the first or last place Enter, Escape Drop it there; cancel Applying a token (Apply to…) ↓ / →, ↑ / ← Next or previous item that takes it Page Down, Page Up, Home, End Next or previous section's first item; the first or last item Enter, Escape Apply it there (a menu asks which option when two fit); cancel The publish check Tab, Shift+Tab Through its fixes and Select it buttons Escape Close it (keep editing) On a column divider ←, → (Alt/⌥ for single columns) Move between stops Enter, Escape Apply; cancel On the canvas Escape Select the parent of what's selected Enter Edit the selected item's first field in place Enter on the drag handle Move the selected item with the keyboard (move mode) Enter, Escape (editing in place) Save a one-line field; cancel Ctrl+K (⌘K) (editing rich text) Add a link ↓ on the selection's tab Open its menu (↑, ↓, Home, End, Escape inside it) The Library's tabs ←, →, Home, End Previous or next tab; the first or last In Plan ↑, ↓, Home, End Move through the outline A letter Jump to the next item whose name starts with it (M is Move) →, ← Open or close an item; go to its first child or its parent Enter Select the item; Enter again goes to its first field F2 Select the item and go to its first field Alt+↑, Alt+↓ Move the item up or down Alt+←, Alt+→ Move the item to the previous or next column Delete Remove the item Ctrl+D (⌘D) Duplicate the item M Move the item anywhere it fits (move mode) Shift+F10, the menu key Open the item's menu Shift+↑, Shift+↓; Shift-click Select items side by side in a column (to save them as a pattern) Tab The item's chips, + Add, handle and menu On a token chip Enter, Alt+Enter Apply to…: copy it to another item; move it Delete Put that option back to its default In an entries field Alt+↑, Alt+↓ (on a row's grip) Move the picked entry up or down Enter (on a search result) Add it Escape (in the search) Close the search In a token picker Arrow keys, Home, End Move through the choices Space, Enter Choose Saving The editor never saves anything itself. When you've finished, close it and use the entry's Save (or Save & Close). The page is checked again on save. If it has problems the field refuses, EE shows them on the field and keeps your changes in the form; if the field saves with problems, the entry saves and a warning above the form lists them (Problems). For developers With in , the editor's toolbar has Edit JSON: the page's tree to edit by hand. Applying it is one step you can undo, and it's checked like any other change. See Pages for the tree. With , every Builder field on the site saves pages with content problems and warns, whatever its setting: for development sites, while structure and templates are changing (Pages).","breadcrumb_path":"Editing pages","url":"/docs/variflow-builder/editing-pages"},{"page_id":94,"title":"Overview","navigation_title":"Overview","summary":"","headings":["What's in 1.0","Requirements","Installing","Getting started","Licensing","Support"],"body":"Variflow Builder is a page builder for ExpressionEngine 7 from Bison Digital. Editors compose pages from parts you write as files in the site's repo (section shells, components and patterns), and every design choice they make is one of the site's design tokens: a scheme, a step from a token group, a component variant. There are no free colours, sizes or fonts. Builder needs Variflow Tokens 1.3 or later, which supplies the tokens, the page grid and layout presets, and component variants. Builder reads them only through Tokens' Integration API. 1.0.0 defines the parts, checks them, renders pages from them, and gives editors the full visual editor: the live canvas, Plan, drag and drop, saved patterns and publish checks. What's in 1.0 The parts format: JSON schemas with an EE partial each, in . : checks every part against its schema rules and the live token build, reporting each problem with its file and line. Use it in deploy scripts. Builder › Parts in the control panel: every section, component and pattern with its fields, appearance options and problems, and a Verify button. Sections and components can be edited there too: template and settings in EE's code editor, checked before they're saved, with revisions. The Variflow Builder field and its template tag (Pages): an entry's page, stored as a tree of your parts (never HTML), checked when it's saved and rendered with your partials. Variflow Tokens' usage, build guard, renames, remaps and Undo cover the token references in it. The page editor (Editing pages): full screen over the publish form, with a Library of what fits and of your design tokens, the live page in the centre (your templates through EE's Live Preview, on desktop, tablet and phone, with selection, editing in place and a grid overlay) or Plan (the page as an outline you drag items and tokens around in), and an inspector with Variflow Tokens' pickers. Locked pattern copies offer only what their lock allows. Everything works from the keyboard; EE's own Save saves the page. Saved patterns (Parts, Editing pages): members with Save patterns save a section, or items in a column, as a pattern from the editor; Builder › Patterns manages them; writes one to a file for version control (Verifying parts). Where a field allows it, editors can detach a locked copy. Requirements ExpressionEngine 7.3 or later, PHP 8.2 or later. Variflow Tokens 1.3 or later, installed (with its own update run), with a live build that has a grid (for layouts). Builder refuses to install without it and says why. Installing Copy into your site. In the control panel, Add-Ons › Variflow Builder › Install (or ). Then follow Getting started. Updating: copy the new and over the old ones, then Add-Ons › Variflow Builder › Update (or ). Pages and parts need no changes. Four settings are for developers: adds Edit JSON to the page editor; makes every Builder field save pages with content problems (and warn) instead of refusing them, for development sites (Pages); and turns off editing parts in the control panel, for a server whose parts are deployed from version control (Parts); and names the token group behind every component's Space above and Space below ( by default, for none: Parts). Getting started Parts. Write your first parts in (Parts): a section shell, a component or two, and a section pattern to start pages from. Run until it's clean. The field. Add a Variflow Builder field to a channel (Pages), and give an entry a page: Launch Variflow Page Builder in the publish form (Editing pages). The template tag. Output in the entry's template, with and in the (Pages). Your CSS. Style the parts with your own CSS or a framework: Tailwind, Bootstrap and others (Bring your own CSS). Uninstalling removes only Builder's own records; Builder fields keep their data, and your part files stay where they are. EE asks first, naming the fields that use the fieldtype (the command line doesn't ask). While Builder's files are on the server, EE still renders those fields' pages. Before you delete the files, delete the Builder fields or take their tags out of your templates: EE shows an error page for any template that outputs a field whose fieldtype file is missing. Builder's one table, the patterns saved in the editor, is dropped too, unless pages still hold copies of saved patterns: then it stays, so those copies keep their pattern if Builder is installed again. Export any you want to keep first. Licensing One licence covers one production site, plus any number of development and staging copies of it. Variflow Tokens needs its own licence. Buy Builder in the ExpressionEngine store, then add its key in Add-Ons › Licences (EE checks it automatically; the status refreshes the next time someone loads a control panel page). A 14-day trial. On a production site without a valid licence, everything works for 14 days, counted from the first time Builder sees the problem (a new site, or a renewal that lapsed; adding a key resets it). Builder's trial is its own, separate from Tokens'. Members who can act on it (super admins, and roles with access to Builder) see a banner on Builder's pages and in the page editor counting down the days; they can dismiss it for the browser session. Each Builder field's settings show the licence's state too. After the trial, page layout locks until a licence is added: every section behaves like a locked pattern copy of itself. Editors see one notice in the page editor (\"Builder's licence has lapsed, so page layout is locked. Text and images can still be edited.\"). Always works Stops after the trial, without a licence Front-end pages, template tags, Live Preview Adding, moving, duplicating or removing sections, layouts, columns and components (the Library, the start prompt, drag and drop) Editing and saving text, links, images, picked entries and query options Changing presets, column widths and phone order Every control panel page, , Changing looks, variants, appearance and tokens Detaching a copy, Save as pattern, Builder › Patterns edits, Editing, creating and deleting parts on Builder › Parts (they can still be read there) The server decides, not the editor: a save that changes anything but field values is refused ( ), whatever the field's When the page has problems setting. A page that already has a saved layout always saves when only its words and images change. Only EE's statuses that name Builder as unlicensed ( , ) count. EE's own licence messages about your ExpressionEngine installation (such as or ) never count against Builder, and neither does \"no status\" ( ). Development hosts are always treated as licensed: , , , , , , , and any you add in : To see what an unlicensed site gets on a development host, set (the trial's banner) or (after the trial). It can only take a licence away, never grant one. The full terms are in LICENSE.md. The page editor uses Lit (LICENSE-lit.txt). Support This guide online: gobison.digital/documentation/variflow/builder. Variflow Tokens' guide is at gobison.digital/documentation/variflow. Help and questions: gobison.digital/support or jon@gobison.digital. Version history: CHANGELOG.md.","breadcrumb_path":"Overview","url":"/docs/variflow-builder/overview"},{"page_id":95,"title":"Pages","navigation_title":"Pages","summary":"","headings":["Getting a page on the site","The Builder field","Content and integrity problems","The tree","What's checked","Versions","Template tags","Partials","Variables","Layouts","Query components","Picked entries","When something's wrong","A worked example","The tree"],"body":"A Builder page is one Builder field on an entry. The field stores the page as a tree of your parts: sections, the layouts in them and the components in those. The field's template tag renders the tree with your partials, so the HTML is always your own markup, styled by your design tokens. Getting a page on the site Parts. Write section shells and components in (Parts), and run . The field. In Channels › Fields, add a field of type Variflow Builder to the channel's field group (settings below). The template. Output it inside , with Variflow Tokens' CSS and layout stylesheet in the page's : The Builder field A Builder field is a whole page, so it's a top-level channel field only: it can't go in a Grid, Fluid or Bloqs field (EE doesn't offer it there). Setting Default Section shells The shells editors may add. All ticked means all, including shells added later. All Section patterns The section patterns editors may insert. All Open sections Whether editors may add sections that don't come from a pattern. Off Default section The shell of the new section a drop outside any section makes (dragging a component onto page area). None: no such drops. Needs Open sections. None Layout depth How many levels layouts may nest; a section's own layouts are level 1. 3, or Column dividers Dragging a column divider: snap to the layout presets, or also (holding Alt/⌥) to any whole grid column, stored as custom spans (below). Presets only Allow detaching Whether editors may detach a locked or structured pattern copy. Off When the page has problems What EE's Save does with a page that has content problems: Refuse to save; Save drafts only (save unless the entry's status is open); or Save and warn (always save, with a warning). Integrity problems always refuse the save. Save drafts only (fields saved before this setting existed: Refuse to save) The shell, pattern and open-section rules apply to what an editor adds or changes; a section already on a page stays when you change them. Storage. The page is JSON in the field's own data column (EE 7's per-field tables). Only part names, token references, field values and query settings are stored, never HTML. A page with no sections stores nothing, so is false. Saving checks the whole page against the parts and the live token build (below) and, by the field's When the page has problems setting, refuses it with a message for each problem, naming the node: Content and integrity problems Problems come in two kinds. Content problems mean the page isn't finished. It still renders: what's there shows, an empty required field renders an empty element (or nothing), a query limit out of range is held to . These follow the field's When the page has problems setting: Problem Code A required field is empty A container holds fewer (or more) items than its schema asks for Text longer than its field's A number outside its field's and A query control's outside 1 to A query control's category isn't in its group A component in a column narrower than its An field picks fewer than its or more than its (the first render) A picked entry can't be shown: deleted, or in another channel or site (the page renders without it). A closed, scheduled or expired pick is only switched off: no problem A column with nothing in it (it renders as an empty column) A section with nothing in it: no components in its layouts and none of its own text, link, image or picks fields filled in (it renders as its empty shell) An empty section's columns aren't listed one by one. Empty columns and sections in a locked or structured pattern copy, or in a shell whose content is fixed, aren't problems: their structure is the pattern's or the shell's, and editors can't remove them. Before the entry is published, the editor lists these with a one-click fix where there is one (Editing pages › Publish checks). Integrity problems are everything else, and always refuse the save, whatever the setting: they could break rendering or token safety, and the editor never makes them (only hand-edited JSON, or parts and tokens that changed under the page). They include malformed JSON and a tree of the wrong shape (unknown keys, so no HTML can be put in the tree; values of the wrong type; sections in columns), unknown parts and presets, free styling values ( ) and tokens or schemes the live build doesn't have, layouts the grid can't hold (columns that don't match the preset, the depth cap, a preset too wide for its slot), ids, the field's rules for what editors add (allowed shells and patterns, open sections), and the lock rules on pattern copies and fixed shells. The setting's three choices: Refuse to save (what every field saved before this setting existed gets): any problem refuses the save. Save drafts only (the default for a new field): content problems are allowed unless the entry is published, that is, its status is open (or a status named published). Builder reads the status the publish form posts, else the entry's stored status, else the channel's default status; when it can't tell, it counts the entry as published. Save and warn: content problems never stop the save. When a save goes through with problems, the publish form shows a warning after EE's own \"Entry updated\" message (Page: saved with 3 problems), naming each node. Nothing else changes: the editor still shows each problem on its node, Variflow Tokens' usage is recorded as for any save, and the page renders what it has. For development, in makes every Builder field on the site Save and warn, whatever its setting says (the field's settings say so). Integrity problems are still refused. Use it while page structure and templates are changing; leave it out in production. Revisions and statuses work as for any field: a revision holds the page, and restoring it brings the page back. The publish form shows one prominent button, Launch Variflow Page Builder (and any problem with the field above it), which opens the page editor over the form (Editing pages). The editor writes the tree into the field's hidden input as you work; EE's Save saves it. With in , developers also get Edit JSON in the editor's toolbar; what they apply is checked like any other change. With , every Builder field saves pages with content problems and warns (Content and integrity problems): for development sites. The editor needs its bundle in (part of the add-on's download), and editors' roles need access to the Variflow Builder add-on (Roles › CP Access › Add-ons), because the editor's requests go through Builder's control panel pages. Without it, Launch Variflow Page Builder says the editor couldn't open. The tree Node Keys Page (the tree's version, 1) and . Section , (the shell), ; optional , , , . A copy of a pattern also has , , and ; a detached copy instead (below). Layout , (a grid preset's name), (one list of items per column of the preset); optional (below). Or custom spans: with (below). Component , (the component); optional , , , , (a container's components), (a query component's controls), and , and for a copy of a content pattern (or ). Ids are Builder's: every node has one, unique on the page, and it never changes while the node exists. Tokens' usage list, the live canvas and pattern syncing rely on them. A tree without ids (a pattern, a JSON file) gets them when it's saved. is a scheme reference ( ), a component variant ( ), and the other appearance options are under by control name: a token ( ), or a width for . Nothing else: no colours, sizes or fonts. holds field values by name: a string, a link , an image (a file ID or path, or when the editor gave it alt text), / , a number. Pattern copies record where they came from: (its name), (its version when inserted) and : for a pattern file, for a pattern saved in the editor (a copy inserted before saved patterns existed has no : it's a file pattern's). The name is what links a copy to its pattern, so a copy keeps working when a saved pattern is exported and the file takes over. A section copy also stores its . Each item of a content pattern's copy carries the same three keys. A detached copy (Detach in the editor, where the field allows it) is open: it keeps where it came from, for reports and for synced patterns to skip, and nothing else of the link: A node has or , never both. An field's value is the picked entries' IDs, in the editor's order: , when nothing's picked. Only IDs: no titles, no URLs, so a renamed or moved entry stays picked. IDs are whole numbers above 0, each once (anything else is an integrity problem); too few or too many, or an entry that can't be shown any more, are content problems (Picked entries). A pattern keeps the IDs as they are: copied to another site, they're that site's IDs (usually other entries, or none). holds a query component's control values: . A category is its ID or URL title (a list of them when the control is ), or for any. is a layout's phone order: stacks its columns last column first when they stack (on phones), and left out they stack in order. It's what the editor's On phones sets (Editing pages): In order or Last column first. Those are the only two, whatever the number of columns: a 3-across set to Last column first stacks 3, 2, It renders as , which Variflow Tokens' layout stylesheet lays out. It's appearance: a locked pattern copy keeps its pattern's, and a structured copy may change it when the pattern lists in . Custom spans are what a column divider dragged to a width no preset has stores (with the field's Column dividers set to Any column): . are whole columns of the page grid, one per column, adding up to the grid's columns; none may make a column narrower than the grid's where the layout sits, and only a section shell that allows every preset ( ) may hold them. They render as with each column's span on it, , which Variflow Tokens' layout stylesheet (1.3) lays out: stacked below the grid's breakpoint, side by side from there, like a preset with no tablet spans. Choosing a preset for the layout drops its spans. ( is Builder's name for this; don't name a grid preset .) What's checked Saving checks: Nesting: sections only at the top, layouts with one list per column, components and layouts in columns, containers holding the components they accept; layouts no deeper than the field's depth. Fit: each nested preset fits the slot it's in (its ), and each component its column (its ). Custom spans add up to the grid and keep every column at least wide. Fields: each value the right type for its field (lengths, select options, min and max), and required fields filled in. Appearance: each value one the part offers, and in the live token build (through the Integration API). A token renamed in Tokens is followed. Picked entries: IDs once each; and ; each picked entry on this site, in the field's channels and statuses, published and not expired (content problems, so they follow the save setting). Query controls: only the controls the schema gives, up to , categories that exist in the control's group. Pattern copies: a copy of a pattern can change only its field values: the same parts, layouts and appearance as the pattern. A copy can also change the appearance options its pattern lists in . An copy is the editor's. A copy's can't be changed, and it can be detached (its replaced by ) only when the field allows it (\"Allow detaching\"). A detached copy is open. A copy made from an older version of its pattern isn't checked against the new one (the editor marks it \"Out of date\"). A copy whose pattern has been deleted is open too: nothing holds it to a pattern any more. Fixed shells: a section whose shell has keeps the shell's layouts and components; editors fill them in and style them. Versions is the tree's version. When a later release changes the shape, a stored tree is upgraded as it's read, one version at a time; nothing has to be migrated. A tree newer than the installed Builder isn't rendered or saved over. Template tags Tag Output Every section, rendered. A loop over the sections, for wrapping them yourself. A list of the sections' headings ( ), each linked to its section when the section's outer element has an . As a pair, a loop. How many sections render. In the loop: Variable The section, rendered. Its id ( ). Its shell's name ( ). Its scheme's name ( ), or nothing. The pattern it came from, or nothing. , Its first heading's text, and its outer element's . , Its place, and how many there are. The outline's loop has , ( , or nothing), , and . A hand-built fallback. is 0 for a page with no sections, so a template can fall back to other markup: Partials Each section and component renders its partial ( , ) as an EE template fragment, with Builder's variables. What Builder doesn't set is left for EE to parse with the rest of the template: globals ( , ), and conditionals on them. Variables Variable The node's token attributes: for its look, for its variant (its schema's defaults when the node has none; a look of adds nothing). In a CP preview, also for the live canvas (a partial without gets it on its first element). Put it on the element the look and variant style. A section's layouts, or a container's children. A field's value, escaped for HTML (below). A token control's value as CSS: , following schemes. Also (the reference), (the build's value, ), ( ) and . , A section's content width: , or . Put it on your wrapper as . , The scheme's name ( , or nothing) and the variant ( ). The component's name when its column is narrower than grid columns, otherwise nothing. The column's width is in grid columns, from the presets it sits in (the editor works it out the same way for its \"Shown as List here\"), so it doesn't change with the screen. The width of the column the node sits in, in grid columns (12, 8, 4 …), from the presets it's nested in. , , The node's id, its part's name, and the pattern it came from. in a CP preview, otherwise nothing. , A query component's entries, and how many (below). Each field, by type: Type Also text, textarea, select, url The value, escaped. textarea: (line breaks as ) richtext The HTML, cleaned (no scripts or event attributes). link The URL. , image The file's URL. , (the alt text the page gives it, else the file's description, else its title), , , toggle when on, nothing when off. number The number. A field that its hides in the editor (Parts) still has its variable, with the value it was last set to (or its default): the partial decides what it means. Every field variable is also available without the prefix ( , ), as 0.1's first guide had them. Values are always escaped, and EE tag braces in them are encoded, so content never becomes a tag. EE's variable modifiers ( , ) aren't applied to Builder's variables. Use with any of them: , , . Builder takes your markers (and any other attribute) out of the HTML it sends to visitors; they're only for the live canvas. Layouts A layout renders as the preset's attributes from Variflow Tokens' layout stylesheet, with one per column: The layout stylesheet ( ) sets the columns, the gutter and how they stack. Each column's width is worked out from the presets around it (a 6/6 in the 8 of an 8/4 gives two columns of 4), for and . Query components A query component runs its query itself, through EE's models, not a nested : the schema's channels, statuses and order, on the current site, published (not future or expired), filtered by the editor's categories, up to the editor's limit (never more than ). Each distinct query runs once per request, however many times it's on the page. To cache the page's output across requests, use EE's template caching. In : Variable , , The entry. Its date, with EE's date formats. Its URL: its Structure (or Pages) URI when it has one, otherwise the channel's comment URL (or channel URL) and its URL title. , , , the schema's Each custom field the schema maps ( gives ). When nothing matches, is empty and is 0. With the component isn't rendered at all, heading included; without it, the partial still renders, so it can say there's nothing yet. Picked entries A component with an field (Parts) gives its partial the same loop and variables as a query component, with the editor's picks in the editor's order. They're fetched in one query however many are picked (the same query a query component runs, narrowed to the picked IDs): the field's channels and statuses, on the current site, published (not future or expired). A pick that's been deleted, closed, moved to a channel the field doesn't take, scheduled or expired since is left out, quietly: no error on the page, and the rest keep their order. The editor names a closed, scheduled or expired pick with a quiet note (\"Not shown while it's closed\"); it isn't a page problem, and it shows again when the entry is reopened. A deleted pick, or one in another channel or site, shows as unavailable, saying why, with Remove. and count what's rendered, and too. More picks than (a page saved with that problem) render the first . With nothing to show (nothing picked, or none of them can be shown) and , the component isn't rendered at all, heading included; without it, the partial renders with an empty loop and 0. To find the pages that pick an entry: (Verifying parts). When something's wrong A node whose part has gone, that no longer validates against the parts or the live build (a token removed, a preset renamed: an integrity problem), or whose partial is missing or can't be parsed (a broken conditional), renders nothing on the site, and Builder writes what and why to EE's Developer Log. The rest of the page renders. CP members looking at the entry in Live Preview (and the editor's canvas) see a notice in its place. A node with only a content problem (an empty required field, text over its , a component in too narrow a column) renders what it has, with no notice: a page saved with problems shows what's there. In Live Preview every node's element also carries (on the element with , else on the partial's first element), for the editor's canvas (Parts › Previewing in the editor). Visitors' pages never have attributes or the canvas's script. A page of 30 sections renders in about 10 ms on a developer's machine, once its parts are read (about 45 ms for the first page of a request), not counting queries. Parts and partials are read once per request. A worked example A component ( ) and its partial: A page with a band holding two of them side by side: The tree And what outputs (the band's partial is ): Rename in Variflow Tokens with Rewrite references and this page's tree is rewritten with it; Undo puts it back. Token usage lists it as \"Shop › Section › Product card › tag_colour\", linked to the entry, and a token build that removes a token this page uses is refused.","breadcrumb_path":"Pages","url":"/docs/variflow-builder/pages"},{"page_id":96,"title":"Parts","navigation_title":"Parts","summary":"","headings":["The folder","Editing parts in the control panel","Common keys","Icons","Fields","Conditional fields","Appearance","Space above and Space below","Tokens only","Sections","Components","Recommended image part","Query components","Picked entries","Patterns","Saved patterns","Name clashes","Exporting a saved pattern","Trees","Partials","Previewing in the editor"],"body":"Editors build pages in Variflow Builder from parts that you, the developer, write as files in the site's repo. There are three kinds: Kind File What it is Section shell + The top level of a page: a band with a look, spacing and a width, holding layouts. Component + Something a column holds: a heading, a button, a card. A container holds other components; a query component lists entries. Pattern A saved piece of a page, built from sections and components. No partial of its own. Site builders can also save patterns from the page editor (Saved patterns). Each schema ( ) says what editors fill in and which design choices they get. Each partial ( ) is the EE template markup that renders it. Parts style only with design tokens: a schema can offer a scheme, a step from a token group or a component variant, never a colour, size or font written out. Check your parts with , or on Builder › Parts in the control panel, where you can also edit sections and components. To style them with plain CSS or a framework (Tailwind, Bootstrap and others), see Bring your own CSS. The folder Parts live per site, in a fixed folder beside the site's templates: isn't a template group (it has no suffix), so EE never routes it. On a multi-site install each site has its own folder, under its short name. File names are lowercase: letters, digits and underscores, then , or . Anything else in the folder is reported as a warning and ignored. A site with no folder has no parts. That's a note, not an error. Change them in your code editor and deploy them like templates, or edit sections and components on Builder › Parts (Editing parts in the control panel). writes a pattern file when you run it. Nothing else writes them. Editing parts in the control panel Builder › Parts lists every part. A section or component has Edit (or View, for a member who can't change it), and New part at the top starts one. The edit screen has two tabs, Template (the partial) and Settings (the schema), in EE's code editor with the Template Manager's highlighting. Beside them: the problems, what editors get from the part (its Library entry, sidebar fields and appearance), and the pages that use it. ⌘S or Ctrl+S saves. Check runs the same checks as on your changes without saving them. Each problem names its tab and line; click it to jump there. A problem the change causes elsewhere (a container that accepts the component, a pattern that uses a field) is listed too. Save checks first. Errors stop it, so a mistake never reaches the page editor or the site; warnings don't. Problems the site already had in other parts don't stop it either. If the files changed on disk after you opened them (a deploy, a code editor, another member), Save doesn't overwrite them. It shows what changed between the disk version and yours, and you choose: discard yours, or Save mine over it. New part starts from a small working section or component, or a copy of an existing part under a new name. Nothing is written until you create it, and it's checked first. Revisions: every save keeps the version saved, and first the version on disk when it was changed outside the control panel, so that isn't lost either. The last 20 per part are kept. Compare one with the current files, or open it in the editor and save it to restore it. Delete removes both files. It's refused while any page uses the part (they're listed), or when removing it would break another part. A deleted part's last version stays in its revisions, and Deleted parts on Builder › Parts brings it back. Renaming isn't offered: pages store a part's name. Make a copy under the new name instead. Writes are atomic: each file is written beside the old one and renamed over it, so a reader sees the old file or the new one, never part of either. Nothing extra is left in . Who can: parts are template code, so this follows EE's template partial permissions: Edit template partials to change one, Create to add one and Delete to delete one, each with Access Design (super admins always). Anyone who can open Builder's pages can read a part. If the web server can't write to , the screen opens read-only and says why. Version control: an edit here changes the files on that server only. On a site whose parts are deployed from a repo, edit them in the repo, or copy changes made here back into it before the next deploy overwrites them. To turn editing off on such a server, add this to : Builder › Parts then shows the files read-only, with a note saying why. Patterns aren't edited here: saved patterns have Builder › Patterns, and pattern files are edited in your repo. Common keys Every schema is a JSON object. Unknown keys are errors, so a typo ( ) is caught rather than ignored; verify suggests the key you meant. Key required The part's name: lowercase letters, digits and underscores, starting with a letter. It must match the file name ( for ) and is unique per kind. required What editors see. required A sentence for the part picker. optional An icon name (lowercase letters, digits, hyphens), such as or : the part's icon in the editor's Library, Plan and the canvas's selection tab. See Icons. required A whole number, 1 or more. Raise it when you change a part in a way stored pages should know about. optional Your own notes. Ignored. optional Sections and components: how the editor's canvas shows an edit. (the default) redraws just the section; reloads the whole page. See Previewing in the editor. Icons The editor draws its own small set of icons (it uses no icon font). A part's icon is: its , if it's one of the names below; otherwise the icon for the part's , if that's one of them (a component called gets the heading icon, the quote, the image); otherwise its kind's: a section, a component or a pattern (layouts and columns have their own). So an the editor doesn't draw is no error: the part falls back to (2) or (3). Verify still checks the name's form (lowercase letters, digits, hyphens). Names A heading. , Text. , , , , An image. , , , A button, or a row of them. , , A link. , , , A list. , A feature. , , , A quote. , A card. , A panel. A product or a label. Stories, entries. , Dates, events, trips. , Reading, stories. , A sign-up, email. , , A call to action. , A home page part. , A band. , A footer. , Columns. , Rows. , The outdoors. , , Video. , , A map, a place. A form. , , A divider. An accordion. A table. , , , , , The kinds' own icons. Fields is a list of what editors fill in. Sections and components have fields; patterns don't. Every field has: Key required Unique in the part. Lowercase letters, digits and underscores; it can't start with . required What editors see. required One of the types below. optional or (the default). optional The value a new part starts with. It must suit the type (below). optional : editable in place on the canvas (from Builder's live canvas). The partial must mark the element with . Text, textarea, rich text, link and image fields can be inline. optional Help text under the field. optional Show the field only when another field has certain values (below). The types, and their own options: Type Options Default , a string ( ) , , a string : , or a string a string none; a URL and its label or : or a list of upload directory IDs or names (editors pick the file). Stored as a file ID, a path or URL, or (a Variflow asset); with alt text ; decorative , whose is (required): a list of one of the values (the first, if left out) none or , , a number within min and max, or (required), , , (required), , : Picked entries (editors pick the entries) An option that belongs to another type is an unknown key. A select option's value can't be a styling value ( , ): offer a token group as an appearance control instead. Conditional fields shows a field only when an earlier or field of the same part has certain values, so editors don't see options that don't apply: shows it for those values; shows it for any other. A select's values are its option values; a toggle's are and . The named field's default counts when a node hasn't set it. checks what it names: a field of the same part ( ), listed earlier, so the inspector reads top down; a or ( ); values that field can have ( ); and one level only: the named field can't have a of its own ( ), so there's no chain and no cycle. A field can't name itself. A hidden field keeps its value. The inspector doesn't show it, but the page keeps what it was set to, so switching back brings it back. A field that's hidden isn't required. The renderer still passes it. is there whether the field shows or not, so the partial decides what a hidden value means (Fernhaven's Image writes only when the shape crops), as it would without . Appearance is the design choices a part offers editors, by control name. Every control is backed only by tokens and has a . There are four kinds. : a scheme from the token file. Key (the default) or a list of scheme names, without ( ). A scheme name, or : no scheme of its own, so it takes the section's. Optional ( ). : a component variant group from the token file (Variflow Tokens' guide, Component variants). Key , or just . A variant reference: . Optional ( ). (sections only): the content width, from the grid's containers. Key Any of , and (all three when left out). and are the token file's ; is the whole width. One of . It's also the section's default content width; a section without a container control is . Optional ( ). Any other name ( , , , , …): a step from a token group. Key required: a token group path, such as or , or a list of them ( ) that don't overlap. Editors pick one of their tokens, never one the token file hides ( , Variflow Tokens 1.3.0). optional: the token type the group must hold ( , , …). A control named is unless it says otherwise. required: a token in the group (in one of them, for a list), such as . optional (from the name). Space above and Space below Every component also gets two appearance options you don't declare: Space above and Space below, from the site's spacing scale (the token group). An editor picks a step for one item; Standard, the default, outputs nothing, so your stylesheet's own spacing applies. A picked step is an inline margin on the component's outer element ( and , such as ), added to the first element of its rendered partial, so it overrides the gap your CSS puts between items with nothing to add to the stylesheet. The partial needs one outer element: markup that starts with text or a tag pair (such as ) can't take the margin. Wrap it in an element. They're stored like any appearance value ( ), so the checks, locks, lists in structured patterns, the licence, and Variflow Tokens' usage, renames and remaps cover them. A component that declares its own or control keeps it. Add to a component's schema to leave both out (a divider, a full-bleed band). Another group: in . turns them off everywhere. Verify warns ( ) when the group has no dimension tokens in the live build. Sections already offer their own spacing controls, so they don't get these. Tokens only There are no free colours, sizes or fonts anywhere in a part. Verify fails a schema that tries one, such as a key, a control's default of , , or a font stack, or a container width in pixels. Name a token group instead, and add the tokens to the token file if they aren't there. Sections A section shell ( ) is the top level of a page. It holds layouts: a layout preset from the grid with a list of items per column. Besides the common keys, fields and appearance: Key optional (the default: every preset in the grid) or a list of preset names ( ). optional (the default): editors add, remove and arrange layouts and components. : the section always has the layouts in ; editors fill them in. for fixed The layouts it starts with (open) or always has (fixed), in the tree shape. The section's default content width is its control's default (or ). Components A component ( ) is something a column holds. Besides the common keys, fields and appearance (any control but ): Key optional Makes it a container (a card, tabs, an accordion): . Containers hold components, not layouts or sections. Every name in must be a component. optional The narrowest column it fits, in grid columns. Between the grid's and its ; the grid's when left out. optional An alternative for narrow slots: . In a slot narrower than grid columns the partial gets = , so three across can become a list. The editor's Plan and inspector say so where it applies (\"Shown as List here\": is the word they use). The slot is the column's width in the grid, from the presets it's nested in, so the same markup is used on every screen. optional Makes it a query component (below). A query component can't also be a container. Recommended image part An image should fill its column unless the editor says otherwise. Two things go wrong without care: has a 40 px margin in every browser, and an with no width is its own size. Fernhaven's component is a pattern to copy: positioning is a few fields (fixed lists, never free values), and the partial turns each choice into a class or data attribute that your stylesheet styles. Abridged from : The defaults ( , ) are what a node stored before these fields existed gets, so adding them later leaves existing pages as they were. Raise the part's when you do. Focus and Align show only when they apply (conditional fields): Focus when the shape crops, Align at natural size, matching what the partial uses (it writes only when the shape crops, only at natural size). A value set before it was hidden stays on the page. The editor's choices reach the page as class names and attribute values from your own option lists, never as inline CSS; the only inline style is a token ( ). Query components A query component lists entries. You fix the channels and the rules; editors get only the controls you expose. Key in required Channel short names. optional Statuses to show ( , the default). optional (the default), , , or . optional (the default) or . required How many, by default. required The cap: editors can never ask for more. At most 100. optional What editors may change, by name: filters by a category, and lets them choose how many, up to . optional Custom fields to have in , by variable name: gives . Each must be a field of one of the channels. optional : when nothing matches, the component isn't rendered at all, heading included. Otherwise its partial renders with no entries (Pages). Picked entries An field lets editors hand-pick entries (featured products, related stories) and put them in order. The partial loops over them with the same pair and variables as a query component (Pages), in the editor's order. You fix the channels and statuses; editors search those, pick, reorder and remove. Key on the field required Channel short names editors pick from. optional Statuses an entry may have to be picked and shown ( , the default). required The most editors may pick. At most 50. optional The fewest (0, the default). optional Custom fields to have in , as a query's : gives . Each must be a field of one of the channels. optional : when nothing is picked, or none of the picks can be shown, the component isn't rendered at all, heading included. The rules: One loop per component. A component has at most one field, and one with an field can't also have a (or ), so always means one list. An field on a section shell is refused too. Not inline, and its is : entry IDs differ from site to site. Verify checks the channels exist and each mapped field belongs to one of them, as for queries. Too few or too many picks ( , ) and a pick that can't be shown any more (deleted, or moved to another channel or site) are content problems: they follow the field's \"When the page has problems\" setting, and the page renders without them (Pages). A pick that's closed (in a status the field doesn't show), scheduled or expired is only switched off: the page renders without it, and it's no problem at all. It shows again when the entry is reopened, so closing an entry never stops a page from saving. Its partial is ' markup: the same loop. Patterns A pattern ( ) is a saved piece of a page that editors insert whole. It has the common keys and: Key required : inserted as is; editors change only its words, links and images (field values), never its parts, layouts or appearance. : the same, but editors may also change the appearance options in . : a starting point, freely editable once inserted. A page's copy records the pattern, its version and its lock (Pages). required : the tree is a list of sections. : the tree is anything a column holds (components, containers, layouts), for any column wide enough. structured only The appearance options editors may still change: , , a control name ( ) offered by a part in the tree, or (a layout's phone order, for a pattern with a layout of two or more columns). required The pattern itself, in the tree shape. A content pattern fits only where every preset and component in it fits. Verify works out the narrowest slot it fits (Builder › Parts shows it, as \"fits 9+ columns\"). Saved patterns Patterns don't have to start as files. In the page editor, a member whose role has Save patterns can select a section, or items side by side in a column, and choose Save as pattern (Editing pages). The pattern is stored in the database (Builder's table), not in , and from then on it's a pattern like yours: It's checked exactly as a pattern file is (the same schema rules, the live token build, fit and depth, parts that exist), and it can't hold HTML: plain text fields hold words, rich text only what the editor's rich text makes. The Library offers it in every Builder field that allows it, next to the file patterns, marked Saved; copies follow its lock; verify checks it (its \"file\" is ); Builder › Parts lists it with who saved it and when. Builder › Patterns in the control panel lists the saved patterns with where they're used, and lets members with Save patterns change the label, description, icon and lock, edit the tree in the editor (\"Edit tree\"), or delete one. A new lock or a new tree is a new version. Super admins choose there which roles have Save patterns. Name clashes A pattern's name is unique on the site, file and saved patterns together: Saving a pattern in the editor with a file pattern's name is refused (\"the file would win\"). If a pattern file appears later with a saved pattern's name (you exported it, or a colleague added one), the file wins: the saved one isn't used, and verify warns ( ), naming the file and the saved pattern. Delete the saved one (Builder › Patterns, or ), or rename it. Copies on pages find their pattern by its name, so a saved pattern's name can't change once a page uses it. Exporting a saved pattern To keep a saved pattern in version control, write it to a file: The file is in this format, with the pattern's version, lock, editable options and tree; commit it and deploy it like your other parts. Verifying parts has the options ( , , , ) and exit codes. Once the file is in place, (or deleting the saved one) lets the file take over: copies keep working, because the name is the same. Trees Patterns, and sections' starting layouts, are written in the same shape a Builder page stores (Pages › The tree has all of it): Node Keys Section (the shell's name) and ; optional , , , . A page also stores , and , , and on a pattern's copy ( on a detached one: Pages). Layout (a grid preset's name) and : one list of items per column of the preset. Optional ( ) and . Component (the component's name); optional , , , , for a container, for a query component's controls. Optional . is a scheme reference ( ) and a variant reference ( ); the other appearance options go under , by control name, with a token name as the value ( ), or a width for . holds field values by name, each the right kind for its field. Sections are top level only. A section holds layouts. A layout has one list per column. A column holds components, containers and further layouts, never a section. Layouts nest at most 3 levels deep (a section's own layouts are level 1). Set in to change it. Everything must fit: a nested preset needs a slot at least its wide, and a component a column at least its . A 3-across (minSlot 9 on a 12-column grid) fits in an 8/4's wide column only if the 8 is 9 or more, so it doesn't. Partials The partial beside each section and component schema is EE template markup: Builder renders it with the node's values (Pages › Partials lists every variable). In short: for the look and variant attributes, where a section's layouts or a container's children go, for each field ( , ), for a token control's CSS value ( ), , , and in a query component and . Verify checks that the partial exists, and that: every field's element carries (an error if not), and no other element does (a warning). Builder takes these markers out of the HTML visitors get; a section's or container's partial has , where its layouts or children go (a warning if not). Previewing in the editor The editor's canvas shows the entry's real page through EE's Live Preview, rendered with your partials. In that preview (and only there: never for visitors, never in EE's own Live Preview without the editor) Builder adds to every node's element and keeps the markers, and the page carries a small script that talks to the editor. When an editor changes a field or an appearance option, the editor asks the server for just that section's HTML and swaps the section's element in place. marks the element that shows an field, and makes it editable on the canvas. Put it on the element that holds only the field's text: the around , the around a link's label, the or its wrapper for an image. Text fields are edited as plain text, rich text as HTML with a small toolbar, images by double-click. is for parts whose markup a page-level script sets up once (a slider, a lightbox, a masonry grid) and that would come back from a swap inert. A change anywhere in a section holding such a part reloads the whole page instead (keeping the scroll position and the selection). The default is . Partials that preview well: One outer element. Builder puts the node's id on it (or on the element with ), so the canvas can outline it, select it and swap it. A partial that starts with text, or has several top-level elements, can't be outlined as a whole. on that outer element, so the look, the variant and the id are in one place. Markers on simple elements. A element that also holds other markup (an icon, another field) still works, but editing in place can only change its text. An empty optional field isn't on the page when its markup is inside . That's right for visitors; editors fill it in from the inspector. Styles that don't depend on what came before. A swapped section is new markup in the same place; CSS that targets it by structure keeps working. Scripts that bind to elements once, on page load, don't see it: use event delegation, or . No IDs that clash. Two copies of a part on one page mean two of every in its partial.","breadcrumb_path":"Parts","url":"/docs/variflow-builder/parts"},{"page_id":99,"title":"Verifying parts","navigation_title":"Verifying parts","summary":"","headings":["Exit codes","Output","JSON","In a deploy","Exporting a saved pattern","Finding where an entry is picked"],"body":"loads a site's parts and checks each one, in two passes: Structure. Every key known and every value the right type; names unique and matching their files; each section's and component's partial present, with inline fields marked; containers naming real components; pattern and section trees well-formed (sections only at the top, layouts nested at most three deep); no free colours, sizes or fonts. The live token build, through Variflow Tokens' Integration API: every scheme, token group (and its type), variant group and container exists; defaults are real tokens, schemes and variants; the presets sections name exist; is within the grid; every preset and component in a tree fits where it sits. Query components' channels and category groups, entries fields' channels and mapped fields, and image fields' upload directories, are checked against the site. It reads files (and the patterns saved in the editor, which it checks the same way: their \"file\" is ) and writes nothing. Option , A site's ID or short name. The first site when left out. , Print the result as JSON (below). Fail on warnings as well as errors. Exit codes Code The parts are clean (warnings allowed, unless ). A site with no folder is clean too: there's nothing to check. Problems: at least one error, or with a warning. It can't run: Variflow Tokens isn't installed, its Integration API is older than 3 (Tokens 1.3), the site has no live token build, or there's no such site. Output As 's: the site and a headline, then errors grouped by code, warnings and notes. Each problem ends with its file (in ) and line. Warnings are problems that don't stop a part working: a partial with no schema, a file that isn't a part, a marker on a field that isn't inline, a deprecated token as a default, a narrow layout that can never apply, or a pattern file and a saved pattern with the same name ( : the file wins; Parts). JSON prints one object: Key , The site checked. Its folder (null when it couldn't run). , , The result, as the exit code. Why it couldn't run, or null. , , , , . Each part that loaded: , , , , , , , , , , the kind's own keys, and (how many). A pattern has ( or ), and a saved one ( , , , , ). Each problem: ( or ), , , , , (the JSON pointer in the file). A problem with the site as a whole (no grid in the build) has no file. Notes, such as a missing folder. In a deploy Run it after (or ), so the parts are checked against the token build you're deploying: Exporting a saved pattern writes a pattern saved in the editor to a pattern file, so you can commit it (Parts), then checks the file it wrote as verify checks a pattern file. Option The saved pattern's name. , A site's ID or short name. The first site when left out. , Write into this folder instead of the site's . , Overwrite a file that's there. Without it, an existing file is never touched. After a clean export into the site's own , remove the saved pattern: the file takes over. Copies on pages keep working, since they find their pattern by name. Refused with somewhere else. It writes (two-space indents, a final newline) and prints any problems in it, each with its line. Exit codes are verify's: Code Written, and the file is clean. Written, but the file has problems (the saved pattern names a part or token that's since gone, say): fix the saved pattern and export again. With nothing is removed. It can't run: no saved pattern by that name, the file exists (and no ), the folder can't be written, outside the site's patterns folder, or no such site. Finding where an entry is picked lists the Builder pages whose fields pick that entry (Parts): before you close or delete an entry, say. It reads the pages' stored trees and writes nothing. Option , The entry's ID. , A site's ID or short name. The first site when left out. , Print the result as JSON: , , and , each with and (the page and its Builder field), , , , (1 for the first pick) and . It exits 0 whether or not the entry is picked, and 2 when it can't run (no entry ID, no such site, or Builder isn't installed).","breadcrumb_path":"Verifying parts","url":"/docs/variflow-builder/verifying-parts"},{"page_id":7,"title":"Variflow Builder License","navigation_title":"License","summary":"","headings":["Variflow Builder Commercial License Agreement","1. License Grant","2. Development and Staging","3. Licensing and Versions","4. Permitted Use","5. Restrictions","6. Client Projects","7. Ownership","8. Your Parts, Pages and Output","9. Third-Party Software","10. Your Content and Data","11. Updates and Support","12. Termination","13. Disclaimer of Warranty","14. Limitation of Liability","15. Changes to This License","16. Contact"],"body":"Variflow Builder Commercial License Agreement Version 1.0 Copyright © 2026 Bison Digital. All rights reserved. This Commercial License Agreement (\"License\") governs the use of Variflow Builder (\"Software\"), an add-on for ExpressionEngine developed and distributed by Bison Digital. 1. License Grant Subject to the terms of this License and payment of the applicable license fee, Bison Digital grants you a non-exclusive, non-transferable license to install and use Variflow Builder on one production ExpressionEngine website for each license purchased. A \"production website\" is one ExpressionEngine installation serving a public domain, including its subdomains and language versions run from the same installation. One installation counts as one production website, including every site it serves through Multi Site Manager. 2. Development and Staging Each license also covers any number of local, development and staging copies of the licensed website, provided they are used only to build, test or maintain that website and are not publicly offered as a separate site. 3. Licensing and Versions Each license applies to the website it was purchased for and is validated by ExpressionEngine's add-on licensing. A production website that uses Variflow Builder without a valid license may use it fully for a 14-day trial, during which the control panel displays a notice. After the trial, page layout is locked until a license is added: editors can still edit and save the text, links and images of existing pages, but can't add, move or remove sections, layouts or components, change their appearance, or save or export patterns, as described in the documentation at https://gobison.digital/documentation/variflow/builder. Pages built with Variflow Builder keep rendering on the website. Bison Digital may change the pricing, licensing model, features, support terms or availability of future versions of Variflow Builder. A version of Variflow Builder lawfully obtained under this License may continue to be used under the terms that applied to that version. Major future releases may require the purchase of a new license, upgrade or other commercial arrangement. This License does not guarantee access to future major versions, premium features, services, updates or support. 4. Permitted Use You may: Install and use Variflow Builder on websites you have licensed, including websites you own, manage, or build for clients. Use Variflow Builder in commercial website development projects. Modify Variflow Builder for the purposes of integrating it into a website for which you are licensed. Make reasonable backup, development and staging copies associated with licensed installations. 5. Restrictions You may not: Install Variflow Builder on more production websites than you hold licenses for. Sell, sublicense, publish, distribute or redistribute Variflow Builder as a standalone product. Repackage Variflow Builder and offer it as your own add-on, product, library or development tool. Make Variflow Builder available for download or distribution to third parties except as necessary to deliver a licensed client website. Remove, bypass or interfere with Variflow Builder's license checks or license notice, or remove or obscure copyright, licensing, attribution or proprietary notices contained within the Software. Use Variflow Builder or substantial portions of its source code to create and distribute a competing page builder, design token product or ExpressionEngine add-on. Claim ownership or authorship of Variflow Builder or any portion of the Software owned by Bison Digital. 6. Client Projects You may include Variflow Builder as part of a completed ExpressionEngine website delivered to a client, provided that website is licensed. The client may use Variflow Builder as part of that website but does not receive the right to separately redistribute, resell, sublicense or repackage Variflow Builder. A license may be transferred with the website it was purchased for, for example when a client takes over hosting, where ExpressionEngine's licensing allows it. 7. Ownership Variflow Builder is licensed, not sold. Bison Digital retains all right, title and interest in Variflow Builder, including its source code, interface, documentation, branding and other original materials, except for third-party components identified separately. No ownership rights are transferred under this License. 8. Your Parts, Pages and Output The parts you write (schemas and partials), the patterns you save, the pages stored in your entries and the HTML your templates render from them belong to you. They are not part of the Software, and you may keep and use them after this License ends. Example parts and stylesheets included with the Software or its documentation may be used and adapted freely on licensed websites. Variflow Builder requires Variflow Tokens, which is licensed separately under its own license. 9. Third-Party Software Variflow Builder's page editor incorporates third-party components, including Lit (BSD 3-Clause License, included as ). Third-party components remain subject to their respective licenses and copyright notices. Nothing in this License is intended to restrict rights granted by, or override obligations imposed by, those third-party licenses. 10. Your Content and Data Variflow Builder runs on your server. It does not send your content, parts, pages, settings or visitor data to Bison Digital. License validation is handled by ExpressionEngine. 11. Updates and Support Unless separately stated by Bison Digital, this License does not guarantee technical support, maintenance, updates, compatibility updates, new features or future releases. Bison Digital may discontinue support or development of any version of Variflow Builder at its discretion. 12. Termination Your rights under this License terminate automatically if you materially violate its terms. Upon termination, you must stop using Variflow Builder on unlicensed websites and stop distributing or creating new installations of it. Bison Digital may provide an opportunity to remedy a violation before termination where appropriate. 13. Disclaimer of Warranty THE SOFTWARE IS PROVIDED \"AS IS\" AND \"AS AVAILABLE,\" WITHOUT WARRANTIES OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT, TO THE MAXIMUM EXTENT PERMITTED BY LAW. 14. Limitation of Liability TO THE MAXIMUM EXTENT PERMITTED BY LAW, BISON DIGITAL SHALL NOT BE LIABLE FOR ANY INDIRECT, INCIDENTAL, SPECIAL, CONSEQUENTIAL, OR PUNITIVE DAMAGES, OR FOR LOSS OF DATA, REVENUE, PROFITS, OR BUSINESS ARISING FROM THE USE OF OR INABILITY TO USE VARIFLOW TOKENS, INCLUDING CHANGES MADE TO STORED ENTRY DATA BY THE PAGE EDITOR, ITS FIXES, OR UNINSTALLING THE SOFTWARE. YOU ARE RESPONSIBLE FOR KEEPING BACKUPS OF YOUR WEBSITE AND DATABASE. 15. Changes to This License Bison Digital may publish different licensing terms for future versions of Variflow Builder. Changes to the license for a future release do not retroactively alter the license granted for a version you previously obtained unless you expressly agree to the new terms. 16. Contact Questions regarding commercial licensing, multi-site or agency licensing, redistribution, OEM use, or other uses not permitted by this License may be directed to Bison Digital at jon@gobison.digital. Documentation, including this License, is published at https://gobison.digital/documentation/variflow/builder. Variflow Builder is a product of Bison Digital.","breadcrumb_path":"License","url":"/docs/variflow-builder/license"},{"page_id":8,"title":"Variflow Builder Changelog","navigation_title":"Changelog","summary":"","headings":["Changelog","1.0.0 (unreleased)"],"body":"Changelog 1.0.0 (unreleased) The first release. Editors build pages from parts you write; every design choice they make is one of the site's design tokens. For developers Parts (Parts): section shells, components (containers, query components, picked entries) and patterns, each a JSON schema with an EE partial in . Appearance is tokens only: schemes, token groups (a control may offer several groups), component variants and the grid's containers. Fields can be text, rich text, links, images with alt text, selects, toggles, numbers and picked entries, and can show only when another field has a value ( ). Strict: unknown keys are errors. (Verifying parts) checks every part against its schema and the live token build, with file and line for each problem. , and ; exit 0, 1 or 2, for deploy scripts. Builder › Parts shows the same in the control panel. Edit parts in the control panel (Parts): a section's or component's template and settings in EE's code editor, with Check (the same checks as verify, with the line of each problem) and a save that's refused on errors or when the files changed on disk since they were opened. New part (blank or a copy), revisions with compare and restore, and delete for parts no page uses. EE's template partial permissions decide who can; turns it off on a server deployed from version control. Space above and Space below on every component (Parts): editors pick a step from the site's spacing scale for one item, or keep Standard (the site's own spacing). Output as an inline margin on the component's outer element; stored as appearance, so checks, locks, the licence and Tokens' usage cover it. leaves them out of a component; picks another group or turns them off. The editor's canvas runs add-on and module tags ( ) when it redraws a section after a change, as the page does. Before, a part using one showed its raw tag until the page reloaded. A part whose settings aren't valid JSON now says why (\"Syntax error\") instead of \"No error\". The Variflow Builder field (Pages) stores a page as a tree of your parts (JSON, never HTML) and checks it on save: nesting, fit, required fields, values against the live build, locks, and the field's settings (allowed shells and patterns, open sections, the default section, depth, column dividers, detaching, and When the page has problems: refuse, save drafts only, or save and warn). Revisions work as for any field. Rendering: , its loop, and . Partials get the node's fields, appearance, , , , and more; layouts render with Variflow Tokens' layout attributes ( , , ). Query components and picked entries loop through , one query each, with Structure permalinks. A node that no longer validates renders nothing and is logged. EE's outputs the field's tag. Bring your own CSS (guide): the hooks Builder and Tokens give your stylesheet, a working cascade-layer order, and setup notes for plain CSS, Tailwind, UnoCSS, daisyUI, Bootstrap, Bulma, Foundation and Open Props. Saved patterns: members with the Save patterns permission save a section, or items in a column, as a pattern from the editor; Builder › Patterns manages them, and writes one to a file for version control. lists the pages that pick an entry. Builder pages are a Variflow Tokens content source: usage, the build guard, renames, remaps and Undo cover the tokens they use. Licensing EE's add-on licensing, with a 14-day trial: a production site without a valid licence works fully for 14 days from the first time Builder sees the problem, with a banner counting down for members who can act on it. After that, page layout locks: editors can still edit and save text, links, images and picked entries, but sections, layouts and components can't be added, moved or removed, appearance and tokens can't change, and Save as pattern, Builder › Patterns edits and stop. Front-end pages, template tags, Live Preview, verify and every control panel page never stop. Builder's trial is its own, separate from Variflow Tokens'. See Licensing. The guide is online at gobison.digital/documentation/variflow/builder. For editors (Editing pages) Image fields show a thumbnail and the file's name. Drop an image file on the field (or on the item in the live page) to upload it into the File Manager, or use Upload, Choose file or From Assets (Variflow's logos and other files, which then follow the Assets page). Alt text shows the file's description it falls back to, and Decorative marks an image screen readers should skip. A file's name is never used as alt text. The page editor opens full screen over the publish form: a Library of what the field allows (components, patterns and your design tokens), the live page in the centre (your own templates through EE's Live Preview, at desktop, tablet and phone width) or Plan (the page as an outline), and an inspector with Variflow Tokens' pickers. EE's own Save saves the page. Edit on the page: click to select, edit marked text and images in place, drag items and tokens to where they fit (only valid places are offered), resize a layout's columns with its dividers, and set On phones: Last column first. Undo and redo, 100 steps. Patterns: start a page from the most-used section patterns; locked and structured copies offer only what their pattern allows; detach a copy where the field allows it. Publish checks: saving as published lists the page's problems first (empty columns and sections, missing required text, unavailable picked entries, text too long) with one-click fixes you can undo, and advice on images without alt text. Switching entries off. A picked entry that's closed, scheduled or expired is left off the page and isn't a problem: saving goes ahead and it shows again when reopened. The editor names it with a quiet note. Only a deleted pick, or one in another channel or site, is a problem. Everything works from the keyboard, with screen-reader announcements, in both CP themes. Requirements: ExpressionEngine 7.3 or later, PHP 8.2 or later, and Variflow Tokens 1.3 or later with a live build. Builder refuses to install without them and says why, including when Tokens' files are new enough but its update hasn't run. Earlier 0.1.0 previews were never released. A site that ran one updates to 1.0.0 through EE's add-on update, with nothing to change in its pages or parts.","breadcrumb_path":"Changelog","url":"/docs/variflow-builder/changelog"},{"page_id":100,"title":"Overview","navigation_title":"Overview","summary":"","headings":["Requirements","Install","Using it","Grid layouts","Layout","Notes for maintainers"],"body":"Tabs for the fields inside a repeating block, and for the fields in a field group. EE's Publish Layouts can tab the entry form, but nothing can tab the fields inside a Grid row, a Bloqs block, a Fluid item or a Pro Variables group — and grouping a field group's fields means a layout per channel. Tab-EE adds a tab strip where you put it, and hides the fields belonging to the other tabs. Every field belongs to exactly one tab. Nothing here touches values: hiding is only, so every input stays in the DOM and still submits — switching tabs can never cost someone data. Requirements ExpressionEngine 7.x For Grid columns: any Grid layout (see below) — including Pro Variables grids For Pro Variables: Tab-EE enabled under its Settings → Variable types Install Copy into the site's add-on directory. Copy into the site's user theme directory. Install \"Tab-EE\" from Add-Ons. There is no control panel section — Tab-EE is configured entirely on the field. Using it Add a Tab-EE field where the tabs should appear. Its settings name the tabs and choose which of the neighbouring fields belongs to each. It works in five places: Where What it tabs Strip appears A field group the group's other fields where you placed the field A Grid column that Grid's other columns each row's title bar A Bloqs atom that block's other atoms each block's header A Fluid field-group item that group's fields, in that item the item's title bar A Pro Variables variable that group's other variables where the variable sits Pro Variables grids are ExpressionEngine's own Grid under a different content type, so a Tab-EE column inside one tabs that grid's columns per row, exactly as in a channel Grid — and can sit in a group that a Tab-EE variable is tabbing at the same time. Pro Variables ships with only Textarea enabled. Tab-EE will not appear as a variable type until it is ticked under Pro Variables' own Settings → Variable types. In a repeating container each row, block or item keeps its own tab, so one row can show Content while the next shows Metadata. A title bar colour. Each Tab-EE instance can tint the bar its tabs sit on — a Grid row, a Bloqs block, a Fluid item or a field-group panel. Leave it empty for the default. The active tab keeps the body's colour rather than the tint, which is what makes it read as joined to the content below, and the label colour follows the tint so a dark choice gets light labels. In a field group the tabs draw a panel around the fields they govern, with the field's own label as its caption and its caret collapsing the whole box. A Panel title setting overrides that caption. Where the governed fields are not next to each other — a channel's non-group fields can interleave — the panel segments rather than enclosing something that is not on the tab. The default tab. Fields you do not put on a tab go to a default tab, named \"Content\" unless you change it. It is derived, not stored: it appears only while something is in it and disappears once everything has been assigned, so a field added long after the tabs were set up always lands somewhere visible rather than nowhere. Reusing tabs. A Tab-EE field can take its tabs from another instead of defining its own. It is a live reference: rename a tab on the source and every field using it follows. Set a field to Definition only to make it a source that never renders a strip. Which fields sit on which tab is always local and never inherited — field ids mean nothing in another group. A reference may only be one level deep, and a reference to a field that no longer exists resolves to no tabs, leaving everything visible rather than hiding anything. One per container. Only one Tab-EE field governs a group, Grid, block or item. The settings screen names the existing one if you add a second, and the second stands down rather than fighting. A Grid or Bloqs column has no id until it has been saved, so add and save new ones first, then assign them to tabs. Grid layouts Vertical — each row gets its own strip in its title bar and remembers its own tab. Horizontal — one tab choice for the whole Grid, from an icon at the right end of the header row. A horizontal Grid is a real table with one shared header, so per-row tabs would leave cells under the wrong headings; hiding a column's header and its cells together keeps everything lined up. It starts on All fields, so adding Tab-EE to a populated Grid changes nothing until somebody picks a tab. Auto (Grid's default) — a table while it fits, stacked rows once it does not. One tab choice for the whole Grid, shown as the header menu while it is a table and as a strip in every row's title bar once it stacks; picking a tab in any row moves them all. Starts on All fields. Layout Notes for maintainers A fieldtype owns its settings form. That is why configuration lives there: EE offers no render hook on the field-group screen, no update event on and no insert event on . Grid and Bloqs dispatch -prefixed methods ( , ). In those contexts settings arrive in , not POST. Bloqs needs and in . Accepting alone puts a fieldtype in compatibility mode, where Bloqs then requires it on a curated allowlist and otherwise reports \"Missing definition\" on the publish form. Bloqs probes with a random token, so the list must stay exact. Fluid changes nothing about a child field's content type, so a Tab-EE field there still reports . Only the runtime differs: Fluid wraps fields in with no id attribute, so a field is found through an input name ( ). Pro Variables opts fieldtypes in BY METHOD NAME, not by content type. looks for (or the legacy ); its branch is commented out in shipped code. Adding to alone does nothing — the type never appears. Declare the method, and the content type then routes everything else to the ordinary methods via . Pro Variables keeps a variable's name and site on , which inner-joins on a shared . Selecting or from is an SQL error, not an empty result. Inside a Grid, is always the literal string — whichever host the Grid belongs to. The type its COLUMNS are stored under is separate: in settings, or . is shared site-wide and its ids restart per type, so every column query needs both and that content type, or a Pro Variables grid and a channel Grid with the same id hand each other's columns back. Pro Variables' group screen keys its fieldsets , not — and its SIDEBAR uses bare too, so a lookup must require alongside it or it hides a navigation item instead of a variable. Three clone templates to avoid mounting into: Fluid's , Grid's , and Bloqs' hidden block (no ). A strip built in one is cloned as markup, so the tabs appear and even filter correctly, but carries no listeners. is a typed column. Store a plain array; an already-encoded string is serialized twice and fatals every field settings screen in the CP. Absent is not empty. A field can be saved from a form that never rendered these controls, so preserves what is stored when its inputs are missing. Never re-derive a tab handle from its name outside the parser. Renaming a tab keeps its handle, so regenerating one produces a handle nothing is assigned to and silently drops assignments. Measure against something the strip does not size. Fitting against the strip's own container makes showing the tabs widen it, which makes them fit, which fires the observer — a visible flicker. Find host controls by position, not class. Bloqs' title-row control set varies; a hardcoded list missed the enable toggle, then expand/collapse, then the context menu. , , and are public-but-uncontractual surface. Stable today; a host's markup change could break that adapter.","breadcrumb_path":"Overview","url":"/docs/tab-ee/overview"},{"page_id":9,"title":"Tab-EE Changelog","navigation_title":"Changelog","summary":"","headings":["Tab-EE — Changelog","0.8.0","Added","Fixed","Changed","0.7.0","Added","Fixed","0.6.3","Fixed","0.6.2","Fixed","0.6.1","Fixed","0.6.0","Added","Fixed","0.5.0","Added","Fixed","Note","0.4.0","Added","Changed","Fixed","0.3.0","Changed","Added","Removed","0.2.0","Added","0.1.0","Added"],"body":"Tab-EE — Changelog All notable changes to Tab-EE are recorded here. Versions follow the add-on's version. 0.8.0 Added Tab-EE works in a Grid on the Auto layout — Grid's default, where it previously did nothing at all. Auto is a table while it fits and stacks into rows, each with its own title bar, once it does not; ExpressionEngine decides as the window resizes. Tab-EE gives it one tab choice for the whole Grid and shows that choice in whichever form the Grid is in: the header-row menu (as in Horizontal) while it is a table, and a strip in every row's title bar once it stacks. Picking a tab in any row moves them all. One choice shown two ways, rather than per-row tabs, because the Grid can change form at any moment: per-row choices would have to be reconciled with a shared one every time the width crossed the line. It also hides the same columns in every row in both forms, so what ExpressionEngine measures does not depend on the form it is currently in. Like Horizontal it starts on All fields. Choosing a tab can narrow the table enough for ExpressionEngine to turn a stacked Grid back into a table — that is Auto doing its job, and the choice carries across. Fixed The tab strip no longer stretches across a stacked Grid row's title bar. ExpressionEngine gives every direct child of a stacked row's cells — an Auto Grid once it stacks, and any Grid in Live Preview — which pushed the first tab under the drag handle. Renaming a tab no longer moves fields on the Tab-EE fields that reuse it. A tab's handle is what assignments point at, and it was being rebuilt from the tab's name on every save — so renaming \"Metadata\" to \"Meta Info\" on a source quietly sent every reusing field's Metadata fields to the default tab. The field's own screen hid this by remapping its dropdowns; the fields reusing the tabs were not on that screen to be remapped. Handles now travel with the names and are kept. Only a new tab takes its handle from its name, with a suffix if that handle is already taken ( ). Saving a Tab-EE field no longer wipes its assignments when the screen shows a notice instead of them. When another Tab-EE field shares the group, or the field is not in one yet, the settings screen shows a notice where the dropdowns go. Nothing was posted for them, and the save took that as \"everything on the default tab\". The same applied to a Grid column or Bloqs atom showing a notice. Stored assignments are now kept unless the dropdowns post. A field group's tabs no longer disappear when a tabbed Grid, Bloqs block or Fluid item sits above them. The check for a second Tab-EE field in the same group counted any mounted strip on the form, so whichever of those rendered first made the group's own strip stand down and hide itself. It now counts only another field-group strip. Cloning a Bloqs block gives the copy working tabs. Bloqs clones a block's markup, which brought along a strip that looked right but answered no clicks. The copied strip is now replaced with a live one. With nesting on, a child block's strip no longer stops its parent's from mounting. Tabs in a Fluid item meet the line beneath them again. The Tab-EE field's own label was lifted out as a panel caption even inside a Fluid item, where it sat under the title bar and pushed the first field's top border — the line the tabs connect to — about 36px down. The label is no longer shown in a Fluid item. A horizontal Grid whose headers cannot be matched to its columns is left alone. Tab-EE matches a header to its column by position; when the counts disagreed it still hid the cells but not the headers, so every heading after a hidden column sat over the wrong data. It now leaves that Grid untabbed and says why in the browser console. A tinted Bloqs title bar follows a theme switch. The block's own background, under the tint, was read once when the page loaded, so switching between light and dark left the old theme's colour beneath the bar. Removed a notice pointing at an Add-Ons settings page that has not existed since 0.3.0. Changed A Tab-EE column looks up its sibling columns once per Grid, not once per row (and a Bloqs atom once per block definition). A 50-row Grid ran about 100 identical queries. 0.7.0 Added Tab-EE now works in a Grid set to the horizontal layout. It previously did nothing there, and not for want of space: a horizontal Grid is a real table with one shared header row, so per-row tabs are impossible — twenty rows each showing different columns under one fixed heading. ExpressionEngine also omits the per-row tools bar in that layout, so the strip had nowhere to mount. Horizontal therefore gets a different model rather than a smaller one: one tab choice for the whole Grid, hiding a column's heading and its cell in every row together, so everything stays lined up. The strip becomes a single icon at the right end of the header row; clicking it opens a menu of the tabs. It starts on All fields, so adding a Tab-EE column to a populated Grid changes nothing until somebody picks a tab. The icon shows when a filter is active, and the header row honours the Title bar colour setting the same way a row's bar does. The vertical layout is untouched — it keeps its per-row strip, where each row remembers its own tab. 'Auto' layout is still unsupported: it reflows to stacked rows at narrow widths, where the per-row bar reappears, so it needs its own decision about switching models mid-resize. Fixed Assigning fields to tabs no longer needs an extra save in Bloqs. Adding a Tab-EE atom to a block definition that already had atoms showed \"no saved columns to assign yet\" and asked you to save a Grid field — wrong noun and wrong advice — while the same thing in a Grid or a field group listed its neighbours straight away. Two causes. The \"add an atom\" template that every new atom is cloned from carries no settings, so it reported itself as a plain Grid, searched with a Bloqs field id and found nothing; the block definition in the request now identifies the host when the settings cannot. And sibling atoms were looked up via the atom's own id, which a new atom does not have yet — they now come from the block definition, which is known before the atom exists. A new field created from a group's page knows which group it is in. ExpressionEngine links to that screen two ways, and only one puts the group in the path; the other passes it as a query parameter, which Tab-EE ignored. A new field on that route listed no neighbours and claimed it was \"not in a field group yet\". 0.6.3 Fixed Updating now clears up the junk field definitions 0.6.1 left behind. 0.6.2 stopped new ones appearing, but a site that saved a Grid field or a block definition while 0.6.1 was installed already has the rows in its database, and they keep producing the deprecation warnings and the Bloqs fatal until they are removed by hand. The update deletes any Grid column or Bloqs atom that has neither a name nor a type, along with the column Grid added to the field's data table for it, and any Bloqs atom data pointing at the definition. Both fields are required by Grid's own validation and names the fieldtype the column is, so a row missing both cannot function however it was created — while a row missing only one of them is left alone. What was removed is written to the developer log, with the settings each row carried, so the change is reviewable rather than silent. 0.6.2 Fixed A phantom column could break saving a Grid field or a Bloqs block definition, with a wall of \"Undefined array key col_name / col_type\" warnings and, in Bloqs, a fatal: Call to a member function validateSettings() on null. 0.6.1 stopped hiding the tabs textarea with , so that ExpressionEngine would stop disabling it and tabs would save. That fixed one problem and created a worse one: Grid and Bloqs keep their \"add a column/atom\" template on the same form, inside — EE's own marker for markup that must never be submitted. A control in there that suddenly posts materialises a column row carrying settings but no name or type, and both Grid and Bloqs walk every posted row looking up its fieldtype. Tab-EE's controls are now disabled if they sit inside that container and enabled everywhere else, decided at submit. Keyed on EE's marker rather than on visibility: a real column whose panel is merely collapsed is hidden too, and disabling that would trade one silent data loss for another. 0.6.1 Fixed Tabs and field assignments would not save on a field's settings screen. You could add tabs, assign fields, save — and come back to an empty form. The cause was Tab-EE's own: the chip editor hid the textarea that carries the tabs with , and ExpressionEngine's settings screen, which disables the controls in its fieldtype panes and then re-enables the ones in force, skips a control that is not laid out. It stayed disabled, and a disabled control is not submitted at all. That alone lost the tabs. It also lost the ASSIGNMENTS, which were submitted perfectly well: with no tabs in the request, the save correctly read \"this form did not render Tab-EE's controls\" and preserved what was stored — discarding what had just been sent alongside. The textarea is now clipped rather than removed from layout, so it stays a real enabled control. Two guards sit behind that: it is re-enabled on submit whatever else happens, and a save that receives assignments now honours them even when the tabs are missing. 0.6.0 Added A tabbed field group now draws a panel. A Grid row and a Fluid item arrive with a title bar and a bordered body; a field group had neither, so the tabs floated above loose fields and looked attached to nothing. The fields a strip governs are now enclosed in a box with the tabs on its bar, matched to a Grid's proportions. The box is painted onto the fields rather than wrapped around them. The fields a strip governs are frequently not next to each other — a channel's non-group fields interleave with its group's — so a wrapper would have to reorder the form or enclose fields that are not on the tab. Where a run is interrupted the panel segments, which is the honest answer: a field that is not on the tab is not in the box. The field's own label becomes the panel's caption, and its caret collapses the whole panel. A Panel title setting overrides that caption. A title bar colour. Any Tab-EE instance can tint the bar its tabs sit on — a Grid row, a Bloqs block, a Fluid item or a field-group panel. Empty means the default, which is unchanged. The active tab keeps the body's colour rather than taking the tint: that contrast is what makes a folder tab read as joined to the content below, and a tinted bar strengthens it. Label colour is derived from the tint, so a dark colour gets light labels without anyone having to think about it. Fixed The active tab could be left white on a dark form (or black on a light one). Its colour is sampled from whatever it sits on, and that was read once at mount — before the theme's styling had landed, or before a theme switch had swapped the stylesheet. It is now re-read until the change settles. Editing tabs on a channel field's settings screen did nothing. The textarea that carries them is disabled on that screen, so it never posted, and the save correctly read \"not on this form\" and kept what was already stored. Dark-theme borders lifted from to . 0.5.0 Added Pro Variables support. Pro Variables ships with ExpressionEngine and puts every variable in a group on a single form — the same shape Tab-EE already tabs elsewhere. A Tab-EE variable now tabs the other variables in its group. Add it the way you add any variable: Variables → New, type Tab-EE. You may have to enable it first — Pro Variables ships with only Textarea switched on, under its own Settings → Variable types, and a type that is not enabled is not offered. It also works inside a Pro Variables grid, tabbing that grid's columns once per row, exactly as in a channel Grid. That needs no separate setup: a Pro Variables grid is ExpressionEngine's own Grid under a different content type. Fixed Grid column lookups are scoped by the grid's content type. holds the columns of every Grid on a site and the ids restart per type, so a Pro Variables grid whose id matched a channel Grid's field id would inherit that Grid's Tab-EE column as a rival and refuse to be configured — naming a column its author could not see and had no way to remove. Note Tabs on grid columns require the Grid's vertical layout, in Pro Variables exactly as in a channel. A horizontal table shares one header row, so hiding columns per row would stop the cells lining up with their headings. Tabs on the variables in a group have no such requirement. 0.4.0 Added Bloqs support. A Tab-EE atom tabs the other atoms in its block, with the strip in the block's own header and each block remembering its own tab. Bloqs draws no rule under its title bar, and a folder tab works by connecting to one. Rather than give this one host a different-looking control, Tab-EE supplies the rule itself — as its own full-width element, added only to blocks that have a strip, so an ordinary block is untouched. Bloqs' own header spans less than the block's width, so a border on it would visibly stop short. Fluid support. A Tab-EE field inside a Fluid field-group item tabs that group's fields, scoped to the item — so the same group added twice gives two independent strips. A plain single-field Fluid item has no siblings to tab, so nothing renders there. A default tab. Every field now belongs to exactly one tab. Fields you do not assign go to a default tab — named \"Content\" unless you change it — instead of appearing on every tab, which read as duplication. It is derived rather than stored: it appears only while something is in it and disappears once everything has been assigned. A field added long after the tabs were set up therefore lands somewhere visible rather than nowhere. One Tab-EE per container. Two in the same group, Grid, block or item would each hide the fields belonging to the other's tabs. The settings screen now names the existing one, and a second instance stands down and hides itself. A release build. produces a zip mirroring an EE web root, so extracting it puts both the add-on and its runtime in place. Changed The strip collapses to a dropdown at tablet width, not only when it runs out of room. 767px is ExpressionEngine's own control-panel breakpoint, so Tab-EE reorganises at the same width as the interface around it. The add-on icon now ships. It was present but named ; ExpressionEngine matches or exactly and otherwise falls back to a generic icon with no warning. Fixed Tab handles are no longer re-derived from tab names in the browser. Renaming a tab keeps its handle, so regenerating one produced a handle nothing was assigned to and silently dropped every assignment on that tab. Saving a field from a form that never rendered Tab-EE's controls no longer wipes its tabs and assignments. The chip editor now appears when configuring a Grid column. Grid renames the input, so the editor never initialised there and you got a plain textarea. Assets are versioned by modification time. ExpressionEngine does not version third-party theme assets, so a browser could keep serving the script it had cached from before an update. The per-atom tab selectors work in Bloqs' block editor. Bloqs renders a second, hidden Tab-EE pane for the atom you have not added yet; that pane has no atoms of its own, and its editor was reaching across into the saved atom's selectors and emptying them. Saving in that state stored empty assignments, so this could lose a block's configuration. A renamed default tab shows its own name in the assignment dropdowns. Grid and Bloqs rename the field's inputs, so the name was read as missing and the built-in \"Content\" was shown in its place. 0.3.0 Changed Tab-EE is configured entirely on the field. The control panel section and the extension are gone; you add a Tab-EE field where the tabs should appear and configure them there. ExpressionEngine offers an add-on no render hook on the field-group screen, no update event on a channel field and no insert event on a field group — so configuring from the outside meant decorating screens Tab-EE does not own. A fieldtype owns its own settings form. Grid tabs are configured on the Grid, as a Tab-EE column, rather than in a separate screen listing Grid fields. Added Reusable tabs. A Tab-EE field can take its tabs from another rather than defining its own. It is a live reference: rename a tab on the source and every field using it follows. Definition only mode makes a field a source that never renders a strip. Which fields sit on which tab is always local and never inherited — field ids mean nothing in another group. A reference may only be one level deep, and a reference to a field that no longer exists resolves to no tabs, leaving everything visible rather than hiding anything. Field group support. A Tab-EE field tabs the other fields in its group on the publish form. Removed The table is no longer used. It is left in place on update rather than dropped, because its rows are the only record of how a Grid was tabbed before this version and they cannot be migrated automatically — a column must exist before it can be assigned to a tab. It is dropped on uninstall. 0.2.0 Added The Tab-EE fieldtype and its settings screen: tab chips with inline editing, drag-to-reorder and a live count of the fields on each tab, above a compact row per field with its tab. 0.1.0 Added Per-row field tabs for native ExpressionEngine Grid, configured from a Tab-EE control panel section. Each row keeps its own tab; the strip becomes a dropdown when the row cannot hold it. Vertical layout only. Per-row state in a horizontal table would leave rows showing different columns while the headers stayed fixed, so the cells would stop lining up with their headings.","breadcrumb_path":"Changelog","url":"/docs/tab-ee/changelog"}]}