- golem15.faq plugin (Requires golem15.translate), table golem15_faq_faqs with the PHP columns - FAQ model with jsonable content and the translate Locale relation - admin controller golem15.faq.faqs: name, slug, locale, active switch, richeditor description, question repeater - navigation FAQ (order 500), permission golem15.faq.faqs, en and pl phrasebooks - TestFaqAdminSmoke: answers stored sanitized with a notice under content.1.answer
40 lines
991 B
YAML
40 lines
991 B
YAML
# ===================================
|
|
# List Behavior Config
|
|
# ===================================
|
|
|
|
# Model List Column configuration
|
|
list: ~/plugins/golem15/faq/models/faq/columns.yaml
|
|
|
|
# Model Class name
|
|
modelClass: Golem15\FAQ\Models\FAQ
|
|
|
|
# List Title
|
|
title: golem15.faq::lang.models.faq.label_plural
|
|
|
|
# Link URL for each record
|
|
recordUrl: golem15/faq/faqs/update/:id
|
|
|
|
# Message to display if the list is empty
|
|
noRecordsMessage: backend::lang.list.no_records
|
|
|
|
# Records to display per page
|
|
recordsPerPage: 20
|
|
|
|
# Options to provide the user when selecting how many records to display per page
|
|
perPageOptions: [20, 40, 80, 100, 120]
|
|
|
|
# Displays the list column set up button
|
|
showSetup: true
|
|
|
|
# Displays the sorting link on each column
|
|
showSorting: true
|
|
|
|
# Display checkboxes next to each record
|
|
showCheckboxes: true
|
|
|
|
# Toolbar: the PHP list_toolbar partial held create and delete selected
|
|
toolbar:
|
|
buttons: [create, delete]
|
|
search:
|
|
prompt: backend::lang.list.search_prompt
|