SimpleCmsBundle

2.0 version
Maintained Unmaintained

SimpleCmsBundle

The SimpleCmsBundle provides a simplistic CMS on top of the CMF components and bundles.

Note

To focus our efforts onto a manageable number of packages, this package is currently not maintained. Security fixes and submitted bug fixes will still be released, but no new features should be expected. This bundle might have outdated documentation, there is no support from the CMF team and you should not expect bugs to be fixed.

If you want to help co-maintaining this package, tell us in a GitHub issue or in #symfony_cmf of the Symfony devs slack.

While the core CMF components focus on flexibility, the simple CMS trades away some of that flexibility in favor of simplicity.

The SimpleCmsBundle provides a solution to easily map content, routes and menu items based on a single tree structure in the content repository.

You can find an introduction to the bundle in the Getting started section.

The CMF website is an application using the SimpleCmsBundle.

Tip

For a simple example installation of the bundle check out the Symfony CMF Standard Edition

Installation

You can install this bundle with composer using the symfony-cmf/simple-cms-bundle package on Packagist.

This bundle integrates the routing, content and menu bundles of the CMF. All of them and their dependencies need to be instantiated in the kernel:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new Knp\Bundle\MenuBundle\KnpMenuBundle(),
            new Symfony\Cmf\Bundle\MenuBundle\CmfMenuBundle(),
            new Symfony\Cmf\Bundle\ContentBundle\CmfContentBundle(),
            new Symfony\Cmf\Bundle\RoutingBundle\CmfRoutingBundle(),
            new Symfony\Cmf\Bundle\SimpleCmsBundle\CmfSimpleCmsBundle(),
        );

        // ...
    }

    // ...
}

This work, including the code samples, is licensed under a Creative Commons BY-SA 3.0 license.