-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathfile_teaser.ui_patterns.yml
143 lines (143 loc) · 5.43 KB
/
file_teaser.ui_patterns.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
file_teaser:
label: "File teaser"
description: "File download component with translations, teaser and thumbnail."
fields:
teaser:
type: "text"
label: "Teaser"
description: "Teaser text displayed in the main file teaser region."
preview: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer quis lorem tellus. Nullam sollicitudin suscipit diam, ac blandit ipsum tempor consectetur. Duis vitae pulvinar turpis. Donec maximus pharetra ex a ultricies."
button_label:
type: "text"
label: "Label"
description: "Download button label."
preview: "Download"
file:
type: "FileValueObject"
label: "File"
description: "A file value object."
preview:
title: "Example document"
mime: "application/pdf"
url: "http://example.com/document.pdf"
size: "140000"
name: "document.pdf"
language_code: "en"
link_attributes:
type: "array"
label: "The download link attributes"
description: "Any additional attributes to be added to the file download link."
preview:
- "name": "data-attribute-foo"
"value": "bar"
thumbnail:
type: "array"
label: "Thumbnail"
description: "Document thumbnail."
preview:
src: "https://inno-ecl.s3.amazonaws.com/media/examples/example-image.jpg"
alt: "thumbnail alt"
resource_type:
type: "text"
label: "Resource type"
description: "Document resource type"
preview: "RESOURCE TYPE"
publication_date:
type: "text"
label: "Publication date"
description: "Document publication date"
preview: "2020-31-08"
translations:
type: "array"
label: "Files"
description: "List of items with the following properties: teaser (teaser is deprecated - to be removed in 5.x) text, FileValueObject and link attributes, respectively keyed with 'teaser', 'file' and 'link_attributes'."
preview:
- teaser: "Morbi fringilla turpis augue, et interdum ipsum egestas sed. Proin tristique, ante id aliquet malesuada, lorem dolor vulputate magna, a commodo purus ante nec massa."
file:
title: "French translation"
mime: "application/pdf"
url: "http://example.com/document_fr.pdf"
size: "150000"
name: "document.pdf"
language_code: "fr"
link_attributes:
- "name": "data-attribute-translation-foo"
"value": "bar"
- teaser: "Proin sagittis nisi hendrerit purus porta, at suscipit est hendrerit. Duis facilisis augue imperdiet, pharetra nisl sed, molestie nulla."
file:
title: "Italian translation"
mime: "application/pdf"
url: "http://example.com/document_it.pdf"
size: "160000"
name: "document.doc"
language_code: "it"
link_attributes:
- "name": "data-attribute-translation-foo"
"value": "bar"
- teaser: "Duis eget lacinia arcu. Nullam mattis ornare nibh. Proin tristique, ante id aliquet malesuada. Pellentesque porttitor commodo libero sed fringilla. Curabitur varius sodales elit, id tincidunt erat. Aenean tincidunt luctus molestie."
file:
title: "Hungarian translation"
mime: "application/pdf"
url: "http://example.com/document_hu.pdf"
size: "170000"
name: "document.pdf"
language_code: "hu"
link_attributes:
- "name": "data-attribute-translation-foo"
"value": "bar"
translation_toggle_label:
type: "text"
label: "Translation toggle label"
description: "Toggle label used for collapsing or expanding the available translations."
preview: "Other languages"
lists:
type: "array"
label: "Lists"
description: "Array of description lists (list items)."
preview:
- term: "Keywords"
definition:
- label: 'Apple'
- label: 'Orange'
- term: "Countries"
definition:
- label: 'Hungary'
- label: 'Germany'
- term: "External links"
definition:
- label: 'First external link'
path: 'https://example.com/1'
- label: 'Second external link'
path: 'https://example.com/2'
- path: 'https://example.com/3'
external_link: TRUE
more_info:
type: "text"
label: "More information (deprecated - to be removed in 5.x)"
description: "Informative text about the available translations."
preview: "Looking for another language which is not on the list? Find out why."
length:
type: numeric
label: "Max length"
description: "Used to trim the length of the 'Teaser' fields (optional)."
preview: 50
escape: false
badges:
type: array
label: "Badges"
description: "Adds different badges to the file. Warning: Due to ECL constraints, only the first item will be taken into account."
preview:
- label: "Highlighted"
variant: "highlight"
contextual_links:
type: "array"
label: "Contextual links"
description: "Render array of contextual links"
preview: ~
extra_attributes:
type: "array"
label: "Extra attributes"
description: "List of extra attributes"
preview:
- name: "extra-attr"
value: "extra value"