composer require whatson-web/blog-bundle dev-master
app/console wh:install:bundle blog
bk_blog:
resource: "@BlogBundle/Controller/Backend/"
type: annotation
wh_seo:
entities:
BlogBundle\Entity\Post:
urlFields:
- {type: 'field', field: 'page.url.url'}
- {type: 'field', field: 'slug'}
defaultMetasFields:
title: 'name'
description: 'resume'
Ajouter le code suivant dans le fichier : src/BackendBundle/Menu/Menu.php
$menu->addChild(
'posts',
array(
'label' => $this->getLabel('globe', 'Actualités'),
'route' => 'bk_blog_post_index',
'extras' => array(
'safe_label' => true,
),
)
);