ORIENT/plugins/rainlab/blog/models/post/fields.yaml

104 lines
3.2 KiB
YAML

fields:
title:
label: 'rainlab.blog::lang.post.title'
placeholder: 'rainlab.blog::lang.post.title_placeholder'
type: text
slug:
label: 'rainlab.blog::lang.post.slug'
placeholder: 'rainlab.blog::lang.post.slug_placeholder'
preset:
field: title
type: slug
type: text
toolbar:
type: partial
path: post_toolbar
cssClass: collapse-visible
secondaryTabs:
fields:
content:
tab: 'rainlab.blog::lang.post.tab_edit'
type: RainLab\Blog\FormWidgets\BlogMarkdown
cssClass: 'field-slim blog-post-preview'
stretch: true
mode: split
locale:
label: 'Language of Post'
options:
ru: Russian
en: English
tm: Turkmen
showSearch: true
span: left
default: 'rainlab.blog::lang.ru'
type: dropdown
tab: 'rainlab.blog::lang.post.tab_categories'
id_en:
label: 'Translated Post ID En'
span: right
dependsOn:
- locale
type: number
tab: 'rainlab.blog::lang.post.tab_categories'
id_tm:
label: 'Translated Post ID Tm'
span: right
dependsOn:
- locale
type: number
tab: 'rainlab.blog::lang.post.tab_categories'
id_ru:
label: 'Translated Post ID Ru'
span: right
dependsOn:
- locale
type: number
tab: 'rainlab.blog::lang.post.tab_categories'
active_categories:
tab: 'rainlab.blog::lang.post.tab_categories'
type: relation
commentAbove: 'rainlab.blog::lang.post.categories_comment'
placeholder: 'rainlab.blog::lang.post.categories_placeholder'
span: auto
author:
label: 'Post author'
span: auto
default: 'ORIENT news'
type: text
tab: 'rainlab.blog::lang.post.tab_manage'
featured:
label: Featured
span: auto
type: checkbox
tab: 'rainlab.blog::lang.post.tab_manage'
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
published:
tab: 'rainlab.blog::lang.post.tab_manage'
label: 'rainlab.blog::lang.post.published'
span: right
type: checkbox
excerpt:
tab: 'rainlab.blog::lang.post.tab_manage'
label: 'rainlab.blog::lang.post.excerpt'
type: textarea
size: small
featured_image:
label: 'Featured image'
tab: 'rainlab.blog::lang.post.tab_manage'
type: mediafinder
mode: image
span: storm
cssClass: col-xs-12
imageWidth: 300
imageHeight: 300