@@ -16,8 +16,8 @@ Configuration
16
16
``phpcr ``
17
17
.........
18
18
19
- This defines the persistence driver. The default configuration of persistence
20
- is the following configuration :
19
+ This enables the persistence driver for the PHP content repository. The default
20
+ configuration is the following:
21
21
22
22
.. configuration-block ::
23
23
@@ -31,7 +31,6 @@ is the following configuration:
31
31
basepath : /cms
32
32
manager_registry : doctrine_phpcr
33
33
manager_name : ~
34
- use_sonata_admin : auto
35
34
translation_strategy : ~
36
35
37
36
.. code-block :: xml
@@ -47,7 +46,6 @@ is the following configuration:
47
46
basepath =" /cms"
48
47
manager-registery =" doctrine_phpcr"
49
48
manager-name =" null"
50
- use-sonata-admin =" auto"
51
49
translation-strategy =" null"
52
50
/>
53
51
</persistence >
@@ -65,7 +63,6 @@ is the following configuration:
65
63
'basepath' => '/cms/simple',
66
64
'manager_registry' => 'doctrine_phpcr',
67
65
'manager_name' => null,
68
- 'use_sonata_admin' => 'auto',
69
66
'translation_strategy' => null,
70
67
],
71
68
],
@@ -74,8 +71,8 @@ is the following configuration:
74
71
``orm ``
75
72
.......
76
73
77
- This defines the persistence driver. The default configuration of persistence
78
- is the following configuration :
74
+ This enables the persistence driver for relational databases. The default
75
+ configuration is the following:
79
76
80
77
.. configuration-block ::
81
78
@@ -87,7 +84,6 @@ is the following configuration:
87
84
orm :
88
85
enabled : false
89
86
manager_name : ~
90
- use_sonata_admin : auto
91
87
92
88
.. code-block :: xml
93
89
@@ -100,7 +96,6 @@ is the following configuration:
100
96
<phpcr
101
97
enabled =" false"
102
98
manager-name =" null"
103
- use-sonata-admin =" auto"
104
99
/>
105
100
</persistence >
106
101
</config >
@@ -115,7 +110,6 @@ is the following configuration:
115
110
'phpcr' => [
116
111
'enabled' => false,
117
112
'manager_name' => null,
118
- 'use_sonata_admin' => 'auto',
119
113
],
120
114
],
121
115
]);
@@ -125,7 +119,8 @@ is the following configuration:
125
119
126
120
.. include :: ../_partials/persistence_phpcr_enabled.rst.inc
127
121
128
- Enabling this setting will also automatically enable the equivalent setting in the following Bundles:
122
+ This setting is propagated as default value to all CMF bundles that support
123
+ this setting:
129
124
130
125
* :doc: `BlockBundle <../block/introduction >`
131
126
* :doc: `ContentBundle <../content/introduction >`
@@ -135,7 +130,6 @@ Enabling this setting will also automatically enable the equivalent setting in t
135
130
* :doc: `RoutingBundle <../routing/introduction >`
136
131
* :doc: `SearchBundle <../search/introduction >`
137
132
* :doc: `SimpleCmsBundle <../simple_cms/introduction >`
138
- * :doc: `TreeBrowserCmsBundle <../tree_browser/introduction >`
139
133
140
134
``basepath ``
141
135
""""""""""""
@@ -144,22 +138,28 @@ Enabling this setting will also automatically enable the equivalent setting in t
144
138
145
139
The basepath for CMS documents in the PHPCR tree.
146
140
147
- Enabling this setting will also automatically enable the equivalent settings in the following Bundles:
141
+ This setting is propagated as default value to all CMF bundles that support
142
+ this setting:
148
143
149
144
* :doc: `BlockBundle <../block/introduction >`
150
145
* :doc: `ContentBundle <../content/introduction >`
151
146
* :doc: `MediaBundle <../media/introduction >`
152
147
* :doc: `MenuBundle <../menu/introduction >`
153
148
* :doc: `RoutingBundle <../routing/introduction >`
154
149
* :doc: `SearchBundle <../search/introduction >`
150
+ * :doc: `SeoBundle <../seo/introduction >`
155
151
* :doc: `SimpleCmsBundle <../simple_cms/introduction >`
156
152
157
153
``manager_registry ``
158
154
""""""""""""""""""""
159
155
160
156
**type **: ``string `` **default **: ``doctrine_phpcr ``
161
157
162
- Enabling this setting will also automatically enable the equivalent settings in the following Bundles:
158
+ The doctrine registry from which to get the document manager. This setting
159
+ only needs to be changed when configuring multiple manager registries.
160
+
161
+ This setting is propagated as default value to all CMF bundles that support
162
+ this setting:
163
163
164
164
* :doc: `SearchBundle <../search/introduction >`
165
165
* :doc: `SimpleCmsBundle <../simple_cms/introduction >`
@@ -170,9 +170,10 @@ Enabling this setting will also automatically enable the equivalent settings in
170
170
**type **: ``string `` **default **: ``null ``
171
171
172
172
The name of the Doctrine Manager to use. ``null `` tells the manager registry to
173
- retrieve the default manager.<persistence>
173
+ retrieve the default manager.
174
174
175
- Enabling this setting will also automatically enable the equivalent setting in the following Bundles:
175
+ This setting is propagated as default value to all CMF bundles that support
176
+ this setting:
176
177
177
178
* :doc: `BlockBundle <../block/introduction >`
178
179
* :doc: `MediaBundle <../media/introduction >`
@@ -181,44 +182,27 @@ Enabling this setting will also automatically enable the equivalent setting in t
181
182
* :doc: `SearchBundle <../search/introduction >`
182
183
* :doc: `SimpleCmsBundle <../simple_cms/introduction >`
183
184
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
185
``translation_strategy ``
202
186
""""""""""""""""""""""""
203
187
204
188
**type **: ``string `` **default **: ``null ``
205
189
206
- This setting can be used to force a specific translation strategy for all documents.
190
+ This setting can be used to :ref: `force a specific translation strategy <bundles-core-multilang-global_translation_strategy >`
191
+ for all documents.
207
192
208
193
.. _config-core-multilang :
209
194
210
195
``multilang ``
211
196
~~~~~~~~~~~~~
212
197
213
- This configures whether multiple languages mode should be activated .
198
+ This configures the locales to use in multiple languages mode .
214
199
215
200
If the ``multilang `` option is *not * defined at all, the CoreBundle registers a
216
201
listener for Doctrine PHPCR-ODM that modifies PHPCR-ODM metadata to remove the
217
202
translatable attribute from all fields.
218
203
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:
204
+ If multi-language is enabled, the locales will be configured as default on all
205
+ CMF bundles that use this configuration:
222
206
223
207
* :doc: `RoutingBundle <../routing/introduction >`
224
208
* :doc: `SimpleCmsBundle <../simple_cms/introduction >`
@@ -263,7 +247,7 @@ bundles that use this configuration:
263
247
264
248
**type **: ``array `` **default **: ``null ``
265
249
266
- This define languages that can be used.
250
+ List of the languages that can be used with the storage .
267
251
268
252
``publish_workflow ``
269
253
~~~~~~~~~~~~~~~~~~~~
@@ -311,71 +295,3 @@ only published routes and content can be accessed.
311
295
'request_listener' => true,
312
296
],
313
297
]);
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