@@ -26,16 +26,11 @@ persistence configuration has the following configuration:
26
26
phpcr :
27
27
enabled : false
28
28
menu_basepath : /cms/menu
29
- content_basepath : ~
30
- prefetch : 10
29
+ content_basepath : /cms/content
31
30
manager_name : ~
31
+ prefetch : 10
32
32
menu_document_class : Symfony\Cmf\Bundle\MenuBundle\Doctrine\Phpcr\Menu
33
33
node_document_class : Symfony\Cmf\Bundle\MenuBundle\Doctrine\Phpcr\MenuNode
34
- use_sonata_admin : ~
35
- menu_admin_class : Symfony\Cmf\Bundle\MenuBundle\Admin\MenuAdmin
36
- node_admin_class : Symfony\Cmf\Bundle\MenuBundle\Admin\MenuNodeAdmin
37
- admin_recursive_breadcrumbs : true
38
-
39
34
40
35
.. code-block :: xml
41
36
@@ -47,15 +42,11 @@ persistence configuration has the following configuration:
47
42
<phpcr
48
43
enabled =" false"
49
44
menu-basepath =" /cms/menu"
50
- content-basepath =" null"
51
- prefetch =" 10"
45
+ content-basepath =" /cms/content"
52
46
manager-name =" null"
53
- menu-document-class =" null"
54
- node-document-class =" null"
55
- use-sonata-admin =" auto"
56
- menu-admin-class =" null"
57
- node-admin-class =" null"
58
- admin-recursive-breadcrumbs =" true"
47
+ prefetch =" 10"
48
+ menu-document-class =" Symfony\Cmf\Bundle\MenuBundle\Doctrine\Phpcr\Menu"
49
+ node-document-class =" Symfony\Cmf\Bundle\MenuBundle\Doctrine\Phpcr\MenuNode"
59
50
/>
60
51
</persistence >
61
52
</config >
@@ -69,15 +60,11 @@ persistence configuration has the following configuration:
69
60
'phpcr' => [
70
61
'enabled' => false,
71
62
'menu_basepath' => '/cms/menu',
72
- 'content_basepath' => null,
73
- 'prefetch' => 10,
63
+ 'content_basepath' => '/cms/content',
74
64
'manager_name' => null,
75
- 'menu_document_class' => null,
76
- 'node_document_class' => null,
77
- 'use_sonata_admin' => 'auto',
78
- 'menu_admin_class' => null,
79
- 'node_admin_class' => null,
80
- 'admin_recursive_breadcrumbs' => true,
65
+ 'prefetch' => 10,
66
+ 'menu_document_class' => \Symfony\Cmf\Bundle\MenuBundle\Doctrine\Phpcr\Menu::class,
67
+ 'node_document_class' => \Symfony\Cmf\Bundle\MenuBundle\Doctrine\Phpcr\MenuNode::class,
81
68
],
82
69
],
83
70
]);
@@ -109,8 +96,8 @@ the value of ``%cmf_core.persistence.phpcr.basepath%/menu``
109
96
**type **: ``string `` **default **: ``/cms/content ``
110
97
111
98
Specifies the path in the PHPCR-ODM document hierarchy under which the
112
- content documents can be found. This is used by the admin class to pre-select
113
- the content branch of the document hierarchy in forms .
99
+ content documents can be found. This is used by the sonata admin integration to
100
+ know which subtree to show when selecting content for menu nodes .
114
101
115
102
If the :doc: `CoreBundle <../core/introduction >` is registered, this will default to
116
103
the value of ``%cmf_core.persistence.phpcr.basepath%/content ``
@@ -156,33 +143,6 @@ Specifies the document class which should represent a single menu node.
156
143
157
144
This setting is used by the admin class.
158
145
159
- ``use_sonata_admin ``
160
- """"""""""""""""""""
161
-
162
- .. include :: ../_partials/persistence_phpcr_sonata_admin_enabled.rst.inc
163
-
164
- ``menu_admin_class ``
165
- """"""""""""""""""""
166
-
167
- **type **: ``string `` **default **: ``Symfony\Cmf\Bundle\MenuBundle\Admin\MenuAdmin ``
168
-
169
- The Sonata admin class to use for the menu.
170
-
171
- ``node_admin_class ``
172
- """"""""""""""""""""
173
-
174
- **type **: ``string `` **default **: ``Symfony\Cmf\Bundle\MenuBundle\Admin\MenuNodeAdmin ``
175
-
176
- The Sonata admin class to use for the menu node.
177
-
178
- ``admin_recursive_breadcrumbs ``
179
- """""""""""""""""""""""""""""""
180
-
181
- **type **: ``boolean `` **default **: ``true ``
182
-
183
- When editing a node, this setting will cause the Sonata admin breadcrumb to
184
- include ancestors of the node being edited.
185
-
186
146
content_url_generator
187
147
~~~~~~~~~~~~~~~~~~~~~
188
148
@@ -203,70 +163,6 @@ allow_empty_items
203
163
Whether menu nodes without URL should be hidden or rendered as text without a
204
164
link.
205
165
206
- Admin Extensions
207
- ----------------
208
-
209
- The ``admin_extensions `` section contains the configurations of the admin extensions that comes with the menu bundle.
210
-
211
- ``menu_options ``
212
- ~~~~~~~~~~~~~~~~
213
-
214
- You can configure the menu options extension in this sections.
215
-
216
- .. configuration-block ::
217
-
218
- .. code-block :: yaml
219
-
220
- # app/config/config.yml
221
- cmf_menu :
222
- # ...
223
- cmf_menu :
224
- admin_extensions :
225
- menu_options :
226
- enabled : auto
227
- advanced : false
228
-
229
- .. code-block :: xml
230
-
231
- <!-- app/config/config.xml -->
232
- <?xml version =" 1.0" charset =" UTF-8" ?>
233
- <container xmlns =" http://symfony.com/schema/dic/services" >
234
- <config xmlns =" http://cmf.symfony.com/schema/dic/menu" >
235
- <admin_extensions >
236
- <menu_options
237
- enabled =" auto"
238
- advanced =" false"
239
- />
240
- </admin_extensions >
241
- </config >
242
- </container >
243
-
244
- .. code-block :: php
245
-
246
- // app/config/config.php
247
- $container->loadFromExtension('cmf_menu', [
248
- 'admin_extensions' => [
249
- 'menu_options' => [
250
- 'enabled' => 'auto',
251
- 'advanced' => false,
252
- ],
253
- ],
254
- ]);
255
-
256
- ``enabled ``
257
- """""""""""
258
- **type **: ``enum `` **valid values **: ``true|false|auto `` **default **: ``auto ``
259
-
260
- If ``true ``, the admin extension is activated. If set to ``auto ``, it will be
261
- activated only if the SonataAdminBundle is present.
262
-
263
- ``advanced ``
264
- """"""""""""
265
- **type **: ``boolean `` **default **: ``false ``
266
-
267
- if set to ``true `` it will expose the advanced options in the admin.
268
- To enable this options you need ``BurgovKeyValueFormBundle ``
269
-
270
166
Voter
271
167
-----
272
168
0 commit comments