Knowledge base
Knowledge module: guides and FAQ answers in sections, article search, a table of contents, an edit history and sections closed to all but chosen roles.
The module adds a knowledge base to the site: guides, FAQ answers and how-tos sorted into sections. Articles are written and edited right on the site pages, with no separate admin screen. Every save goes into the edit history, and any earlier version can be restored.
| Dependencies | Games | Permissions | Studio blocks | Bot commands | Cron jobs |
|---|---|---|---|---|---|
| Flute 2.0; optionally Migration | any | admin.knowledge, knowledge.edit, knowledge.write | none | none | none |
Where the module shows up
| Place | What is there |
|---|---|
/kb and the "Knowledge base" menu item | sections, article search, the "Most read" and "Recently updated" blocks |
/kb/c/<section> | the articles and subsections of one section |
/kb/<article> | an article with the "On this page" outline, "Previous" and "Next" buttons and the "Was this helpful?" question |
| Site search | the "Knowledge base articles" group |
| Module settings | the "Knowledge base" section at /admin/modules/Knowledge/settings |
Install and first setup
Install the module from the marketplace as described in first steps. The "Knowledge base" item appears in the site menu by itself. While the base has no articles, a guest sees "Nothing here yet" and an editor sees "Create the first section, then an article in it."
Create a section
Open /kb with an account that holds knowledge.edit and click "New section". Fill in "Title", "Description" and "Icon", for example sl.linear.gamepad. While "Section is open to readers" is off, only editors see the section.
Write an article
In the section, click "New article". Fill in "Title", "Short summary" (shown in lists and in search) and "Text". ## and ### headings go into the article's outline. "Create draft" saves the article as a draft.
Publish it
In the article's menu, click "Publish". An empty article cannot be published: the site answers "Only an article with text can be published".
Sections nest up to three levels deep; the "Subsection" button creates one. An editor reorders articles and subsections by dragging them right on the section page. An article's address comes from its title; a custom one is set under "Address and access".
Authors and editors
knowledge.write lets a member write their own articles. An author sees their own drafts and edits only what they wrote, and only in sections open to them. When an author edits an article that is already published, the form warns "Once saved, the article goes back to drafts until an editor publishes it again."
knowledge.edit makes an editor: they edit any article, publish and unpublish, manage sections and see everything hidden. admin.knowledge adds the module settings on top.
Restricted sections and articles
Under "Address and access", a section and an article both have the "Who can see it" field. With nothing ticked, everyone sees the page, guests included. With roles ticked, other visitors and guests do not see it, and lists mark it "Some roles only". A restricted section restricts everything inside it.
Restricted articles stay out of the sitemap and out of search for those they are not open to.
Edit history
An article's menu has "Edit history". Each edit has a number, an author, the note from "What changed" and the added and removed lines. "Restore this version" creates a new edit with the old text; the earlier edits stay.
When two people edit one article at the same time, the second one sees on save "Someone else just saved this article. Reopen it so you do not overwrite their edit."
Settings
AdminExtensions, the "Settings" button next to the module.
| Field | What it changes | Default |
|---|---|---|
| "Name" | the name in the menu and the heading | empty, then "Knowledge base" |
| "Address" | the part of the link after the domain | kb |
| "Subtitle" | the line under the name on the base home | empty |
| "Home layout" | "Section cards" or "Contents" | "Section cards" |
| "“Most read” block" | the most read articles on the home | on |
| "Articles in “Most read”" | from 1 to 20 | 6 |
| "“Recently updated” block" | recently changed articles | on |
| "Articles in “Recently updated”" | from 1 to 20 | 6 |
| "Author on articles" | name and avatar next to the date | on |
| "Search" | the search line on the base home and articles in site search | on |
| "“Was this helpful?”" | "Yes" and "No" under the article, answered by readers with an account | on |
| "Comments under articles" | the "Discussion" block under the article | off |
Permissions
| Permission | What it grants |
|---|---|
admin.knowledge | the module settings and everything below |
knowledge.edit | edit any article, publish, manage sections |
knowledge.write | write one's own articles |
Bring over the Flute 1.x wiki
The Migration module brings the sections and articles of the Flute 1.x wiki over with their addresses. Old /wiki/article/<article> links lead to the new knowledge base pages, so links on forums and in Discord keep working.
Troubleshooting
| Message | What to do |
|---|---|
| "Sections nest no deeper than three levels" | pick a higher section in "Inside section" |
| "Move the articles and subsections out first" | move or delete the articles, then delete the section |
| "This address will not work" | use Latin letters, digits and hyphens, or leave the field empty |
| "Type at least two characters." | search starts from two characters |