Files
sm-faq-plugin/models/faq/columns.yaml
Jakub Zych 1c5491232a feat(17-04): FAQ plugin tracer, admin FAQ with sanitized question repeater
- 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
2026-10-12 17:24:52 +02:00

34 lines
943 B
YAML

# ===================================
# List Column Definitions
# ===================================
#
# The PHP columns plus locale: one slug exists per language, and without the
# column two rows of the same FAQ look identical.
columns:
id:
label: golem15.faq::lang.models.general.id
searchable: true
name:
label: golem15.faq::lang.labels.name
searchable: true
slug:
label: golem15.faq::lang.labels.slug
searchable: true
locale:
label: golem15.faq::lang.labels.locale
relation: locale
select: name
is_active:
label: golem15.faq::lang.labels.is_active
type: switch
created_at:
label: golem15.faq::lang.models.general.created_at
type: datetime
sortable: true
invisible: true
updated_at:
label: golem15.faq::lang.models.general.updated_at
type: datetime
sortable: true