Configuration
On this page
TypoScript Constants
plugin.tx_dveducationfaq.persistence.storagePid
-
- type
-
int
- Default
-
(empty)
UID of the sysfolder containing FAQ categories and items.
plugin.tx_dveducationfaq.settings.showRating
-
- type
-
boolean
- Default
-
1
Enable or disable the "Was this helpful?" rating buttons in the frontend. Set to
0to hide them.
Plugins
- FaqList (CType:
dveducationfaq_faqlist) — Main FAQ display with search, category filter, and accordion. Non-cacheable (POST search). - FaqRate (CType:
dveducationfaq_faqrate) — AJAX endpoint for helpfulness rating. Returns JSON. Non-cacheable.
Helpfulness rating
How it works
Each FAQ item has two integer counters in the database:
helpful_yes— number of "Yes" clickshelpful_no— number of "No" clicks
When a visitor clicks "Yes" or "No", a POST request is sent to the FaqRate plugin which increments the corresponding counter and returns a JSON response.
Backend view
The counters are visible in the backend when editing a FAQ item:
- Open a FAQ item record
- Switch to the Rating tab
- The fields "Helpful: Yes" and "Helpful: No" show the current counts (read-only)
The model also provides computed properties:
getHelpfulTotal()— sum of yes + nogetHelpfulPercentage()— percentage of "yes" votes