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

Commit e23af67

Browse files
committed
Merge branch 'phiamo-master' into dev
2 parents ff3edee + 03d950d commit e23af67

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

bundles/block/types.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,19 @@ 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+
141+
MenuBlock
142+
---------
143+
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.
148+
149+
This block simply has the method ``setMenuNode`` that accepts any
150+
menu mapped by the persistence layer as argument.
151+
139152
ActionBlock
140153
-----------
141154

bundles/menu/introduction.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.. index::
1+
.. index::
22
single: Menu; Bundles
33
single: MenuBundle
44

@@ -129,6 +129,12 @@ example is specified. This will render an unordered list as follows:
129129
130130
echo $view['knp_menu']->render('/cms/some/path/my-menu');
131131
132+
.. tip::
133+
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>`
137+
132138
.. note::
133139

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

0 commit comments

Comments
 (0)