w3scout/contao-searchfaq-bundle

Search FAQ-Sites.


Keywords
search, FAQ, contao, contao-bundle, contao4, faq-accordion
License
LGPL-3.0+

Documentation

Contao Searchfaq Bundle

Latest Stable Version Total Downloads Latest Unstable Version License Codacy Badge

About

Search FAQ-sites.

This bundle adds a search-module for FAQ-sites and turns the FAQ-items into an accordion, which can have multiple items open simultaneously if more than one faq-item contains matches.

Installation

Install composer if you haven't already, then enter this command in the main directory of your Contao installation:

composer require w3scout/contao-searchfaq-bundle

Usage

  1. Create at least one FAQ category (without choosing a reader redirectpage)
  2. Add your FAQ items
  3. Create a "FAQ-Site" module and select "mod_faqpage_accordion" as individual template
  4. Create a "FAQ-Search" module and publish it above your FAQ-Site module
  5. Add the jQuery library to your theme and activate the following templates:
    • j_accordion_open_multiple
    • j_searchfaq

Additional Options

  1. Turn the items of a FAQ-Site into an accordion: open the FAQ-Site module configuration and choose "mod_faqpage_accordion" as individual module template. This works independently of the FAQ-Search module.
  2. Choose between standard accordion behavior (one open item at a time) or select the "j_accordion_open_multiple" template, if you need more than one open accordion item at the same time. Notice: this is not limited to FAQs, it works with standalone accordion elements too. But if you use the FAQ-Search, it is required!

Contribution

Bug reports and pull requests are welcome