2021-03-05 08:12:56 +00:00
|
|
|
# ===================================
|
|
|
|
|
# Field Definitions
|
|
|
|
|
# ===================================
|
|
|
|
|
|
|
|
|
|
fields:
|
|
|
|
|
|
|
|
|
|
title:
|
|
|
|
|
label: rainlab.blog::lang.post.title
|
|
|
|
|
placeholder: rainlab.blog::lang.post.title_placeholder
|
|
|
|
|
|
|
|
|
|
slug:
|
|
|
|
|
label: rainlab.blog::lang.post.slug
|
2021-03-29 10:39:52 +00:00
|
|
|
# span: right
|
2021-03-05 08:12:56 +00:00
|
|
|
placeholder: rainlab.blog::lang.post.slug_placeholder
|
|
|
|
|
preset:
|
|
|
|
|
field: title
|
|
|
|
|
type: slug
|
|
|
|
|
|
|
|
|
|
toolbar:
|
|
|
|
|
type: partial
|
|
|
|
|
path: post_toolbar
|
|
|
|
|
cssClass: collapse-visible
|
|
|
|
|
|
|
|
|
|
secondaryTabs:
|
|
|
|
|
stretch: true
|
|
|
|
|
fields:
|
2021-04-02 11:28:40 +00:00
|
|
|
content:
|
2021-03-05 08:12:56 +00:00
|
|
|
tab: rainlab.blog::lang.post.tab_edit
|
2021-05-11 10:40:06 +00:00
|
|
|
# type: RainLab\Blog\FormWidgets\BlogMarkdown
|
|
|
|
|
type: richeditor
|
2021-03-05 08:12:56 +00:00
|
|
|
cssClass: field-slim blog-post-preview
|
|
|
|
|
stretch: true
|
|
|
|
|
mode: split
|
|
|
|
|
|
2021-03-29 10:39:52 +00:00
|
|
|
locale:
|
|
|
|
|
tab: rainlab.blog::lang.post.tab_categories
|
|
|
|
|
label: Language of Post
|
2021-04-08 08:08:59 +00:00
|
|
|
span: left
|
2021-03-29 10:39:52 +00:00
|
|
|
type: dropdown
|
|
|
|
|
default: ru
|
|
|
|
|
options:
|
|
|
|
|
ru: Russian
|
|
|
|
|
en: English
|
|
|
|
|
|
2021-04-08 08:08:59 +00:00
|
|
|
translated_post:
|
|
|
|
|
label: Translated Post id
|
|
|
|
|
type: number
|
|
|
|
|
tab: rainlab.blog::lang.post.tab_categories
|
|
|
|
|
span: right
|
|
|
|
|
|
|
|
|
|
active_categories:
|
2021-03-05 08:12:56 +00:00
|
|
|
tab: rainlab.blog::lang.post.tab_categories
|
|
|
|
|
type: relation
|
|
|
|
|
commentAbove: rainlab.blog::lang.post.categories_comment
|
|
|
|
|
placeholder: rainlab.blog::lang.post.categories_placeholder
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
published_at:
|
|
|
|
|
tab: rainlab.blog::lang.post.tab_manage
|
|
|
|
|
label: rainlab.blog::lang.post.published_on
|
|
|
|
|
span: left
|
|
|
|
|
cssClass: checkbox-align
|
|
|
|
|
type: datepicker
|
|
|
|
|
mode: datetime
|
|
|
|
|
trigger:
|
|
|
|
|
action: enable
|
|
|
|
|
field: published
|
|
|
|
|
condition: checked
|
2021-03-29 10:39:52 +00:00
|
|
|
published:
|
|
|
|
|
tab: rainlab.blog::lang.post.tab_manage
|
|
|
|
|
label: rainlab.blog::lang.post.published
|
|
|
|
|
span: right
|
|
|
|
|
type: checkbox
|
|
|
|
|
|
|
|
|
|
user:
|
|
|
|
|
tab: rainlab.blog::lang.post.tab_manage
|
|
|
|
|
label: rainlab.blog::lang.post.published_by
|
|
|
|
|
span: left
|
|
|
|
|
type: relation
|
|
|
|
|
nameFrom: login
|
|
|
|
|
emptyOption: rainlab.blog::lang.post.current_user
|
2021-03-05 08:12:56 +00:00
|
|
|
|
|
|
|
|
excerpt:
|
|
|
|
|
tab: rainlab.blog::lang.post.tab_manage
|
|
|
|
|
label: rainlab.blog::lang.post.excerpt
|
|
|
|
|
type: textarea
|
|
|
|
|
size: small
|
|
|
|
|
|
2021-03-14 13:53:00 +00:00
|
|
|
# featured_images:
|
|
|
|
|
# tab: rainlab.blog::lang.post.tab_manage
|
|
|
|
|
# label: rainlab.blog::lang.post.featured_images
|
|
|
|
|
# type: fileupload
|
|
|
|
|
# mode: image
|
|
|
|
|
# imageWidth: 200
|
|
|
|
|
# imageHeight: 200
|
|
|
|
|
featured_image:
|
|
|
|
|
label: Featured image
|
2021-03-05 08:12:56 +00:00
|
|
|
tab: rainlab.blog::lang.post.tab_manage
|
2021-03-14 13:53:00 +00:00
|
|
|
type: mediafinder
|
2021-03-05 08:12:56 +00:00
|
|
|
mode: image
|
2021-03-14 13:53:00 +00:00
|
|
|
span: storm
|
|
|
|
|
cssClass: col-xs-12
|
|
|
|
|
imageWidth: 300
|
|
|
|
|
imageHeight: 300
|