2017 © Pedro PelĂĄez
 

symfony-bundle blog-bundle

Symfony - Whatson Web - BlogBundle

image

whatson-web/blog-bundle

Symfony - Whatson Web - BlogBundle

  • Thursday, August 3, 2017
  • by whatson-dev
  • Repository
  • 2 Watchers
  • 0 Stars
  • 108 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 4 % Grown

The README.md

Installation

Composer

composer require whatson-web/blog-bundle dev-master, (*1)

app/console wh:install:bundle blog, (*2)

Ajouter les routes

bk_blog:
    resource: "@BlogBundle/Controller/Backend/"
    type:     annotation

Base configuration SEO

wh_seo:
    entities:
        BlogBundle\Entity\Post:
            urlFields:
                - {type: 'field', field: 'page.url.url'}
                - {type: 'field', field: 'slug'}
            defaultMetasFields:
                title: 'name'
                description: 'resume'

Ajouter l'onglet dans le menu admin

Ajouter le code suivant dans le fichier : src/BackendBundle/Menu/Menu.php, (*3)

$menu->addChild(
    'posts',
    array(
        'label'  => $this->getLabel('globe', 'Actualités'),
        'route'  => 'bk_blog_post_index',
        'extras' => array(
            'safe_label' => true,
        ),
    )
);

The Versions

03/08 2017

dev-master

9999999-dev https://github.com/whatson-web/BlogBundle

Symfony - Whatson Web - BlogBundle

  Sources   Download

MIT

The Requires

  • php >=5.3.9

 

by Whatson Web - Developers