This repository was archived by the owner on Sep 16, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +46
-0
lines changed Expand file tree Collapse file tree 3 files changed +46
-0
lines changed Original file line number Diff line number Diff line change @@ -114,4 +114,7 @@ The standard menu node implements ``PublishTimePeriodInterface`` and
114
114
``PublishableInterface ``. Please refer to the
115
115
:doc: `publish workflow documentation <../core/publish_workflow >`.
116
116
117
+ The CmfMenuBundle has a `MenuContentVoter `, this voter decides that a menu node
118
+ is not published if the content it is pointing to is not published.
119
+
117
120
.. _`Creating Menus: The Basics` : https://github.com/KnpLabs/KnpMenu/blob/1.1.x/doc/01-Basic-Menus.markdown
Original file line number Diff line number Diff line change @@ -59,3 +59,6 @@ Publish Workflow
59
59
The CMF menu factory also determines if menu nodes are published and therefore
60
60
visible by use of the :doc: `publish workflow checker
61
61
<../core/publish_workflow>`.
62
+
63
+ The CmfMenuBundle has a `MenuContentVoter `, this voter decides that a menu node
64
+ is not published if the content it is pointing to is not published.
Original file line number Diff line number Diff line change @@ -232,3 +232,43 @@ uri_prefix
232
232
**type **: ``boolean ``
233
233
234
234
Enable the :ref: `bundles_menu_voters_uri_prefix_voter `.
235
+
236
+ publish_workflow
237
+ ~~~~~~~~~~~~~~~~
238
+
239
+ This configures if the menu content voter for the publish workflow should be
240
+ disabled, by default it is enabled if the :doc: `CoreBundle <../../bundles/core/index >`
241
+ is registered, and the ``cmf_core.publish_workflow `` is enabled.
242
+
243
+ For more information refer to the
244
+ :doc: `publish workflow documentation <../../bundles/core/publish_workflow >`.
245
+
246
+ To disable the menu content voter, use:
247
+
248
+ .. configuration-block ::
249
+
250
+ .. code-block :: yaml
251
+
252
+ cmf_menu :
253
+ publish_workflow :
254
+ enabled : false
255
+
256
+ .. code-block :: xml
257
+
258
+ <?xml version =" 1.0" charset =" UTF-8" ?>
259
+ <container xmlns =" http://symfony.com/schema/dic/services" >
260
+
261
+ <config xmlns =" http://cmf.symfony.com/schema/dic/menu" >
262
+ <publish-workflow
263
+ enabled =" false"
264
+ />
265
+ </config >
266
+ </container >
267
+
268
+ .. code-block :: php
269
+
270
+ $container->loadFromExtension('cmf_menu', array(
271
+ 'publish_workflow' => array(
272
+ 'enabled' => false,
273
+ ),
274
+ ));
You can’t perform that action at this time.
0 commit comments