- category content is the blogeditor type (uploadFolder categories): it is stripped and reported like post content; the 422 CheckHTML gate is retired and blank content still becomes NULL - blogeditor and mlblogeditor Upload: magic-byte check for JPEG, PNG, GIF and WebP matching the extension, safe lowercase names, storage through classes.StoreMedia in the field's uploadFolder - TestBlogEditorUploadSmoke, TestCategoriesAdminContent asserts the strip, README describes the field types, admin saves and editor uploads
32 lines
785 B
YAML
32 lines
785 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: blogeditor
|
|
uploadFolder: categories
|
|
size: huge
|
|
span: full
|