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

104 lines
3.2 KiB
YAML
Raw Normal View History

fields:
title:
2021-05-21 08:54:14 +00:00
label: 'rainlab.blog::lang.post.title'
placeholder: 'rainlab.blog::lang.post.title_placeholder'
type: text
slug:
2021-05-21 08:54:14 +00:00
label: 'rainlab.blog::lang.post.slug'
placeholder: 'rainlab.blog::lang.post.slug_placeholder'
preset:
field: title
type: slug
2021-05-21 08:54:14 +00:00
type: text
toolbar:
type: partial
path: post_toolbar
cssClass: collapse-visible
secondaryTabs:
fields:
2021-04-02 11:28:40 +00:00
content:
2021-05-21 08:54:14 +00:00
tab: 'rainlab.blog::lang.post.tab_edit'
2021-05-11 12:39:09 +00:00
type: RainLab\Blog\FormWidgets\BlogMarkdown
2021-05-21 08:54:14 +00:00
cssClass: 'field-slim blog-post-preview'
stretch: true
mode: split
locale:
2021-05-21 08:54:14 +00:00
label: 'Language of Post'
options:
ru: Russian
en: English
2022-12-06 15:33:01 +00:00
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
2021-04-08 08:08:59 +00:00
type: number
2021-05-21 08:54:14 +00:00
tab: 'rainlab.blog::lang.post.tab_categories'
2022-12-06 15:33:01 +00:00
id_tm:
label: 'Translated Post ID Tm'
2021-04-08 08:08:59 +00:00
span: right
2022-12-06 15:33:01 +00:00
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'
2021-04-08 08:08:59 +00:00
active_categories:
2021-05-21 08:54:14 +00:00
tab: 'rainlab.blog::lang.post.tab_categories'
type: relation
2021-05-21 08:54:14 +00:00
commentAbove: 'rainlab.blog::lang.post.categories_comment'
placeholder: 'rainlab.blog::lang.post.categories_placeholder'
2022-12-06 15:33:01 +00:00
span: auto
2021-05-21 08:54:14 +00:00
author:
label: 'Post author'
span: auto
2021-05-24 07:52:04 +00:00
default: 'ORIENT news'
2021-05-21 08:54:14 +00:00
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:
2021-05-21 08:54:14 +00:00
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:
2021-05-21 08:54:14 +00:00
tab: 'rainlab.blog::lang.post.tab_manage'
label: 'rainlab.blog::lang.post.published'
span: right
type: checkbox
excerpt:
2021-05-21 08:54:14 +00:00
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_image:
2021-05-21 08:54:14 +00:00
label: 'Featured image'
tab: 'rainlab.blog::lang.post.tab_manage'
2021-03-14 13:53:00 +00:00
type: mediafinder
mode: image
2021-03-14 13:53:00 +00:00
span: storm
cssClass: col-xs-12
imageWidth: 300
imageHeight: 300