benmanu / silverstripe-userforms-faqsearchfield
FAQ search field for SilverStripe userforms module
Installs: 96
Dependents: 0
Suggesters: 2
Security: 0
Stars: 0
Watchers: 4
Forks: 1
Type:silverstripe-module
Requires
- silverstripe/cms: ~3.1
- silverstripe/faq: 1.1.0
- silverstripe/framework: ~3.1
- silverstripe/userforms: 4.2.6 as 4.2.2
This package is auto-updated.
Last update: 2024-11-29 04:46:51 UTC
README
Overview
This is a custom https://github.com/silverstripe/silverstripe-userforms form field that can be added to provide a field that searches for FAQ articles that already exist within the website.
The use case for this field is where an enquiry form exists on the website for users to ask a question. It can be used to indicate that a similar question already has an FAQ article to answer it before they submit their enquiry.
Installation
This can be installed via:
composer require benmanu/silverstripe-userforms-faqsearchfield
Javascript Development
This module has https://github.com/JeffreyWay/laravel-mix as an npm dependency which makes it easy to do future javascript development for the module.
To get everything setup you just need to run:
yarn install
Once all the npm packages have been installed you can start javascript development using either:
yarn run dev
: which will start a watch task that rebundles the src files when files
in the javascript/src/
folder are updated.
yarn run prod
: which you will want to run when finished to produce a production ready
build of the javascript src files.
TODO:
- Add ajax loader icon to indicate request is being made on field blur