-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathexample.tf
More file actions
138 lines (133 loc) · 2.8 KB
/
example.tf
File metadata and controls
138 lines (133 loc) · 2.8 KB
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
resource "storyblok_component" "article" {
name = "article"
space_id = 123
is_root = false
is_nestable = true
schema = {
date = {
position = 0
display_name = "Date"
required = false
type = "datetime"
disable_time = true
}
author = {
position = 1
display_name = "Author"
required = false
type = "text"
}
content = {
position = 2
translatable = true
display_name = "Content"
required = false
type = "markdown"
rich_markdown = true
}
}
}
resource "storyblok_component" "banner_block" {
name = "banner_block"
space_id = 123
is_root = false
is_nestable = true
icon = "block-image"
schema = {
title = {
position = 0
translatable = true
display_name = "Title"
required = false
type = "text"
}
link = {
position = 1
display_name = "Link"
required = false
type = "multilink"
}
image = {
position = 2
display_name = "Image"
required = true
type = "asset"
filetypes = [
"images"
]
}
}
}
resource "storyblok_component" "markdown_block" {
name = "markdown_block"
space_id = 123
is_root = false
is_nestable = true
schema = {
content = {
position = 0
translatable = true
display_name = "Content"
required = false
type = "markdown"
rich_markdown = true
}
}
}
resource "storyblok_component" "page" {
name = "page"
space_id = 123
is_root = true
is_nestable = false
schema = {
seoTitle = {
position = 0
translatable = true
display_name = "Seo title"
required = false
type = "text"
}
seoDescription = {
position = 1
translatable = true
display_name = "Seo description"
required = false
type = "text"
}
blocks = {
position = 2
display_name = "Blocks"
required = false
type = "bloks"
component_whitelist = [
"markdown_block",
"banner_block"
]
restrict_components = true
}
sectionSeo = {
position = 3
type = "section"
display_name = "SEO"
keys = [
"seoTitle",
"seoDescription"
]
}
}
}
resource "storyblok_component" "product_list_block" {
name = "product_list_block"
space_id = 123
is_root = false
is_nestable = true
schema = {
title = {
position = 0
translatable = true
display_name = "Title"
required = false
type = "text"
}
}
}