This repository was archived by the owner on Sep 16, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -185,10 +185,23 @@ These are the list of available options:
185
185
See the `KnpMenuBundle documentation `_ for more information about these
186
186
attributes.
187
187
188
+ Advanced Menu Options
189
+ ~~~~~~~~~~~~~~~~~~~~~
190
+
188
191
By default the only available options are **Display ** and **Display Children **.
189
- To enable the advaned options you need to add ``burgov/key-value-form-bundle ``
190
- requirement in your ``composer.json `` and enable the advanced options in
191
- your config file:
192
+ You can enable advanced options, but need to add the BurgovKeyValueFormBundle _
193
+ to your project. Run ``composer require burgov/key-value-form-bundle ``,
194
+ instantiate the bundle in the kernel and extend the template
195
+ ``SonataAdminBundle:Form:form_admin_fields.html.twig `` to add:
196
+
197
+ .. code-block :: jinja
198
+
199
+ {% block burgov_key_value_widget %}
200
+ {{- block('sonata_type_native_collection_widget') -}}
201
+ {% endblock %}
202
+
203
+ Once you enabled the bundle, you can enable the advanced menu options in your
204
+ configuration:
192
205
193
206
.. configuration-block ::
194
207
@@ -232,3 +245,4 @@ your config file:
232
245
.. _SonataDoctrinePHPCRAdminBundle : http://sonata-project.org/bundles/doctrine-phpcr-admin/master/doc/index.html
233
246
.. _`configuring sonata admin` : http://sonata-project.org/bundles/doctrine-phpcr-admin/master/doc/reference/configuration.html
234
247
.. _`KnpMenuBundle documentation` : http://github.com/KnpLabs/KnpMenu/blob/master/doc/01-Basic-Menus.markdown#menu-attributes
248
+ .. _BurgovKeyValueFormBundle : https://github.com/Burgov/KeyValueFormBundle
You can’t perform that action at this time.
0 commit comments