@@ -41,7 +41,7 @@ sonata bundles in addition to the CmfBlockBundle::
41
41
// ...
42
42
}
43
43
44
- .. _ bundle -block-configuration :
44
+ .. _ bundles -block-configuration :
45
45
46
46
Usage
47
47
-----
@@ -151,7 +151,7 @@ specific settings for one of the block classes.
151
151
:ref: `Block Sonata Admin Extension <bundles-block-types-admin_extension >`
152
152
that adds editing of the ``BaseBlock `` general block options.
153
153
154
- .. _ bundle -block-updated-sonata-defaults :
154
+ .. _ bundles -block-updated-sonata-defaults :
155
155
156
156
Updated SonataBlockBundle Defaults
157
157
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -165,15 +165,15 @@ updated:
165
165
a ``div `` and slugifies the PHPCR path as id; The base template is
166
166
kept compatible with the Sonata base template for non-cmf blocks;
167
167
* **RssBlock configuration ** adds the
168
- :ref: `default RssBlock settings <bundle -block-rss-settings >`.
168
+ :ref: `default RssBlock settings <bundles -block-rss-settings >`.
169
169
170
170
.. note ::
171
171
172
172
Settings are only prepended, meaning the default value is changed. You can
173
173
still change the values by setting the configuration values in your
174
174
application configuration file.
175
175
176
- .. _ bundle -block-document :
176
+ .. _ bundles -block-document :
177
177
178
178
Block Document
179
179
--------------
@@ -201,7 +201,7 @@ the block. The other properties (title and body) are specific to the
201
201
``Symfony\Cmf\Bundle\BlockBundle\Doctrine\Phpcr\SimpleBlock ``.
202
202
203
203
The simple block is now ready to be rendered, see
204
- :ref: `bundle -block-rendering `.
204
+ :ref: `bundles -block-rendering `.
205
205
206
206
.. note ::
207
207
@@ -217,7 +217,7 @@ render the block. It aggregates and merges all settings from configuration,
217
217
the block service, the block document and settings passed to the Twig template
218
218
helper. Therefore, use the BlockContext to get or alter a setting if needed.
219
219
220
- .. _ bundle -block-service :
220
+ .. _ bundles -block-service :
221
221
222
222
Block Service
223
223
-------------
@@ -230,7 +230,7 @@ When using the provided blocks, you do not need to worry about the block
230
230
service. It is only relevant when
231
231
:doc: `creating your own blocks <create_your_own_blocks >`.
232
232
233
- .. _ bundle -block-rendering :
233
+ .. _ bundles -block-rendering :
234
234
235
235
Block rendering
236
236
---------------
@@ -239,7 +239,7 @@ Rendering is handled by the SonataBlockBundle ``sonata_block_render`` Twig
239
239
function. The block name is either an absolute PHPCR path or the name of the
240
240
block relative to the ``cmfMainContent `` document.
241
241
242
- To render the example from the :ref: `bundle -block-document ` section, just add
242
+ To render the example from the :ref: `bundles -block-document ` section, just add
243
243
the following code to your Twig template:
244
244
245
245
.. configuration-block ::
@@ -271,7 +271,7 @@ block as follows:
271
271
)) ?>
272
272
273
273
This will make the BlockBundle render the specified block if the main content
274
- (as per the :ref: `routing <bundle -routing-dynamic-match >`) maps a field named
274
+ (as per the :ref: `routing <bundles -routing-dynamic-match >`) maps a field named
275
275
``sidebarBlock ``. If different main contents are rendered using different
276
276
templates, make sure all that should support this block actually include the
277
277
snippet above.
@@ -289,15 +289,15 @@ receives the block object (equivalent to a Request object) and a ``Response``
289
289
object. The purpose of the ``execute `` method to set the content of the
290
290
response object - typically by rendering a Twig template.
291
291
292
- .. _ bundle -block-embed :
292
+ .. _ bundles -block-embed :
293
293
294
294
Embedding Blocks in WYSIWYG Content
295
295
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
296
296
297
297
The CmfBlockBundle provides a Twig filter ``cmf_embed_blocks `` that
298
298
scans through a content and looks for special tags to render blocks. To use
299
299
the tag, you need to apply the ``cmf_embed_blocks `` filter to your output. This
300
- feature is a rather hacky solution for web editors to place blocks anywhere in
300
+ feature is a hack to allow web editors to place blocks anywhere in
301
301
their HTML content. If you can, render your blocks directly in the template.
302
302
A better solution would be to build composed pages is to build it from blocks.
303
303
0 commit comments