- add a content textarea (size huge) after description, with en and pl phrases - add content to Category.Fillable - export classes.CheckHTML and run it from FormBeforeCreate and FormBeforeUpdate: unsafe category content answers 422 on content, blank content is stored as NULL
31 lines
750 B
YAML
31 lines
750 B
YAML
fields:
|
|
name:
|
|
label: golem15.journal::lang.category.name
|
|
type: mltext
|
|
span: left
|
|
required: true
|
|
slug:
|
|
label: golem15.journal::lang.category.slug
|
|
type: mltext
|
|
span: right
|
|
required: true
|
|
preset:
|
|
field: name
|
|
type: slug
|
|
parent:
|
|
label: Parent
|
|
type: relation
|
|
nameFrom: name
|
|
span: full
|
|
description:
|
|
label: golem15.journal::lang.category.description
|
|
type: mltextarea
|
|
size: large
|
|
span: full
|
|
content:
|
|
label: golem15.journal::lang.category.content
|
|
comment: golem15.journal::lang.category.content_comment
|
|
type: textarea
|
|
size: huge
|
|
span: full
|