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

185 lines
5.6 KiB
YAML
Raw Normal View History

fields:
title:
2021-05-21 08:54:14 +00:00
label: 'rainlab.blog::lang.post.title'
2023-01-10 10:27:42 +00:00
span: full
2021-05-21 08:54:14 +00:00
placeholder: 'rainlab.blog::lang.post.title_placeholder'
type: text
slug:
2021-05-21 08:54:14 +00:00
label: 'rainlab.blog::lang.post.slug'
2023-01-10 10:27:42 +00:00
span: full
2021-05-21 08:54:14 +00:00
placeholder: 'rainlab.blog::lang.post.slug_placeholder'
preset:
field: title
type: slug
2021-05-21 08:54:14 +00:00
type: text
toolbar:
2023-01-10 10:27:42 +00:00
span: full
cssClass: collapse-visible
2023-01-10 10:27:42 +00:00
path: post_toolbar
type: partial
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
2025-04-22 05:46:37 +00:00
tab: 'Lang'
2022-12-06 15:33:01 +00:00
id_en:
label: 'Translated Post ID En'
span: right
dependsOn:
- locale
2021-04-08 08:08:59 +00:00
type: number
2025-04-22 05:46:37 +00:00
tab: 'Lang'
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
2025-04-22 05:46:37 +00:00
tab: 'Lang'
2022-12-06 15:33:01 +00:00
id_ru:
label: 'Translated Post ID Ru'
span: right
dependsOn:
- locale
type: number
2025-04-22 05:46:37 +00:00
tab: 'Lang'
2023-01-10 10:27:42 +00:00
awtor:
label: Authors
nameFrom: name
descriptionFrom: description
2021-05-21 08:54:14 +00:00
span: auto
2023-01-10 10:27:42 +00:00
type: relation
tab: 'rainlab.blog::lang.post.tab_manage'
author_name:
label: 'Author Name'
span: auto
dependsOn: awtor
readOnly: true
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: 'показать в слайдере на главной странице'
2023-01-10 10:27:42 +00:00
span: right
2021-05-21 08:54:14 +00:00
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'
2023-01-10 11:22:27 +00:00
on_morque:
label: 'Бегущая строка'
span: right
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
label: 'rainlab.blog::lang.post.excerpt'
size: small
2023-01-10 11:22:27 +00:00
span: auto
2022-12-23 09:55:31 +00:00
type: textarea
tab: 'rainlab.blog::lang.post.tab_manage'
2023-01-10 11:22:27 +00:00
img_source:
label: 'Image Source'
span: left
required: 1
type: text
2022-12-23 09:55:31 +00:00
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
2023-01-18 07:21:51 +00:00
type: relation
2022-12-14 15:55:13 +00:00
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'
2023-02-09 10:25:36 +00:00
afisha_phone_new:
label: 'Afisha Phones'
prompt: 'Add new phone'
style: default
span: auto
type: repeater
dependsOn: category_groups
tab: 'Category Group'
form:
fields:
phone:
label: Phone
span: full
type: text