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

[seo] change doc to best practices #800

Closed
wants to merge 1 commit into from
Closed

[seo] change doc to best practices #800

wants to merge 1 commit into from

Conversation

dbu
Copy link
Member

@dbu dbu commented Jan 25, 2017

No description provided.

@dbu dbu added the wip/poc label Jan 25, 2017
@@ -402,3 +402,5 @@ Whether or not the the :ref:`bundles-seo-alternate-locale` should be loaded
**type**: ``string`` **default**: ``null``

Specify the service id of a custom :doc:`AlternateLocaleProvider <../seo/alternate_locale>`.

.. _phpcr: ../phpcrodm-admin
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why did you add this? This should be transformed into a :doc:`../phpcrodm-admin` link

@@ -150,22 +150,22 @@ Now, register this new class as a service and tag it as

# app/config/services.yml
services:
app.suggestions.hompage:
app.suggestions_hompage:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

homepage_suggestions ?


.. code-block:: xml

<!-- app/config/config.xml -->
<container xmlns="http://symfony.com/schema/dic/services">
<config xmlns="http://cmf.symfony.com/schema/dic/seo"
translation-domain="AcmeDemoBundle"
translation-domain="AppBundle"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, I would use the default messages translation domain for AppBundle translations

@@ -107,7 +107,7 @@ The templates are specified for a specific sitemap (see below) or in the
sitemap:
defaults:
templates:
html: AppBundle:Sitemap:default.html.twig
html: ::itemap/default.html.twig
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be sitemap/default.html.twig

@@ -118,7 +118,7 @@ The templates are specified for a specific sitemap (see below) or in the
<config xmlns="http://example.org/schema/dic/cmf_seo">
<sitemap>
<defaults>
<template format="html">AppBundle:Sitemap:default.html.twig</template>
<template format="html">::sitemap/default.html.twig</template>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:: are not needed

'sitemap' => [
'defaults' => [
'templates' => [
'html' => '::sitemap/default.html.twig',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

@@ -253,7 +253,7 @@ sitemaps, you need to explicitly specify ``sitemap`` as well:
categories:
default_change_frequency: hourly
templates:
html: AppBundle:Sitemap:categories.html.twig
html: ::sitemap/categories.html.twig
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and in these 3 lines

@dbu
Copy link
Member Author

dbu commented Jan 25, 2017

fixed against 2. 0 branch in #805

@dbu dbu closed this Jan 25, 2017
@dbu dbu removed the wip/poc label Jan 25, 2017
@dbu dbu deleted the best-practices-seo branch January 25, 2017 16:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants