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

171 lines
5.2 KiB
YAML

fields:
title:
label: 'rainlab.blog::lang.post.title'
span: full
placeholder: 'rainlab.blog::lang.post.title_placeholder'
type: text
slug:
label: 'rainlab.blog::lang.post.slug'
span: full
placeholder: 'rainlab.blog::lang.post.slug_placeholder'
preset:
field: title
type: slug
type: text
toolbar:
span: full
cssClass: collapse-visible
path: post_toolbar
type: partial
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: 'Language and Tag'
id_en:
label: 'Translated Post ID En'
span: right
dependsOn:
- locale
type: number
tab: 'Language and Tag'
id_tm:
label: 'Translated Post ID Tm'
span: right
dependsOn:
- locale
type: number
tab: 'Language and Tag'
id_ru:
label: 'Translated Post ID Ru'
span: right
dependsOn:
- locale
type: number
tab: 'Language and Tag'
awtor:
label: Authors
nameFrom: name
descriptionFrom: description
span: auto
type: relation
tab: 'rainlab.blog::lang.post.tab_manage'
author_name:
label: 'Author Name'
span: auto
dependsOn: awtor
readOnly: true
type: text
tab: 'rainlab.blog::lang.post.tab_manage'
featured:
label: 'показать в слайдере на главной странице'
span: right
type: checkbox
comment: 'не отмечать если не нужно выставлять на слайдере'
tab: 'rainlab.blog::lang.post.tab_manage'
on_morque:
label: 'Бегущая строка'
span: right
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:
label: 'rainlab.blog::lang.post.excerpt'
size: small
span: auto
type: textarea
tab: 'rainlab.blog::lang.post.tab_manage'
img_source:
label: 'Image Source'
span: left
required: 1
type: text
tab: 'rainlab.blog::lang.post.tab_manage'
featured_image:
label: 'Featured image'
mode: image
imageWidth: '300'
imageHeight: 300
span: left
cssClass: col-xs-12
type: mediafinder
tab: 'rainlab.blog::lang.post.tab_manage'
more_photo:
label: Images
prompt: 'Add new image'
style: default
span: right
type: repeater
tab: 'rainlab.blog::lang.post.tab_manage'
form:
fields:
photoq:
label: Image
mode: file
imageWidth: '300'
imageHeight: '300'
span: full
type: mediafinder
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
type: text
dependsOn: category_groups
tab: 'Category Group'
afisha_address:
label: 'Afisha Address'
span: left
type: text
dependsOn: category_groups
tab: 'Category Group'