This bundle is still under developpement !!
This extension allow to manage meta description and title ...
$ composer require bruyerefreelance/bb-seo-ezplatform-bundle
Composer will install the bundle to your project's vendor/BruyereFreelance
directory.
Enable the bundle in the kernel:
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new BruyereFreelance\SeoExtensionBundle\BruyereFreelanceSeoExtensionBundle(),
);
}
Add configuration : content type enabled for SEO
# app/config/config.yml
bruyere_freelance_seo_extension:
content_type_identifier: ['article', 'page_simple'] #add your own ...
#add config for doctrine ORM
doctrine:
dbal:
connections:
default:
driver: %database_driver%
host: %database_host%
port: %database_port%
user: %database_user%
password: %database_password%
dbname: %database_name%
charset: UTF8
orm:
auto_generate_proxy_classes: "%kernel.debug%"
naming_strategy: doctrine.orm.naming_strategy.underscore
auto_mapping: true
$ php app/console doctrine:schema:update --force
You should be able to use BB SEO Extension ...
You can add or edit meta-desription or title using UI ...
To retrieve meta the only way for now is :
{{ render(controller("BruyereFreelanceSeoExtensionBundle:Front:getMetasFromContentId", {'contentId' : contentId } )) }}