Docs: Modules

Modules

What a Tilspire module is, how enabling one works, the free modules that ship with core, and the paid Feedback module.

What a module is #

A module is a self-contained folder that adds a feature — routes, admin screens, database tables, everything it needs. Only enabled modules load: one you haven't installed, or have disabled, contributes nothing to a request. No code runs, no routes register, no queries fire.

That means adding a feature you don't use costs you nothing, and a site that needs very little stays fast.

Anatomy of a module #

At a high level, a module folder has:

  • module.json — a manifest naming the module, what it depends on, and whether it's enabled by default, and its tier (free or pro). A module that ships with Tilspire has no version of its own; it carries the core's.
  • src/module.php — the entry file that declares the module's routes, permissions and admin screens when it loads.
  • Its own admin views, front-end templates, assets, language files, and, where it needs its own database tables, migrations.

The full module SDK is in modules/README.md in the release. Since 1.21.0 a module can also declare an event the site's webhooks may send, a kind of item that goes out on the site's social accounts, a card (widget) on a surface's pages, and the kinds of content it sends to the one recycle bin. All of it is additive: a module that does none of it keeps working.

Managing modules #

Install, enable, disable and remove modules from Admin ▸ Modules.

Free modules, shipped with core #

These travel inside the core package and update with it:

  • Blog — a blog index and post pages, backed by their own content type. Since 1.19.0 each post can have one category. Categories are managed in a Categories tab in Posts, have their own page at /blog/category/ with a feed, and show as a chip, a bar and a breadcrumb on the public pages. Since 1.21.0:
    • A published post can be posted to Bluesky and Mastodon by itself; see Social posting. The post editor has a Social posts box, each post a Post to social accounts switch and each category a Social posting switch.
    • The Blog can start a topic in the forums for each post that goes live, with the title, the summary and a link; the post then shows a Discuss in the forums link with its reply count. Forum topic for each post in Blog settings starts off, and there is a Default forum. Each category chooses As Blog settings, Off, or In its own forum, and each post can skip it or start one. Only a post going live from now on gets a topic, a topic is never made twice, and a deleted post leaves its topic in the forums.
    • The Share row is now core's own, shared with Pages and forum posts, and loads no outside script. A theme that loads /modules/blog/assets/blog-share.js by its path now gets a 404 and should drop that line.
    • A post can be converted to a page, and a page to a post, from the editor's header. The original goes to the recycle bin and the old address redirects to the new one.
  • Comments — comment threads, with moderation: moderators Hide a comment, and deleting one for good needs its own permission. Since 1.20.0 members can react to a comment, and a page pages only the top comments of each thread. Since 1.21.0 members can attach pictures to comments (a switch, off to start with), a role can have its new comments held for review, a ban hides a member's comments while it lasts, and a deleted comment waits in the recycle bin.
  • Community — the forums. Free from 1.18.0, and shown as "Community" in the admin panel; the board inside it is still called Forums. Moderators can Hide a topic or reply and show it again, and deleting for good needs its own permission. Since 1.19.0 the Forums no longer keep comment threads of their own: Comments does, and a site still using the old ones is moved at the update. A Forums setting can hide the Forums/Tracker switch. Since 1.20.0 a topic can be a question with a solution and can carry a poll and tags, a reply can quote several posts, and members can use @mentions, reactions, an emoji picker and saved reply drafts. A forum can have its own moderators, and each feature has a site switch, a forum switch and a role setting. Since 1.21.0 forums also have member badges, signatures, pictures in posts, any emoji in reactions, waiting posts, a Share button on posts, a Who is online widget, moderators who can restrict a member's posting in their own forum, and a poll a moderator can remove. See Forums.
  • Analytics, Assistant and Importer. Since 1.21.0 the Importer is listed as Migrate in the panel, because it also holds the Export page; it is still off until you enable it.

A new site starts with Blog switched on. The other bundled modules are off until you enable them under Admin ▸ Modules.

You can give the Blog and the Forums their own address under Settings ▸ General, and the Blog its own name there too; the Forums' name is set in the Forums' own settings. The old address redirects to the new one.

Feedback (paid) #

Feedback is the paid module formerly called Tickets. It holds two things, and its menu items read Tickets and Tracker:

  • Tickets — a public ticket form and an admin desk to reply, assign and manage tickets. Each ticket has its own private link, and attachments open only for the ticket's client and for staff who manage tickets.
  • Tracker — members suggest ideas and report bugs, vote, comment and follow a roadmap; staff triage them and can turn a ticket into a tracker item without the client's name. It stays off until you switch it on under Tracker in the admin menu, and then shows as a tab beside Community. Since 1.19.0 its New item button is neutral and can have its own label per tracker.

Since 1.21.0 a ticket opened while a member is signed in belongs to their account. They find their tickets under Your tickets, linked from their account page, without waiting for an emailed link, and a reply that arrived since they last looked reads "New reply". Guests keep the emailed link. Support ▸ Tickets ▸ Settings has a Members card: whether to show members their tickets (on), whether earlier tickets from the same email are asked about, added automatically or never added (ask, once the member has verified that address), whether guests may open tickets (on), and Open at once, per guest (2 by default, counted per email address and per browser session; 0 means no limit). A guest with two open tickets is refused a third until one is closed. Roles have Open tickets and Tickets open at once (5 by default, 0 no limit; staff roles got no limit on update). Staff see the account behind a ticket with an Open the member link. When an account is deleted its tickets stay as guest tickets with the name and email typed into them, and tickets are never restricted.

Feedback has its own Settings tab. The ticket portal and the Tracker can each take their own name and address too.