2017 © Pedro Peláez
 

symfony-bundle cms-bundle

Symfony - Whatson Web - CmsBundle

image

whatson-web/cms-bundle

Symfony - Whatson Web - CmsBundle

  • Monday, October 2, 2017
  • by whatson-dev
  • Repository
  • 2 Watchers
  • 0 Stars
  • 280 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 3 % Grown

The README.md

Installation

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

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

Ajouter les routes

bk_cms:
    resource: "@CmsBundle/Controller/Backend/"
    type:     annotation

Base configuration

wh_cms:
    templates:
        home:
            name: 'Accueil'
            frontView: 'CmsBundle:FrontEnd/Page:home.html.twig'
        page:
            name: 'Page normale'

Base configuration SEO

wh_seo:
    entities:
        CmsBundle\Entity\Page:
            urlFields:
                - {type: 'tree', entity: 'CmsBundle\Entity\Page', field: 'parent'}
                - {type: 'field', field: 'slug', suffix: '/'}
            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(
    'pages',
    array(
        'label'  => $this->getLabel('sitemap', 'Pages'),
        'route'  => 'bk_cms_page_index',
        'extras' => array(
            'safe_label' => true,
        ),
    )
);

The Versions

02/10 2017

dev-master

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

Symfony - Whatson Web - CmsBundle

  Sources   Download

MIT

The Requires

  • php >=5.3.9

 

by Whatson Web - Developers