-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeskStructure.js
More file actions
69 lines (62 loc) · 1.69 KB
/
deskStructure.js
File metadata and controls
69 lines (62 loc) · 1.69 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
import S from '@sanity/desk-tool/structure-builder'
export default () =>
S.list()
.title('Content')
.items([
S.listItem()
.title('Site Settings')
.child(
S.editor()
.id('siteSettings')
.schemaType('siteSettings')
.documentId('siteSettings')
),
// main menu items
S.listItem()
.title('Main Menu')
.child(
S.editor()
.title('Main Menu Items')
.id('main_menu')
.schemaType('main_menu')
.documentId('main_menu')
),
// home page
S.listItem()
.title('Home Page')
.child(
S.editor()
.title('Home Page Content')
.id('homePage')
.schemaType('homePage')
.documentId('homePage')
),
// Generic Pages
S.listItem()
.title('Pages')
.child(S.documentTypeList('page').title('Pages')),
// Posts
S.listItem()
.title('Posts')
.child(S.documentTypeList('post').title('Posts')),
// Faqs
S.listItem()
.title('FAQs')
.child(
S.editor()
.title('Main Menu Items')
.id('faqs')
.schemaType('faqs')
.documentId('faqs')
),
// S.listItem()
// .title('Press Articles')
// .child(
// S.documentList()
// .title('Press Articles')
// .menuItems(S.documentTypeList('post').getMenuItems())
// // .filter("_type == $type && section_id == $id")
// .filter('_type == $type && !defined(parents)')
// .params({ type: 'post' })
// ),
])