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

154 lines
4.8 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-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:
2022-12-18 08:28:49 +00:00
label: 'показать в слайдере на главной странице'
2021-05-21 08:54:14 +00:00
span: auto
type: checkbox
2022-12-18 08:28:49 +00:00
comment: 'не отмечать если не нужно выставлять на слайдере'
2021-05-21 08:54:14 +00:00
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
label: 'rainlab.blog::lang.post.excerpt'
size: small
2022-12-23 09:55:31 +00:00
span: left
type: textarea
tab: 'rainlab.blog::lang.post.tab_manage'
on_morque:
label: 'Бегущая строка'
span: auto
type: checkbox
tab: 'rainlab.blog::lang.post.tab_manage'
2021-03-14 13:53:00 +00:00
featured_image:
2021-05-21 08:54:14 +00:00
label: 'Featured image'
mode: image
2022-12-23 09:55:31 +00:00
imageWidth: '300'
2021-03-14 13:53:00 +00:00
imageHeight: 300
2022-12-23 09:55:31 +00:00
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
2022-12-14 15:55:13 +00:00
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
2022-12-18 08:28:49 +00:00
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'