- blogeditor and mlblogeditor field types (classes.BlogEditorTypes) on the plugin; post content is mlblogeditor with htmlColumn content_html - Decode stores SanitizeHTMLReport output per locale with notices naming what was removed; clean HTML is stored byte for byte, nothing is refused because of markup - Load serves HTML as stored and markdown posts as their content_html - the admin hooks copy written content to content_html per locale without goldmark; untouched content leaves both columns as they are - editor lang keys (en, pl plural notices), tracer smoke test, updated Postgres admin tests
73 lines
2.2 KiB
YAML
73 lines
2.2 KiB
YAML
fields:
|
|
title:
|
|
label: golem15.journal::lang.post.title
|
|
type: mltext
|
|
span: left
|
|
tab: golem15.journal::lang.post.tab_edit
|
|
required: true
|
|
slug:
|
|
label: golem15.journal::lang.post.slug
|
|
type: mltext
|
|
span: right
|
|
tab: golem15.journal::lang.post.tab_edit
|
|
required: true
|
|
preset:
|
|
field: title
|
|
type: slug
|
|
content:
|
|
label: golem15.journal::lang.post.content
|
|
type: mlblogeditor
|
|
htmlColumn: content_html
|
|
uploadFolder: posts
|
|
size: huge
|
|
tab: golem15.journal::lang.post.tab_edit
|
|
required: true
|
|
excerpt:
|
|
label: golem15.journal::lang.post.excerpt
|
|
type: mltextarea
|
|
size: small
|
|
tab: golem15.journal::lang.post.tab_manage
|
|
categories:
|
|
label: golem15.journal::lang.post.categories
|
|
type: relation
|
|
nameFrom: name
|
|
tab: golem15.journal::lang.post.tab_categories
|
|
comment: golem15.journal::lang.post.categories_comment
|
|
tags:
|
|
label: golem15.journal::lang.journal.tags
|
|
type: relation
|
|
nameFrom: name
|
|
tab: golem15.journal::lang.post.tab_categories
|
|
comment: golem15.journal::lang.post.tags_comment
|
|
published:
|
|
label: golem15.journal::lang.post.published
|
|
type: switch
|
|
span: left
|
|
tab: golem15.journal::lang.post.tab_manage
|
|
is_pinned:
|
|
label: Pinned
|
|
comment: Pin this post to appear first in listings
|
|
type: checkbox
|
|
span: left
|
|
tab: golem15.journal::lang.post.tab_manage
|
|
user:
|
|
label: golem15.journal::lang.post.published_by
|
|
type: relation
|
|
nameFrom: login
|
|
emptyOption: golem15.journal::lang.post.current_user
|
|
span: right
|
|
tab: golem15.journal::lang.post.tab_manage
|
|
published_at:
|
|
label: golem15.journal::lang.post.published_on
|
|
type: datepicker
|
|
mode: datetime
|
|
span: left
|
|
tab: golem15.journal::lang.post.tab_manage
|
|
featured_images:
|
|
label: golem15.journal::lang.post.featured_images
|
|
type: fileupload
|
|
mode: image
|
|
imageWidth: 200
|
|
imageHeight: 200
|
|
tab: golem15.journal::lang.post.tab_manage
|