-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathdefault_config.php
88 lines (84 loc) · 2.35 KB
/
default_config.php
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
<?php
/*
$config['components']['urlManager'] = [
'enablePrettyUrl' => true,
'showScriptName' => false,
'rules' => [
],
];
*
/** here comes the actual simple cms configuration parts */
$config['modules']['simplecms_frontend'] = [
'urlPrefix' => 'cms', //the context alias for the module if you do not want to use simple cms_frotend in your path
'class' => 'schallschlucker\simplecms\Frontend',
'languageManager' => 'simplecmsLanguageManager',
'renderTopMenuNavbar' => true,
'htmlTitlePrefix' => 'simple-cms: ',
'cache' => 'cache'
];
$config['modules']['media_manager'] = [
'class' => 'schallschlucker\simplecms\MediaManager',
'mediarepositoryPath' => '/tmp/',
];
$config['modules']['simplecms_backend'] = [
'class' => 'schallschlucker\simplecms\Backend',
'cache' => 'cache',
'languageManager' => 'simplecmsLanguageManager',
];
$config['components']['simplecmsLanguageManager'] = [
'class' => 'schallschlucker\simplecms\LanguageManager',
'languageIdMappings' => [
'1' => [
'id' => 1,
'code' => 'de_DE',
'displaytext' => [
'de_DE' => 'deutsch',
'en_US' => 'german',
'pl_PL' => 'niemiecki',
'tr_TR' => 'alman',
],
],
'de_DE' => [
'alias' => '1'
],
'de-DE' => [
'alias' => '1'
],
'2' => [
'id' => 2,
'code' => 'en_US',
'displaytext' => [
'de_DE' => 'englisch',
'en_US' => 'english',
'pl_PL' => 'angielski',
'tr_TR' => 'ingilizce',
],
],
'en_US' => [
'alias' => '2',
],
'en-US' => [
'alias' => '2',
],
'3' => [
'id' => 3,
'code' => 'pl_PL',
'displaytext' => [
'de_DE' => 'polnisch',
'en_US' => 'polish',
'pl_PL' => 'polski',
'tr_TR' => 'lehçe',
],
],
'4' => [
'id' => 4,
'code' => 'tr_TR',
'displaytext' => [
'de_DE' => 'türkisch',
'en_US' => 'turkish',
'pl_PL' => 'turecki',
'tr_TR' => 'türk',
],
],
],
];