2017 © Pedro PelĂĄez
 

symfony-bundle cms-bundle

Symfony Positibe Cms Bundle

image

positibe/cms-bundle

Symfony Positibe Cms Bundle

  • Sunday, April 29, 2018
  • by pcabreus
  • Repository
  • 1 Watchers
  • 1 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 15 Versions
  • 0 % Grown

The README.md

PositibeCmsBundle

This bundle provide a AbstractPage, Page and Category entity and integrate some other Positibe bundles to create a Page CMS representation., (*1)

Installation

Before, (*2)

To install the bundle just add the dependent bundles:, (*3)

php composer.phar require positibe/cms-bundle

This bundle set the required configuration of other Positibe Bundles for you like: * PositibeMenuBundle * PositibeMediaBundle * PositibeCmfRoutingExtraBundle * PositibeCmsBundle, (*4)

But it's better take a look at those README.md file, (*5)

Next, be sure to enable the bundles in your application kernel:, (*6)

<?php
// app/AppKernel.php
public function registerBundles()
{
    return array(
        // ...
        // Sylius ResourceBundle
        new Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle(),
        new FOS\RestBundle\FOSRestBundle(),
        new JMS\SerializerBundle\JMSSerializerBundle($this),
        new Sylius\Bundle\ResourceBundle\SyliusResourceBundle(),
        new WhiteOctober\PagerfantaBundle\WhiteOctoberPagerfantaBundle(),
        new Bazinga\Bundle\HateoasBundle\BazingaHateoasBundle(),
        new winzou\Bundle\StateMachineBundle\winzouStateMachineBundle(),
        new Knp\Bundle\MenuBundle\KnpMenuBundle(),
        new Liip\ImagineBundle\LiipImagineBundle(),
        new Ivory\CKEditorBundle\IvoryCKEditorBundle(),
        new FM\ElfinderBundle\FMElfinderBundle(),
        new Sonata\CoreBundle\SonataCoreBundle(),
        new Sonata\BlockBundle\SonataBlockBundle(),
        new Sonata\SeoBundle\SonataSeoBundle(),
        new Lunetics\LocaleBundle\LuneticsLocaleBundle(),
        new Symfony\Cmf\Bundle\CoreBundle\CmfCoreBundle(),
        new Symfony\Cmf\Bundle\RoutingBundle\CmfRoutingBundle(),
        new Symfony\Cmf\Bundle\RoutingAutoBundle\CmfRoutingAutoBundle(),
        new Symfony\Cmf\Bundle\SeoBundle\CmfSeoBundle(),
        new Positibe\Bundle\CmfRoutingExtraBundle\PositibeCmfRoutingExtraBundle(),
        new Positibe\Bundle\CoreBundle\PositibeCoreBundle(),
        new Positibe\Bundle\MediaBundle\PositibeMediaBundle(),
        new Positibe\Bundle\MenuBundle\PositibeMenuBundle(),
        new Positibe\Bundle\CmsBundle\PositibeCmsBundle(),

        // ...
    );
}

Configuration

Import all necessary configurations to your app/config/config.yml the basic configuration. # app/config/config.yml imports: - { resource: '@PositibeCoreBundle/Resources/config/config.yml'} - { resource: '@PositibeCmsBundle/Resources/config/config.yml' } - { resource: '@PositibeMediaBundle/Resources/config/config.yml'} - { resource: '@PositibeMenuBundle/Resources/config/config.yml'} - { resource: '@PositibeCmfRoutingExtraBundle/Resources/config/config.yml' }, (*7)

#If you want some advanced configuration
positibe_cms:
    public_routes: # e.g. [homepage, my-company]  List of public symfony routes available.
    content_class: # e.g. [ AppBundle\Entity\Post, AppBundle\Entity\Category ] List of content that extend of MenuNodeReferralInterface.

Caution:: This bundle use the timestampable, sluggable, softdeleteable, translatable and sortable extension of GedmoDoctrineExtension. Be sure that you have the listeners for this extensions enable. You can also to use StofDoctrineExtensionBundle. Caution:: If you have the parameter positibe.menu_node.class: Positibe\Bundle\MenuBundle\Doctrine\Orm\MenuNode configured in your config.yml please erase it., (*8)

The Versions