- 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
16 lines
325 B
Go
16 lines
325 B
Go
// Package models holds the FAQ plugin's GORM models.
|
|
package models
|
|
|
|
var all []any
|
|
|
|
// Register appends GORM models so later files add models without editing
|
|
// plugin.go.
|
|
func Register(models ...any) {
|
|
all = append(all, models...)
|
|
}
|
|
|
|
// All returns every model registered by this package.
|
|
func All() []any {
|
|
return all
|
|
}
|