@@ -8,6 +8,10 @@ configuration. When using XML, you can use the
8
8
Configuration
9
9
-------------
10
10
11
+ Some configuration settings set on the CoreBundle are forwarded as default
12
+ configuration to all CMF bundles that are installed in your application. This
13
+ is explicitly listed below for each configuration option that is forwarded.
14
+
11
15
.. _config-core-persistence :
12
16
13
17
``persistence ``
@@ -16,8 +20,8 @@ Configuration
16
20
``phpcr ``
17
21
.........
18
22
19
- This defines the persistence driver. The default configuration of persistence
20
- is the following configuration :
23
+ This enables the persistence driver for the PHP content repository. The default
24
+ configuration is the following:
21
25
22
26
.. configuration-block ::
23
27
@@ -31,7 +35,6 @@ is the following configuration:
31
35
basepath : /cms
32
36
manager_registry : doctrine_phpcr
33
37
manager_name : ~
34
- use_sonata_admin : auto
35
38
translation_strategy : ~
36
39
37
40
.. code-block :: xml
@@ -47,7 +50,6 @@ is the following configuration:
47
50
basepath =" /cms"
48
51
manager-registery =" doctrine_phpcr"
49
52
manager-name =" null"
50
- use-sonata-admin =" auto"
51
53
translation-strategy =" null"
52
54
/>
53
55
</persistence >
@@ -65,7 +67,6 @@ is the following configuration:
65
67
'basepath' => '/cms/simple',
66
68
'manager_registry' => 'doctrine_phpcr',
67
69
'manager_name' => null,
68
- 'use_sonata_admin' => 'auto',
69
70
'translation_strategy' => null,
70
71
],
71
72
],
@@ -74,8 +75,8 @@ is the following configuration:
74
75
``orm ``
75
76
.......
76
77
77
- This defines the persistence driver. The default configuration of persistence
78
- is the following configuration :
78
+ This enables the persistence driver for relational databases. The default
79
+ configuration is the following:
79
80
80
81
.. configuration-block ::
81
82
@@ -87,7 +88,6 @@ is the following configuration:
87
88
orm :
88
89
enabled : false
89
90
manager_name : ~
90
- use_sonata_admin : auto
91
91
92
92
.. code-block :: xml
93
93
@@ -100,7 +100,6 @@ is the following configuration:
100
100
<phpcr
101
101
enabled =" false"
102
102
manager-name =" null"
103
- use-sonata-admin =" auto"
104
103
/>
105
104
</persistence >
106
105
</config >
@@ -115,7 +114,6 @@ is the following configuration:
115
114
'phpcr' => [
116
115
'enabled' => false,
117
116
'manager_name' => null,
118
- 'use_sonata_admin' => 'auto',
119
117
],
120
118
],
121
119
]);
@@ -125,7 +123,8 @@ is the following configuration:
125
123
126
124
.. include :: ../_partials/persistence_phpcr_enabled.rst.inc
127
125
128
- Enabling this setting will also automatically enable the equivalent setting in the following Bundles:
126
+ This setting is propagated as default value to all installed CMF bundles that support
127
+ this setting:
129
128
130
129
* :doc: `BlockBundle <../block/introduction >`
131
130
* :doc: `ContentBundle <../content/introduction >`
@@ -135,7 +134,6 @@ Enabling this setting will also automatically enable the equivalent setting in t
135
134
* :doc: `RoutingBundle <../routing/introduction >`
136
135
* :doc: `SearchBundle <../search/introduction >`
137
136
* :doc: `SimpleCmsBundle <../simple_cms/introduction >`
138
- * :doc: `TreeBrowserCmsBundle <../tree_browser/introduction >`
139
137
140
138
``basepath ``
141
139
""""""""""""
@@ -144,22 +142,28 @@ Enabling this setting will also automatically enable the equivalent setting in t
144
142
145
143
The basepath for CMS documents in the PHPCR tree.
146
144
147
- Enabling this setting will also automatically enable the equivalent settings in the following Bundles:
145
+ This setting is propagated as default value to all installed CMF bundles that support
146
+ this setting:
148
147
149
148
* :doc: `BlockBundle <../block/introduction >`
150
149
* :doc: `ContentBundle <../content/introduction >`
151
150
* :doc: `MediaBundle <../media/introduction >`
152
151
* :doc: `MenuBundle <../menu/introduction >`
153
152
* :doc: `RoutingBundle <../routing/introduction >`
154
153
* :doc: `SearchBundle <../search/introduction >`
154
+ * :doc: `SeoBundle <../seo/introduction >`
155
155
* :doc: `SimpleCmsBundle <../simple_cms/introduction >`
156
156
157
157
``manager_registry ``
158
158
""""""""""""""""""""
159
159
160
160
**type **: ``string `` **default **: ``doctrine_phpcr ``
161
161
162
- Enabling this setting will also automatically enable the equivalent settings in the following Bundles:
162
+ The doctrine registry from which to get the document manager. This setting
163
+ only needs to be changed when configuring multiple manager registries.
164
+
165
+ This setting is propagated as default value to all installed CMF bundles that support
166
+ this setting:
163
167
164
168
* :doc: `SearchBundle <../search/introduction >`
165
169
* :doc: `SimpleCmsBundle <../simple_cms/introduction >`
@@ -170,9 +174,10 @@ Enabling this setting will also automatically enable the equivalent settings in
170
174
**type **: ``string `` **default **: ``null ``
171
175
172
176
The name of the Doctrine Manager to use. ``null `` tells the manager registry to
173
- retrieve the default manager.<persistence>
177
+ retrieve the default manager.
174
178
175
- Enabling this setting will also automatically enable the equivalent setting in the following Bundles:
179
+ This setting is propagated as default value to all installed CMF bundles that support
180
+ this setting:
176
181
177
182
* :doc: `BlockBundle <../block/introduction >`
178
183
* :doc: `MediaBundle <../media/introduction >`
@@ -181,44 +186,27 @@ Enabling this setting will also automatically enable the equivalent setting in t
181
186
* :doc: `SearchBundle <../search/introduction >`
182
187
* :doc: `SimpleCmsBundle <../simple_cms/introduction >`
183
188
184
- ``use_sonata_admin ``
185
- """"""""""""""""""""
186
-
187
- **type **: ``enum `` **valid values **: ``true|false|auto `` **default **: ``auto ``
188
-
189
- If ``true ``, the admin classes for SimpleCmsBundle pages are activated. If set
190
- to ``auto ``, the admin services are activated only if the
191
- SonataPhpcrAdminBundle is present.
192
-
193
- Enabling this setting will also automatically enable the equivalent setting in the following Bundles:
194
-
195
- * :doc: `BlockBundle <../block/introduction >`
196
- * :doc: `ContentBundle <../content/introduction >`
197
- * :doc: `MenuBundle <../menu/introduction >`
198
- * :doc: `RoutingBundle <../routing/introduction >`
199
- * :doc: `SimpleCmsBundle <../simple_cms/introduction >`
200
-
201
189
``translation_strategy ``
202
190
""""""""""""""""""""""""
203
191
204
192
**type **: ``string `` **default **: ``null ``
205
193
206
- This setting can be used to force a specific translation strategy for all documents.
194
+ This setting can be used to :ref: `force a specific translation strategy <bundles-core-multilang-global_translation_strategy >`
195
+ for all documents.
207
196
208
197
.. _config-core-multilang :
209
198
210
199
``multilang ``
211
200
~~~~~~~~~~~~~
212
201
213
- This configures whether multiple languages mode should be activated .
202
+ This configures the locales to use in multiple languages mode .
214
203
215
204
If the ``multilang `` option is *not * defined at all, the CoreBundle registers a
216
205
listener for Doctrine PHPCR-ODM that modifies PHPCR-ODM metadata to remove the
217
206
translatable attribute from all fields.
218
207
219
- If multi-language is enabled, the ``TranslatableExtension `` for
220
- ``SonataAdminBundle `` is enabled and the locales will be configured on all CMF
221
- bundles that use this configuration:
208
+ If multi-language is enabled, the locales will be configured as default on all
209
+ installed CMF bundles that use this configuration:
222
210
223
211
* :doc: `RoutingBundle <../routing/introduction >`
224
212
* :doc: `SimpleCmsBundle <../simple_cms/introduction >`
@@ -263,7 +251,7 @@ bundles that use this configuration:
263
251
264
252
**type **: ``array `` **default **: ``null ``
265
253
266
- This define languages that can be used.
254
+ List of the languages that can be used with the storage .
267
255
268
256
``publish_workflow ``
269
257
~~~~~~~~~~~~~~~~~~~~
@@ -311,71 +299,3 @@ only published routes and content can be accessed.
311
299
'request_listener' => true,
312
300
],
313
301
]);
314
-
315
- Sonata Admin
316
- ------------
317
-
318
- This section configures the Sonata Admin Extensions, see:
319
-
320
- * :ref: `Publish Workflow Admin Extensions <bundle-core-workflow-admin-extensions >`;
321
- * :ref: `Translatable Admin Extension <bundle-core-translatable-admin-extension >`.
322
- * :ref: `Child Admin Extension <bundle-core-child-admin-extension >`.
323
-
324
- .. configuration-block ::
325
-
326
- .. code-block :: yaml
327
-
328
- # app/config/config.yml
329
- cmf_core :
330
- sonata_admin :
331
- extensions :
332
- publishable :
333
- form_group : form.group_publish_workflow
334
- publish_time :
335
- form_group : form.group_general
336
- translatable :
337
- form_group : form.group_general
338
-
339
- .. code-block :: xml
340
-
341
- <!-- app/config/config.xml -->
342
- <?xml version =" 1.0" charset =" UTF-8" ?>
343
- <container xmlns =" http://symfony.com/schema/dic/services" >
344
-
345
- <config xmlns =" http://cmf.symfony.com/schema/dic/core" >
346
- <sonata-admin >
347
- <extension >
348
- <publishable form-group =" form.group_publish_workflow" />
349
- <publish-time form-group =" form.group_general" />
350
- <translatable form-group =" form.group_general" />
351
- </extension >
352
- </sonata-admin >
353
- </config >
354
- </container >
355
-
356
- .. code-block :: php
357
-
358
- // app/config/config.php
359
- $container->loadFromExtension('cmf_core', [
360
- 'sonata_admin' => [
361
- 'extensions' => [
362
- 'publishable' => [
363
- 'form_group' => 'form.group_publish_workflow',
364
- ],
365
- 'publish_time' => [
366
- 'form_group' => 'form.group_general',
367
- ],
368
- 'translatable' => [
369
- 'form_group' => 'form.group_general',
370
- ],
371
- ],
372
- ],
373
- ]);
374
-
375
- ``form_group ``
376
- ~~~~~~~~~~~~~~
377
-
378
- **type **: ``string `` **default **: as in above example.
379
-
380
- Defines which form group the fields from this extension will appear in within
381
- the Sonata Admin edit interface.
0 commit comments