Questions and answers
A frequently asked questions page, organised into sections. Questions and answers are written in the admin panel; visitors expand the one they need — and do not have to write to you.
Features
- A “Questions and answers” page: an intro and a list of questions, each expanding on click. The first one is open from the start, so it is clear what kind of answers are here.
- Expanding is done with the browser's own means, without scripts: a person with scripts turned off, a screen reader and a search robot all see the page the same way.
- Questions are grouped into sections; questions without a section go last, under the “Other” heading.
- Answers support markup: lists, links, bold.
- Order is set by a number: lower goes higher, empty goes last. A draft is visible only in the admin panel.
- A question is shown in all site languages or only in its own. Sections have no translations — each language gets its own sections.
- The section card on the home page shows how many questions there are in the reader's language.
Configuration
In the admin panel: “Settings”, “Questions and answers” section.- Section intro (“Texts for visitors” group) — the text above the list, with markup. Empty — the engine uses its own.
Permissions
- See questions and answers — open the section in the admin panel.
- Add and edit questions — add, change and remove questions, create sections.
On the site
/voprosy — the questions page, a “Questions” item in the site menu. The page takes its markup from the active theme and looks like part of the site with any theme.Installation and removal
Tables voprosy_items (questions) and voprosy_categories (sections). A removed question disappears from the site and from the list. Removing the module with data erases both tables and touches no other data.Left out on purpose
- Ordering by date: questions are read top to bottom, and their order follows meaning — first “how much does it cost”, then “how do I return it”.
- Script-based expanding: for a screen reader and a search robot it would turn into emptiness.
Slik installerer du
Du har den allerede. Panelet → Moduler → slå på.
Versjonshistorikk
1.0.0
- Страница частых вопросов с раскрытием ответов без скриптов; первый вопрос открыт сразу
- Разделы вопросов, порядок числом, черновики, язык у вопроса и у раздела
- Ответы с разметкой, вступление к странице в настройках
- Правка вопросов в панели одной формой: добавить и изменить — в одном месте
- Позже в этой же версии: язык нового раздела сохраняется из своего поля, а подпись «Язык» у раздела больше не уводит к полю вопроса, добавлены норвежский, польский, шведский и литовский переводы, числа наверху страницы в панели сведены в строку-сводку
Spørsmål og funn hører hjemme på forumet: seksjonen Moduler