@@ -179,112 +179,18 @@ Configure integration with CmfMenuBundle.
179
179
'use_menu' => 'auto',
180
180
));
181
181
182
- .. _config-simple-cms-routing :
183
-
184
182
routing
185
183
~~~~~~~
186
184
187
- This configures how pages should be rendered. The simple cms uses its own
188
- instance of the ``DynamicRouter ``. The options here are the same as described
189
- in :ref: `routing configuration <reference-config-routing-dynamic >`.
190
-
191
- Pages that are loaded from the ``cmf_simple_cms.persistence.phpcr.basepath ``
192
- need to be configured here. Pages loaded from the
193
- ``cmf_routing.persistence.phpcr.basepath `` must be configured in the
194
- CmfRoutingBundle configuration.
195
-
196
- .. configuration-block ::
185
+ .. versionadded :: 1.1
197
186
198
- .. code-block :: yaml
199
-
200
- cmf_simple_cms :
201
- routing :
202
- controller_by_alias : []
203
- controller_by_class : []
204
- templates_by_class :
205
- Symfony\Cmf\Bundle\SimpleCmsBundle\Doctrine\Phpcr\Page : CmfSimpleCmsBundle:Page:index.html.twig
206
- generic_controller : cmf_content.controller:indexAction
207
- content_repository_id : cmf_routing.content_repository
208
- uri_filter_regexp : ~
209
-
210
- .. code-block :: xml
211
-
212
- <?xml version =" 1.0" charset =" UTF-8" ?>
213
- <container xmlns =" http://symfony.com/schema/dic/services" >
214
-
215
- <config xmlns =" http://cmf.symfony.com/schema/dic/simplecms" >
216
- <routing xmlns =" http://cmf.symfony.com/schema/dic/simplecms" >
217
- <controller-by-alias ></controller-by-alias >
218
- <controller-by-class ></controller-by-class >
219
- <template-by-class alias =" Symfony\Cmf\Bundle\SimpleCmsBundle\Doctrine\Phpcr\Page" >CmfSimpleCmsBundle:Page:index.html.twig</template-by-class >
220
- <generic-controller >cmf_content.controller:indexAction</generic-controller >
221
- <content-repository-id >cmf_routing.content_repository</content-repository-id >
222
- <uri-filter-regexp >null</uri-filter-regexp >
223
- </routing >
224
- </config >
225
- </container >
226
-
227
- .. code-block :: php
228
-
229
- $container->loadFromExtension('cmf_simple_cms', array(
230
- 'routing' => array(
231
- 'controller_by_alias' => array(),
232
- 'controller_by_class' => array(),
233
- 'templates_by_class' => array(
234
- 'Symfony\Cmf\Bundle\SimpleCmsBundle\Doctrine\Phpcr\Page' => 'CmfSimpleCmsBundle:Page:index.html.twig',
235
- ),
236
- 'generic_controller' => 'cmf_content.controller:indexAction',
237
- 'content_repository_id' => 'cmf_routing.content_repository',
238
- 'uri_filter_regexp' => null,
239
- ),
240
- ));
241
-
242
- .. _config-simple_cms-multilang :
187
+ Since SimpleCmsBundle 1.1, this configuration is done directly on the
188
+ :ref: `RoutingBundle <reference-config-routing-dynamic >`.
243
189
244
190
multilang
245
191
~~~~~~~~~
246
192
247
- Multilanguage is activated if the ``locales `` option is configured (either in
248
- SimpleCmsBundle or in CoreBundle).
249
-
250
- .. configuration-block ::
251
-
252
- .. code-block :: yaml
253
-
254
- cmf_simple_cms :
255
- multilang :
256
- locales : [en, fr]
257
-
258
- .. code-block :: xml
193
+ .. versionadded :: 1.1
259
194
260
- <?xml version =" 1.0" charset =" UTF-8" ?>
261
- <container xmlns =" http://symfony.com/schema/dic/services" >
262
-
263
- <config xmlns =" http://cmf.symfony.com/schema/dic/simplecms" >
264
- <multilang >
265
- <locales >en</locales >
266
- <locales >fr</locales >
267
- </multilang >
268
- </config >
269
- </container >
270
-
271
- .. code-block :: php
272
-
273
- $container->loadFromExtension('cmf_simple_cms', array(
274
- 'multilang' => array(
275
- 'locales' => array(
276
- 'en',
277
- 'fr',
278
- ),
279
- ),
280
- ));
281
-
282
- locales
283
- .......
284
-
285
- **type **: ``array `` **default **: ``null ``
286
-
287
- This define languages that can be used.
288
-
289
- If the :doc: `CoreBundle <../../bundles/core/index >` is registered, this will default to
290
- the value of ``cmf_core.multilang.locales ``.
195
+ Since SimpleCmsBundle 1.1, this configuration is done directly on the
196
+ :ref: `RoutingBundle <reference-config-routing-locales >`.
0 commit comments