Basics: what module-faq is
module-faq shows frequently asked questions and answers in an accordion-style format.
Use it to answer recurring questions right on the page and reduce friction before visitors get in touch with you.
It is text-focused, quick to render and works well as source material for both SEO and AI summaries.
Option 1: core keys and structure options
The top level lives in faq, with keys such as module_type, section_title, section_title_display, section_description and section_description_display.
Questions can be passed in the modern form via items[], or in the legacy form via question1..questionN.
Translation layers follow the pattern <lang>_faq, for example en_faq.
Option 2: item level, display and appearance
Within items[] you use fields such as display, appearance, question and answer_html.
If display is missing, the item is treated as visible. That lets you write a compact FAQ without setting true everywhere.
appearance can be set per question and is compiled into auto_class/auto_style for each card.
Option 3: accessible accordion behaviour
Each question is a native button inside its h3 heading. Reach it with Tab and open or close it with Enter, Space, mouse or touch.
aria-expanded, aria-controls and the answer panel's hidden state stay synchronised. Opening another question closes the previous one while focus remains on the activated button.
Try the working demonstration below with both keyboard and pointer.
Option 4: compiler normalisation and limits
The build expands faq.items[] into faq.question1..questionN for backwards compatibility with the template markup.
faq.auto_display is set automatically from the visible questions. The build also computes faq.auto_display_faq_contact together with contact/contact-form for the shared wrapper section.
The build supports more than 20 questions, but the current template renders only question1..question20 unless the template is extended.
Option 5: FAQPage schema, SEO and AI optimisation
For the FAQ module, FAQPage is normally the right schema type, with Question + acceptedAnswer for each visible question.
Keep the schema content semantically in sync with the UI: the same question, the same meaning in the answer and the correct language.
Prioritise real, specific questions from users. Clear FAQ copy helps classic search, AI overviews and internal navigation alike.
Try an accessible FAQ
Tab between the questions and open them with Enter or Space.
Yes. Each question is a native button reached with Tab and activated with Enter or Space.
The previous question closes automatically. Only one answer is open at a time and focus remains on the button you used.
The button uses aria-expanded and aria-controls. The answer panel has a unique id, an accessible name and is completely hidden while closed.