This repository was archived by the owner on Sep 16, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +11
-18
lines changed Expand file tree Collapse file tree 2 files changed +11
-18
lines changed Original file line number Diff line number Diff line change @@ -136,17 +136,18 @@ block mapped by the persistence layer as argument. If you set this to
136
136
something that is not a valid block, the problem is only detected when
137
137
rendering the block.
138
138
139
+ .. _bundles-block-menu :
140
+
139
141
MenuBlock
140
142
---------
141
143
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.
145
148
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.
150
151
151
152
ActionBlock
152
153
-----------
Original file line number Diff line number Diff line change @@ -131,18 +131,10 @@ example is specified. This will render an unordered list as follows:
131
131
132
132
.. tip ::
133
133
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 >`
144
137
145
- echo $view['sonata_block']->render('/cms/some/path/my-referencing-menu-block');
146
138
.. note ::
147
139
148
140
It is the ``PhpcrMenuProvider `` class which allows us to specify a
You can’t perform that action at this time.
0 commit comments