@@ -26,16 +26,11 @@ persistence configuration has the following configuration:
2626 phpcr :
2727 enabled : false
2828 menu_basepath : /cms/menu
29- content_basepath : ~
30- prefetch : 10
29+ content_basepath : /cms/content
3130 manager_name : ~
31+ prefetch : 10
3232 menu_document_class : Symfony\Cmf\Bundle\MenuBundle\Doctrine\Phpcr\Menu
3333 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-
3934
4035 .. code-block :: xml
4136
@@ -47,15 +42,11 @@ persistence configuration has the following configuration:
4742 <phpcr
4843 enabled =" false"
4944 menu-basepath =" /cms/menu"
50- content-basepath =" null"
51- prefetch =" 10"
45+ content-basepath =" /cms/content"
5246 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"
5950 />
6051 </persistence >
6152 </config >
@@ -69,15 +60,11 @@ persistence configuration has the following configuration:
6960 'phpcr' => [
7061 'enabled' => false,
7162 'menu_basepath' => '/cms/menu',
72- 'content_basepath' => null,
73- 'prefetch' => 10,
63+ 'content_basepath' => '/cms/content',
7464 '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,
8168 ],
8269 ],
8370 ]);
@@ -109,8 +96,8 @@ the value of ``%cmf_core.persistence.phpcr.basepath%/menu``
10996**type **: ``string `` **default **: ``/cms/content ``
11097
11198Specifies 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 .
114101
115102If the :doc: `CoreBundle <../core/introduction >` is registered, this will default to
116103the value of ``%cmf_core.persistence.phpcr.basepath%/content ``
@@ -156,33 +143,6 @@ Specifies the document class which should represent a single menu node.
156143
157144This setting is used by the admin class.
158145
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-
186146content_url_generator
187147~~~~~~~~~~~~~~~~~~~~~
188148
@@ -203,70 +163,6 @@ allow_empty_items
203163Whether menu nodes without URL should be hidden or rendered as text without a
204164link.
205165
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-
270166Voter
271167-----
272168
0 commit comments