-
Notifications
You must be signed in to change notification settings - Fork 186
/
default.settings.js
102 lines (79 loc) · 1.87 KB
/
default.settings.js
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
/**
* jDrupal Settings.
* @see http://jdrupal.tylerfrankenstein.com
*/
jDrupal.settings = {
// Drupal site settings.
sitePath: '', /* The Drupal 8 site URL, e.g. https://example.com */
basePath: '/',
// Set to true to see debug info printed to the console.log().
debug: true
};
// App mode.
dg.settings.mode = 'web-app'; // web-app, phonegap or cordova
// App title.
dg.settings.title = 'DrupalGap';
// App front page.
dg.settings.front = null;
// App logo (render element).
/*dg.settings.logo = {
_theme: 'image',
_path: 'modules/custom/my_module/images/logo.jpg' // or http://example.com/logo.jpg
};*/
/**
* The active theme.
* @see http://docs.drupalgap.org/8/Themes
*/
dg.settings.theme = {
name: 'ava',
path: 'themes/ava'
};
// Drupal files directory path(s).
dg.settings.files = {
publicPath: 'sites/default/files',
privatePath: null
};
/**
* Blocks for the active theme.
* @see http://docs.drupalgap.org/8/Blocks
*/
dg.settings.blocks[dg.config('theme').name] = {
header: {
// DrupalGap's logo block.
//logo: { },
// DrupalGap's main menu block.
main_menu: { },
// The user login form provided by DrupalGap.
user_login: {
_roles: [
{ target_id: 'anonymous', visible: true }
]
},
// The user menu provided by DrupalGap.
user_menu: {
_roles: [
{ target_id: 'authenticated', visible: true }
]
}
},
content: {
// DrupalGap's messages block.
messages: { },
// DrupalGap's page title block.
title: { },
// DrupalGap's primary local tasks.
primary_local_tasks: { },
// DrupalGap's "main" content block.
main: { }
},
footer: {
// DrupalGap's administration menu block.
admin_menu: {
_roles: [
{ target_id: 'administrator', visible: true }
]
},
// The powered by DrupalGap block.
powered_by: { }
}
};