SHADE is young: 0.1.0-next.2 is a pre-release, and 0.1.0 isn't out yet.

SHADE
Content

Collections and entries

A collection is a content type: pages, posts, forms or a module's products. Each item in a collection is an entry. Collections come with SHADE or with a module; they are set up by developers, not in the admin. Every collection gets the same list screen, entry editor, permissions and history. How to define a collection is covered in the developer guide, Collections.

What users can do

Editors and admins

  • Browse a collection's entries in a table: search, filter, sort and page through them.
  • Create an entry, save it as a draft (an incomplete draft is fine) and publish it when it is complete.
  • Unpublish a published entry. It goes off the site, and its content and history are kept.
  • Delete an entry: it goes to the trash with its whole history, and Undo in the toast puts it back. This is refused while other content still refers to it.
  • Import entries from a CSV or JSON file: new drafts, or new draft versions of the entries the rows name.
  • Select several entries and publish, unpublish or delete them in one go.
  • Edit a singleton: a collection that holds exactly one entry, such as the navigation or the footer.
  • Open an entry's history and restore an older version (see Versions and history).
  • Edit an entry in another site language (see Languages).
  • Make a page the item template for a collection with item pages. Each published post then gets its own page on the site (see Item pages).

AI users (MCP)

  • Read entries and write drafts in collections that are opened to AI assistants and whose permissions grant it. They never publish or delete.

Visitors

  • See published entries only. They appear through item pages (posts), the header and footer, forms on pages, and pages that list a collection (see Data sources).

Built-in collections

SHADE has no built-in collections. Every collection comes with a module: the site's pages, navigation, footer and posts are the website module's, the forms are the forms module's.

A module's collections come with the module and only work while it is on. Today only the shop has any: categories and products (in the Shop group, with item pages).

Options that change behaviour

The developer sets these per collection:

OptionEffect
SingletonExactly one entry. There is no list screen, and it cannot be created or deleted. It exists from its first save.
No draftsSaves go live straight away. There are no versions, no Publish/Unpublish and no status filter.
Title fieldThe title shown in lists, references and history, and the field search looks in. By default the first text field.
Slug fieldGives entries their address, for item pages.
Item pagesEvery published entry gets its own page, built from a template page. Needs a slug field and a public collection, and cannot be a singleton.
AdminSidebar group, sidebar section, icon, table columns, default sort, whether the collection is left out of the sidebar, and form or visual editor.
AccessWhat editors and AI users may do by default (see below).
PublicPublished entries go to the website, optionally only some of their fields. Filtering, search and sorting from the site work on those fields only (search never indexes a hidden field for the site), so a hidden field cannot be guessed one filter at a time.
AIMakes the collection available to AI assistants, for reading and drafts. Off by default.

Who may do it

Each collection has five permissions, collections.<slug>.<verb>.

ActionPermissionRoles (default)
List entries, open an entry, see historycollections.<slug>.readadmin; editor unless the collection's access says otherwise; ai only if the access grants it
Create an entrycollections.<slug>.createsame
Save a draft, save a translation, restore a versioncollections.<slug>.updatesame
Publish and unpublishcollections.<slug>.publishadmin, editor; ai never in practice (AI assistants cannot publish)
Deletecollections.<slug>.deleteadmin, editor; ai never in practice (AI assistants cannot delete)
  • admin gets every collection permission.
  • editor gets all five when a collection sets no access of its own. The shop sets its own.
  • ai gets nothing unless the collection's access grants it, and the collection must also be opened to AI assistants. Posts and shop products grant ai read, create and update.
  • Pages use collections.website-pages.* (editors every permission, the ai role read, create, update), navigation and footer collections.website-navigation.* and collections.website-footer.*. Reading the site's shared parts (layout, settings, data sources, and the analytics module's report) is content.read.
  • The forms module's Form submissions sidebar entry requires forms.submissions.read.
  • The website reads published entries with the read permission of its own token.
  • The admin hides collections the user cannot read and the buttons they may not use; the form is read-only without update or create rights.
  • A custom role can make single fields Read only or Hidden (Field rules). SHADE enforces them, not only the admin: a hidden field is left out of everything the editor reads, and a save that changes a read-only or hidden field is refused, naming it.
  • A custom role can limit which entries its editors edit, delete and publish to those of their groups, or to their own (Which entries). They still see every entry; the ones they may not change show a lock in the list, and SHADE refuses a change to them.

In the admin

A collection can name the sidebar section it is in (the shop's Products are in Sales, the website's Posts in Website), and then it is a link in that section. Collections that name none are in Content, under their group; collections without a group go under Collections, and some are left out of the sidebar. Pages have their own Pages entry in Website. Navigation and footer are under Layout; a singleton's editor is titled with the collection's name. Groups are rows inside Content that open a view of their own (see the guide's start).

Collection list

  • Header: the plural name and a New {name} button (for example "New post"). The button only shows with create permission.
  • Toolbar:
    • Search… is a full-text search in every field that holds text, in groups, repeaters and the site's languages, best match first. Without a title field it is disabled ("Search is unavailable").
    • A status filter offers Any status, Published and Draft (only for collections with drafts).
    • Each choice or yes/no field among the list columns gets its own filter ("Any {field}", the options or Yes/No).
  • Columns are set per collection; by default they are the title, the status and Updated.
    • Values are formatted per field type: option labels, dates, Yes/No, link and relation summaries.
    • Status shows a published or draft badge, plus Changes when a published entry has unpublished changes.
    • Updated, Created and Published show relative times.
  • Sorting: click the header of a column with a single value or a date. Clicks cycle between ascending and descending. The default sort is set per collection, otherwise newest updated first.
  • Selecting rows shows a selected menu:
    • Publish works without a confirmation.
    • Unpublish asks for confirmation and only applies to the published entries in the selection.
    • Delete moves them to the trash at once, without asking: nothing is lost. The toast after it ("Moved 3 posts to the trash") has Undo. Items that are still referenced elsewhere cannot be deleted; each one is reported.
    • Each failure shows its own message, and a summary follows ("Published 3 posts").
  • Empty states: "No {name} yet", or "Nothing matches" with "Try another search or filter."
  • 20 entries per page, with pagination. Clicking a row opens the entry.
  • Opening a singleton's list goes straight to its editor.

Entry editor

  • The title bar shows the entry's title, or "New {name}" for a new entry. It has a back arrow (not for singletons).
  • Badges: Unsaved, Unpublished changes, or the status (draft / published). Below 896 px of editor width (a phone, or the navigation and footer next to their preview) the badge and the language select get a row of their own. From 576 px the title keeps at least 160 px (or its whole text), and Save draft and Publish show only their icons when their labels would leave it less; below 576 px they always show only their icons.
  • Save draft (just Save for collections without drafts) is enabled once something has changed. Ctrl+S (Cmd+S on a Mac) saves too. The first save of a new entry creates it and moves to its own address.
  • The publish button says where the entry stands: Publish (a draft), Publish changes (live, with newer changes saved or typed) or Published (live and up to date: nothing to publish, so it is disabled). It saves any unsaved changes first, then publishes the latest version; while it works it shows so, and a second click does nothing. When the collection is public, the toast adds "The site will rebuild."
  • When a save or a publish is refused for some fields, the bar says how many ("2 fields need attention"); click it to go to the first one. With the editorial module, the status row also shows its chips (in a release, waiting for review, out-of-date translations, open comments) and Schedule, Add to release or Submit for review sit next to Publish.
  • Overwrite with mine in the conflict dialog goes on with the publish when a publish met the conflict.
  • The More actions menu has:
    • History, once there is a saved version.
    • Unpublish, when the entry is published. It asks "Unpublish this {name}?".
    • Delete, not for singletons. It moves the entry to the trash at once, with its whole history, without asking; published, it goes off the site. The toast after it ("Moved to the trash") has Undo, which restores it and opens it again.
  • The form is built from the collection's fields, one input per field type (see Fields). Validation errors appear next to their fields, with the toast "Check the highlighted fields." With a custom role's field rules, a hidden field is not in the form (nor a column in the list), and a read-only one is disabled with "Read only" next to it; saving keeps both as they are.
  • An entry your role may view but not change (Which entries) opens with a note saying so, the form disabled and no Save, Publish or Delete. Admins see the entry's Groups below the form, and change them there.
  • If someone else saved in the meantime, the dialog Someone else saved this entry offers Reload their version. That discards your unsaved changes. You can also keep editing.
  • When other team members have the same entry open, their initials show in the title bar; hover over them for their names. When one of them saves it, a notice says so at once ("Anna saved a newer version"), with Reload, which loads their version and discards your unsaved changes. You can also keep editing: saving then meets the dialog above. A member who closes the entry, or whose tab stays in the background, is gone from the title bar within about 20 seconds. You only see this on collections you may read, and not while an admin has realtime switched off.
  • Leaving with unsaved changes asks first: Discard changes or Keep editing.
  • A Language switch appears when the site has other languages and the collection has translatable fields (see Languages).

The admin is in English and Dutch. On a Dutch admin, collection names, groups, field labels, help texts and choices of SHADE and its data sources are shown in Dutch; a module brings its own Dutch labels. Every error message is shown in the admin's language, with its details filled in ({item} not found).

On the website

  • Posts and other item-page collections: each published entry is a page. See Item pages.
  • Navigation and footer: the published singletons are what the site's header and footer show (see Header and footer).
  • Forms: a page shows a published form (the Form starter component). Submissions arrive under Form submissions.
  • Any public collection: a page can list its published entries (Repeat for each, or the List and Cards starters; see Data sources).
  • The site only ever sees published versions. Drafts and unpublished changes never reach it.

Item pages (posts)

  • In the page editor's page settings, Item template has a Template for choice. It lists the collections with item pages. Choosing one makes the page the template for that collection. Address of the items sets the path: nieuws gives /nieuws/<post slug>.
  • The address is translated like a slug, for example /en/news/<slug>.
  • One template per collection. Picking a second one gives "…is already the template for these items", and a page cannot go live as a template while another live page still is one.
  • The address of the items may not start with a language's code (en) or a path the site uses itself, and two templates' addresses may not contain one another (news and news/archive), so every item has one page.
  • The template page itself is not on the site. A normal page can live at /nieuws as the overview.
  • Formulas on the template read the item's fields (entry). A Repeat for each on the template reads its own items.
  • SHADE builds the item page. Its SEO comes from the item: its SEO group if it has one, otherwise its title, first long text and first image. Item pages appear in the page list and sitemap.
  • A page published at the same path as an item wins.
  • Items listed from a collection with a template carry their page address, so Cards link to them.
  • When a published item's slug changes, the old address redirects to the new one.
  • Previewing the template shows the newest published item.

Rules and limits

  • Drafts vs publishing: a draft may be incomplete; publishing checks everything (see Versions and history).
  • Unique fields: a duplicate value is refused with a message naming the field ("Another post already uses this slug"). Translated slugs are unique per language.
  • References: a save refuses references to entries, media or pages that no longer exist or are in the trash. A delete is refused, listing what still refers to the entry (relations and links, in drafts and published versions).
  • The trash: a deleted entry waits in the trash for 30 days, unpublished, and keeps its unique values ("A post in the trash already uses this slug") until it is deleted forever.
  • Concurrent edits: if someone else saved after you opened the entry, your save is refused (see the dialog above). This holds for collections without drafts too; there, overwriting with yours replaces theirs for good, since those collections keep no history.
  • Singletons: they cannot be created or deleted; before their first save they show the field defaults.
  • Collections without drafts: they cannot be published or unpublished. Each save rebuilds the site when the collection is public.
  • Lists: 20 entries per page in the admin. Search takes up to 200 characters and looks in all the text of the entry, with word endings (see Search). Related entries are only shown from collections the user may read.
  • Rebuilds: publishing, unpublishing and deleting a published entry of a public collection rebuild the site.
  • On the site: collections that are not public cannot be reached at all, not even to learn they exist. Only the fields chosen for the site are sent. Images, files and links to pages and item pages are resolved.
  • Languages: filters and sort use the default language's text; search follows the language asked for (the default one in the admin's lists). Entries can be read in any site language, with the default language as fallback (see Languages).
  • Definitions are checked when SHADE starts, and it does not start while one is wrong.

For developers

The code and its tests: shade/features/entries/README.md in the shade repository.