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

Commit 620e74b

Browse files
committed
Merge pull request #576 from symfony-cmf/revert-575-seo-corrections
Revert "seo corrections"
2 parents 8420e5b + 7690cc0 commit 620e74b

File tree

4 files changed

+30
-30
lines changed

4 files changed

+30
-30
lines changed

bundles/seo/configuration.rst

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -20,33 +20,38 @@ phpcr
2020
2121
# app/config/config.yml
2222
cmf_seo:
23-
persistence:
24-
phpcr:
25-
enabled: false
26-
manager_name: ~
23+
dynamic:
24+
persistence:
25+
phpcr:
26+
enabled: false
27+
manager_name: ~
2728
2829
.. code-block:: xml
2930
3031
<!-- app/config/config.xml -->
3132
<?xml version="1.0" encoding="UTF-8" ?>
3233
<container xmlns="http://symfony.com/schema/dic/services">
3334
<config xmlns="http://cmf.symfony.com/schema/dic/seo">
34-
<persistence>
35-
<phpcr
36-
enabled="false"
37-
manager-name="null"
38-
/>
39-
</persistence>
35+
<dynamic>
36+
<persistence>
37+
<phpcr
38+
enabled="false"
39+
manager-name="null"
40+
/>
41+
</persistence>
42+
</dynamic>
4043
</config>
4144
</container>
4245
4346
.. code-block:: php
4447
4548
$container->loadFromExtension('cmf_seo', array(
46-
'persistence' => array(
47-
'phpcr' => array(
48-
'enabled' => false,
49-
'manager_name' => null,
49+
'dynamic' => array(
50+
'persistence' => array(
51+
'phpcr' => array(
52+
'enabled' => false,
53+
'manager_name' => null,
54+
),
5055
),
5156
),
5257
));
@@ -67,7 +72,7 @@ translation_domain
6772
**type**: ``string`` **default**: ``messages``
6873

6974
The translation domain to use when translating the title and description
70-
template. See :ref:`bundles-seo-title-description-template` for more
75+
template. See :ref:`bundles-seo-title-description-emplate` for more
7176
information.
7277

7378

@@ -76,15 +81,15 @@ title
7681

7782
**type**: ``string`` **default**: ``null``
7883

79-
The title template, read :ref:`here <bundles-seo-title-description-template>`
84+
The title template, read :ref:`here <bundles-seo-title-description-emplate>`
8085
about the usage.
8186

8287
description
8388
~~~~~~~~~~~
8489

8590
**type**: ``string`` **default**: ``null``
8691

87-
The description template, read :ref:`here <bundles-seo-title-description-template>`
92+
The description template, read :ref:`here <bundles-seo-title-description-emplate>`
8893
about the usage.
8994

9095
original_route_pattern

bundles/seo/extractors.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Available Extractors
3333

3434
.. note::
3535

36-
The interfaces live in the ``Symfony\Cmf\Bundle\SeoBundle\Extractor``
36+
The interfaces life in the ``Symfony\Cmf\Bundle\SeoBundle\Extractor``
3737
namespace.
3838

3939
An Example

bundles/seo/introduction.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ The only thing to do now is to use the twig helper in your templates:
8181
</html>
8282

8383
This will render a page with the default title ("Page's default title") as
84-
title element. The information defined for description and keywords will go
84+
title element. The information definded for description and keywords will go
8585
into the correct metatags.
8686

8787
.. seealso::
@@ -127,7 +127,7 @@ Persisting the ``SeoMetadata`` with the document makes it easy to edit for the
127127
admin, while using the extractors are perfect to easily use values from the
128128
displayed content.
129129

130-
Both ways are documented in detail in separate sections:
130+
Both ways are documented in detail in seperate sections:
131131

132132
* :doc:`seo_aware`
133133
* :doc:`extractors`
@@ -172,7 +172,7 @@ you want to change that to redirect instead, you can set the
172172
),
173173
);
174174
175-
.. _bundles-seo-title-description-template:
175+
.. _bundles-seo-title-description-emplate:
176176

177177
Defining a Title and Description Template
178178
-----------------------------------------

bundles/seo/seo_aware.rst

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Saving the SeoMetadata in the Object
22
====================================
33

44
The ``SeoMetadata`` can be saved in the object, so you can persist it into the
5-
database. This option gives admins the possibility of changing the SEO data for
5+
database. This option gives admins the possiblity of changing the SEO data for
66
the document.
77

88
In order to save the ``SeoMetadata`` in the object, the object should
@@ -30,11 +30,6 @@ the ``SeoMetadata``::
3030
}
3131
}
3232

33-
.. tip::
34-
35-
If you are using PHP5.4+ you may also benefit from using the trait ``SeoAwareTrait``
36-
to plug these behavior into your model.
37-
3833
Now you can set some SEO data for this ``Page`` using the metadata::
3934

4035
use Acme\SiteBundle\Document\Page;
@@ -225,7 +220,7 @@ object:
225220
</entity>
226221
</doctrine-mapping>
227222
228-
You can also choose to put the ``SeoMetadata`` class into a separate table. To
223+
You can also choose to put the ``SeoMetadata`` class into a seperate table. To
229224
do this, you have to enable ORM support just like you enabled PHPCR enabled
230225
above and add a OneToOne or ManyToOne relation between the content entity and
231226
the ``SeoMetadata`` entity.
@@ -238,15 +233,15 @@ form type can be used in forms to edit the ``SeoMetadata`` object.
238233

239234
.. caution::
240235

241-
The bundle requires the `BurgovKeyValueFormBundle`_ when using the form
236+
The bundles requires the `BurgovKeyValueFormBundle`_ when using the form
242237
type. Make sure you install and enable it.
243238

244239
Sonata Admin Integration
245240
------------------------
246241

247242
Besides providing a form type, the bundle also provides a Sonata Admin
248243
Extension. This extension adds a field for the ``SeoMetadata`` when an admin
249-
edits an object that implements the ``SeoAwareInterface`` in the Sonata Admin
244+
edits an objec that implements the ``SeoAwareInterface`` in the Sonata Admin
250245
panel.
251246

252247
.. caution::

0 commit comments

Comments
 (0)