FAQ module
The JoomFAQS - Questions module shows questions as an accordion in any module position, with an instant search box above them.
Create the module
- Open Content > Site Modules and click New.
- Pick JoomFAQS - Questions.
- Enter a Title and choose a Position of your template.
- Set the options below.
- On the Menu Assignment tab, choose the pages where the module shows.
- Click Save & Close.
Module
| Option | Default | What it does |
|---|---|---|
| Layout | Default | The module layout, or a template override |
| Category | All Categories | The category whose questions show |
| Order By | Question Creation Date ASC | Question ASC, Question DESC, Question Creation Date ASC, Question Creation Date DESC, Ordering ASC or Ordering DESC |
| List Limit | 5 | How many questions show |
Only published questions show. The first question is open when the page loads.
Choose a category. With All Categories, 6.1.12 also shows questions of unpublished categories and of categories the visitor may not see. See Known problems.
The module shows questions of the chosen category only, not of its subcategories. It has no link to the FAQ page or to the question pages. Add a link in the module's position yourself, for example in a Custom module, if you want one.
Search Settings
The search box filters the questions of this module while the visitor types. Matching words are highlighted in the questions and the answers. The search only covers the questions the module loaded, so with List Limit 5 it searches those five.
| Option | Default | What it does |
|---|---|---|
| Enable Search | Yes | Shows the search box |
| Search Placeholder | empty | The grey hint in the empty box. Empty shows "Search FAQs...". |
| Case Sensitive | No | Highlight only words with the same upper and lower case |
| Ignore Diacritics | Yes | "cafe" also highlights "café" |
| Enable Wildcards | No | Allow * and ? in the highlighted terms |
| Highlight CSS Class | highlight | The CSS class of a highlighted word |
| Highlight HTML Element | mark | The HTML tag around a highlighted word: mark, span, strong or em |
| Search Accuracy | Partially | Partially highlights parts of words, Complementary whole words that contain the term, Exactly only whole words |
| Highlight Color | #ffff00 | The background colour of a highlighted word |
| Show Count Message | Yes | Shows how many questions match, after the last question |
Style
The module has its own style settings, so it can look different from your FAQ pages:
- Accordion Style and the colour, icon, border, padding, shadow and font options. They work like the component options, see Accordion styles.
- Question Icon: the icon for questions without their own icon. Enter a Font Awesome class such as
fas fa-question-circle. The same applies to Expand Icon and Collapse Icon. - Custom CSS: extra CSS loaded with the module.
SEO Settings
Enable FAQ Schema adds FAQPage structured data for the module's questions. It only works when Enable FAQ Schema is also on in the component options, see SEO.
If the module shows on the same page as a FAQ page, the page gets two FAQ schema blocks. Set Enable FAQ Schema to No in the module for those pages, or do not show the module there.
Advanced
The usual Joomla options: Module Class, Caching and Cache Time.