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

Commit ef94caa

Browse files
committed
Added links to admin extensions in core reference
1 parent 9c2aa48 commit ef94caa

File tree

3 files changed

+29
-17
lines changed

3 files changed

+29
-17
lines changed

bundles/core/persistence.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ enforce a single translation strategy for all documents:
102102

103103
See the `PHPCR-ODM documentation`_ for more information.
104104

105+
.. _bundle-core-translatable-admin-extension:
106+
105107
Editing Locale Information: Translatable Sonata Admin Extension
106108
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
107109

@@ -129,7 +131,6 @@ configuration in the ``sonata_admin`` section of your project configuration:
129131
<!-- app/config/config.xml -->
130132
<?xml version="1.0" charset="UTF-8" ?>
131133
<container xmlns="http://symfony.com/schema/dic/services">
132-
133134
<config xmlns="http://sonata-project.org/schema/dic/admin">
134135
<!-- ... -->
135136
<extension id="cmf_core.admin_extension.translatable">

bundles/core/publish_workflow.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,8 @@ This means that custom templates for ``templates_by_class`` and the controllers
358358
of ``controllers_by_class`` need not check for publication explicitly as its
359359
already done.
360360

361+
.. _bundle-core-workflow-admin-extensions:
362+
361363
Editing publication information: Publish Workflow Sonata Admin Extension
362364
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
363365

reference/configuration/core.rst

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -252,31 +252,40 @@ only published routes and content can be accessed.
252252
Sonata Admin
253253
------------
254254

255-
This section configures each of the Sonata Admin extensions.
255+
This section configures the Sonata Admin Extensions, see:
256256

257+
* :ref:`Publish Workflow Admin Extensions <bundle-core-workflow-admin-extensions>`;
258+
* :ref:`Translatable Admin Extension <bundle-core-translatable-admin-extension>`.
257259

258260
.. configuration-block::
259261

260262
.. code-block:: yaml
261263
262-
sonata_admin:
263-
extensions:
264-
publishable:
265-
form_group: form.group_publish_workflow
266-
publish_time:
267-
form_group: form.group_general
268-
translatable:
269-
form_group: form.group_general
264+
cmf_core:
265+
sonata_admin:
266+
extensions:
267+
publishable:
268+
form_group: form.group_publish_workflow
269+
publish_time:
270+
form_group: form.group_general
271+
translatable:
272+
form_group: form.group_general
270273
271274
.. code-block:: xml
272275
273-
<sonata-admin>
274-
<extension>
275-
<publishable form-group="form.group_publish_workflow" />
276-
<publish-time form-group="form.group_general" />
277-
<translatable form-group="form.group_general" />
278-
</extension>
279-
</sonata-admin>
276+
<?xml version="1.0" charset="UTF-8" ?>
277+
<container xmlns="http://symfony.com/schema/dic/services">
278+
279+
<config xmlns="http://cmf.symfony.com/schema/dic/core">
280+
<sonata-admin>
281+
<extension>
282+
<publishable form-group="form.group_publish_workflow" />
283+
<publish-time form-group="form.group_general" />
284+
<translatable form-group="form.group_general" />
285+
</extension>
286+
</sonata-admin>
287+
</config>
288+
</container>
280289
281290
.. code-block:: php
282291

0 commit comments

Comments
 (0)