Skip to content

CMS 0.7.8

Choose a tag to compare

@jacksonvw jacksonvw released this 19 Nov 20:56

CMS 0.7.8

A static copy of the site; a Customizer for the public site's look; backups on a timetable; an import of a WordPress site; pages and entries that come off the site on a date and drafts shared by a link; feeds, calendars and business details; a cookie question before Google measures anything; forms and mail for a site that sends its own conversions and its mail through Brevo; a site with its own router in front that keeps its pages through a fault or an update; and a pass over the admin's layout, with fixes across the site.

A static copy

  • Tools → Static copy makes the whole site as files for a web host that runs no CMS, as one file to download: every public page as the site draws it, with its pictures and files, its paged lists and sitemap, and a page at each old address that sends the visitor on.
  • "Links that work anywhere" makes every link relative, so the copy works at any address, or opened from a folder with no web server. Its canonicals and sitemap still name the address it was made for.
  • Its search runs in the visitor's browser, by the site's rules. Its shop is a catalogue, with no basket, checkout or accounts, and a page behind a password is left out.
  • On a host with PHP, its forms are sent by a small handler of its own, checked for spam by the site's rules and mailed through the host's mail program with the visitor's files attached. On a host without PHP, each form's place shows words of your choosing. No password leaves the CMS with a copy.
  • What the copy could not take is listed when it is made.
  • The same from the command line, for a host that does not let the admin start PHP: php admin/bin/export-static.php.

Publishing

  • A page or an entry comes off the site on its Unpublish date, as Private would, with nothing that has to run at that moment. The admin says Ended.
  • A page or an entry not yet on the site can be shared by a link from its screen, for a day, a week or a month: whoever has it sees it without signing in, and search engines and caches are told to keep it. Stop sharing ends it at once.
  • A page, a form or any entry can be copied from its row to start the next one: a Private copy at its address plus -copy, holding what the original held, opened on its own screen. A form's copy has none of its submissions.
  • An editor says who else has the same page or entry open, and since when, and says when someone else has saved since the screen was drawn. It tells; it does not lock.

Forms and conversions

  • A form can go to its after-sending page when it is sent by script too: "Go there after a send by script too", off on every existing form. The JSON answer then carries redirect, the page as a path, besides success and message.
  • A site whose own header prints its Google tags sets 'site_sends_conversions' => true in config.php. The CMS then prints nothing of Google's, and each real submission's conversion is still carried to the form's after-sending page.
  • \Cms\Site\Google::conversion() also returns the stored submission's ID. The conversion is signed and given once: a reload, another tab or a direct visit gets null.
  • A test address can be set on a form, or on Settings → Email for every form. A submission whose reply-to address is the test address is handled as a real one, but its email goes to the test inbox alone. The inbox marks tests and can show only them or leave them out, and the CSV export has a Test column when it holds one.
  • A site bringing in its form history by code keeps each submission's ID: FormSubmission::create() takes one, refuses one already taken, and can mark what it brings in as a test. New submissions continue after the highest.
  • A form with a captcha shows its thank-you again. Since 0.7.4 the form disappeared after sending and no thank-you appeared.
  • A form's email names an upload or a drawn signature by its file's name and address, as the inbox does, not by a media number, and says where the submission is in the inbox.
  • A form can send a confirmation to whoever sent it: its own subject and message, with their answers filled in where the message names a field in braces, to the address in the form's Reply-to field. It goes only once a submission has passed the spam checks, so the site writes to no address a bot typed in, and a test's goes to the test inbox. A blank message sends none.
  • A picture sent through a form is turned upright and loses its metadata (where and when it was taken, and the phone) as it is stored or mailed. A file field has its own File types box: the server takes only those kinds, and the picker offers only them.
  • The site's form handler and a static copy's read and check a submission through the same code (Forms\Answers), so the two cannot differ.

Mail

  • Brevo's API can send every message the CMS sends, chosen in config.php with its key ('mail_transport' => 'brevo'). The key is kept there and nowhere else, and Settings → Email says when Brevo is in use. A message Brevo refuses is logged with Brevo's answer, never the key.
  • A site's own form-mail.php, which writes a form's whole email, can now return it as fields: the subject, the text, the Reply-To, and if wanted the From name and the recipients' names. It is then sent the way the site sends everything else. A message returned whole works as before.
  • Settings → Email → Send a test email sends one message to the address typed, and the screen says where it went, or why it was not sent.
  • A submission whose email could not be sent says "Email not sent" in the inbox, and can be sent again from its own screen or ticked in bulk. It keeps its own submitted time, and a test goes to its test inbox only.

Asking before measuring

  • With a GA4 or Tag Manager ID typed on Settings → SEO → Google, "Ask visitors before measuring" shows visitors a question with Accept and Decline drawn alike, and nothing loads from Google until they accept (Google's Consent Mode: denied, then granted on Accept). The answer is kept for a year in a cookie of the site's own, and a Cookie settings link in the footer asks again. The words and the page the question links to are the owner's. Untick the box and the tags print as before.

The site

  • Every date on the site is written in the formats chosen on Settings → General, as in the admin: a story's date, the cards in a list, an event's day and time, a date field, and a booking form's days and times.
  • Site search matches the words a visitor reads, not the HTML they are stored in, so a search for "strong" no longer finds every page with bold text. Capitals and accents make no difference.
  • An events list is in the order of its dates across every page: what is still to come first, the soonest first, then what is over under Past events, the latest first.
  • Settings → General → Site language: public pages say the language they are written in, for screen readers, hyphenation and translation. Every public page also opens with a skip link past the header.
  • Appearance → Customizer: the public site's palette (one of the design language's 21) and corners, its text and heading fonts (Inter, or the visitor's own sans-serif or serif), a logo in the header with or without the site's name beside it, and a site icon of its own, which falls back to Branding's. The home page beside the controls shows each choice as it is made; Save keeps them for every visitor. The admin keeps its own look.
  • Each type of entry with public pages has a feed of its newest entries (RSS, at /news/feed.xml and the like), named in the head of the home page and of the type's own pages. A type that is only products has none: its catalogue is the product feed.
  • An event has "Add to calendar", a file of it alone, and an events list has "Subscribe in your calendar", one calendar of every event that a calendar app keeps up to date (/events/calendar.ics). Times are the site's own, as typed.
  • Settings → Business details: the business's name, phone numbers, email, opening hours, place, service areas and social profiles, kept once. [phone], [sms], [email] and [hours] print them in a page's text, the footer and a card's summary, as links to call, text and write, and the site's structured data carries them. A theme reads them with \Cms\Site\Business::get().
  • A public picture is kept at smaller widths too (300 to 2048 pixels, as WebP), and the site's pictures offer them, so a phone no longer downloads the whole file. A theme uses Media\Sizes::srcset() or Sizes::img().
  • A type of entry with no public address has no sitemap, where it listed entries at addresses that were not found.
  • A visit that arrives while another process is still applying migrations, an update's or another visit's, is told to come back (503, with Retry-After) instead of shown an error.

A site with its own router in front

  • \Cms\Site\Front::owns() never throws. A missing config.php or a database that does not answer is logged, the CMS's fixed addresses (/admin, /api/v1, /files, /forms, /assets/theme) are still its own, and the site's own pages carry on.
  • During an update it reads no database: the home page and the addresses in admin/config/site-addresses.php stay the site's, and every other address is the CMS's, which answers 503 until the update is done.
  • Tools → Redirects works at any address of such a site, the site's own included: owns() hands the CMS an address a rule sends on, and the CMS follows it as it does everywhere else.
  • The site's own addresses stay its own. The Content Types and Taxonomies screens refuse to publish at one, and a type or taxonomy at one that arrived another way, an import or a row written by hand, never takes it.
  • site-addresses.php is read quietly: a blank line before its <?php no longer prints before every page.

Files and media

  • A folder is chosen from a row of chips over the library (All, Unfiled, then each folder) and made, renamed and deleted on Manage folders.
  • The library sorts by date added or taken, name, size, type or dimensions, and the order is kept in the address with the filters.
  • A photo keeps the date its camera wrote, read before its metadata is removed, and both dates can be corrected on the file's details.

Tools

  • Tools → Backups: the database and the uploads as one file, every day or every week, the newest few kept on the server, made on a visit a step at a time with no cron needed (or by php admin/bin/run-due.php on a real cron). Each downloads, and Back up now makes one. Putting one back is the command line's: php admin/bin/backup.php restore <name> backs the site up as it is first. config.php is never in a backup.
  • Tools → Import and export reads a WordPress export (the .xml from WordPress's Tools → Export) and shows its plan before anything is written: pages as pages; posts, and each other kind of post, into a type you choose; categories and tags into its taxonomies; everything Private unless "Publish what WordPress had published" is ticked. The media library's files are then fetched from the old site a few at a time, and every picture, file, link, featured image and gallery points at the copies here.
  • Tools → Redirects lists the addresses visitors asked for and did not find, the most asked-for first, with Add redirect beside each.
  • Tools → Broken links checks every link on the site to its own pages and files, lists what finds nothing with each page it is on, and offers that page's editor and Add redirect.

The admin

  • Writing is not lost. Leaving a page or entry editor with unsaved changes asks first, the sign-in is kept while someone is typing and the editor says when it has ended, and what a save never delivered is kept in the browser and offered back.
  • Pages keep their history as entries do: each save keeps what it overwrote, the last 25, with the History card and Restore. A page's history goes when the page is deleted.
  • Security → Login protection: the sign-in address box is the setting. An address typed in it, or one from Randomize, moves the sign-in page there on Save, and an empty box puts it back at /admin/login. The "Move the sign-in page" tick-box is gone.
  • Appearance → Theme builder, a screen that only said "Not built yet", is gone; the Customizer is a working screen now.
  • A box is as wide as what goes in it: a number, a date or a select takes its own width, a row of short controls sits together, and help reads at a comfortable width. A button sits beside what it acts on: the file to import and Read the file, an address and Send test email, a new order's product and its count, a filter and its button. The dashboard's and the reports' figures fill whole rows.

Updating

  • Seven database migrations: form submissions' test mark and the conversion's one-time take (107), pictures' smaller widths (108), unpublish dates (110), the addresses not found (111), share links (112), who has an editor open (113) and the library's dates taken (120).
  • Asking before measuring is on for a site that already has Google IDs: after the update its visitors are asked, and those who do not accept are not measured. Untick "Ask visitors before measuring" on Settings → SEO → Google to keep the old behaviour.
  • Backups start weekly: the first visit after the update makes one, kept in admin/backups/ (the newest 4), which updates leave alone and which is never served. Tools → Backups sets Never, Daily or how many are kept.
  • Pictures already in the library get their smaller widths with php admin/bin/media-sizes.php, which ships; until then a page offers the one file, as before. php admin/bin/media-dates.php lists and sets the library's dates.
  • The public site keeps its look until something is chosen on the Customizer; its site icon stays Branding's until one is chosen there.
  • A WordPress export waits in admin/imports/ between its plan and its import, which updates leave alone and which is never served.
  • Brevo, site_sends_conversions, a form's "Go there after a send by script too" and test addresses are each off until turned on.
  • Dates on the site follow Settings → General now, so with its default "November 26, 2026" reads "Nov 26, 2026". To keep the long form, choose "November 26, 2026" there; the admin's dates follow it too, as one setting serves both. A site set to 24-hour times now has them on events and bookings as well. A booking already made keeps its wording.
  • A moved sign-in page stays where it is, and one that was moved back stays at /admin/login. php admin/bin/security.php login-url off now forgets the moved address as well.
  • Site language starts as English, which every page already said.
  • An update moves the removed placeholder screens' files to its backup, as it does every file a release no longer ships.
  • Static copies are kept in admin/exports/, which an update leaves alone. Mail through Brevo needs PHP's curl extension.