Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit 03d950d

Browse files
committed
added references and merged comments
1 parent 6df688f commit 03d950d

File tree

2 files changed

+11
-18
lines changed

2 files changed

+11
-18
lines changed

bundles/block/types.rst

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -136,17 +136,18 @@ block mapped by the persistence layer as argument. If you set this to
136136
something that is not a valid block, the problem is only detected when
137137
rendering the block.
138138

139+
.. _bundles-block-menu:
140+
139141
MenuBlock
140142
---------
141143

142-
This block has no content of its own, but points to a target menu.
143-
When rendered, this block renders the target menu just as if the target
144-
menu was directly used in that place.
144+
This block has no content of its own, but points to a target menu or
145+
menu entry. When rendered, this block renders the target menu just as
146+
if the target menu was directly used in that place. If pointing to a
147+
menu entry, the menu gets rendered from this point.
145148

146-
This block simply has the method ``setReferencedMenu`` that accepts any
147-
menu mapped by the persistence layer as argument. If you set this to
148-
something that is not a valid menu, the problem is only detected when
149-
rendering the block.
149+
This block simply has the method ``setMenuNode`` that accepts any
150+
menu mapped by the persistence layer as argument.
150151

151152
ActionBlock
152153
-----------

bundles/menu/introduction.rst

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -131,18 +131,10 @@ example is specified. This will render an unordered list as follows:
131131
132132
.. tip::
133133

134-
You can reference menus in the`symfony-cmf/block-bundle`_ and render
135-
them in any places where you are using a Block:
136-
137-
.. configuration-block::
138-
139-
.. code-block:: jinja
140-
141-
{{ sonate_render_block('/cms/some/path/my-referencing-menu-block') }}
142-
143-
.. code-block:: php
134+
When using the :doc:`BlockBundle <../block/introduction>`, you can also use the
135+
``MenuBlock``. Read more about that in the
136+
:ref:`BlockBundle documentation <bundles-block-menu>`
144137

145-
echo $view['sonata_block']->render('/cms/some/path/my-referencing-menu-block');
146138
.. note::
147139

148140
It is the ``PhpcrMenuProvider`` class which allows us to specify a

0 commit comments

Comments
 (0)