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

142 lines
4.4 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'
author:
label: 'Post author'
span: auto
default: 'ORIENT news'
type: text
tab: 'rainlab.blog::lang.post.tab_manage'
featured:
label: 'показать в слайдере на главной странице'
span: auto
type: checkbox
comment: 'не отмечать если не нужно выставлять на слайдере'
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
type_post:
label: 'Select Main Category'
dependsOn: category_groups
span: right
options:
turkmenistan: Turkmenistan
world: 'In the world'
required: 0
type: balloon-selector
tab: 'Category Group'
category_groups:
span: left
path: field_category_group_item
type: partial
tab: 'Category Group'
categories:
tab: 'Category Group'
type: checkboxlist
dependsOn: category_groups
options: getActiveCategoriesOptions
span: auto
afisha_phone:
label: Afisha
span: left
hidden: 1
type: text
dependsOn: category_groups
tab: 'Category Group'
afisha_address:
label: 'Afisha Address'
span: left
hidden: 1
type: text
dependsOn: category_groups
tab: 'Category Group'
video_file:
label: 'Video File'
span: left
mode: file
hidden: 1
type: mediafinder
dependsOn: category_groups
tab: 'Category Group'