koala / content-bundle
A simple Symfony 2 CMS bundle using Mercury Editor
Installs: 71
Dependents: 0
Suggesters: 0
Security: 0
Stars: 11
Watchers: 3
Forks: 4
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.3.3
- friendsofsymfony/jsrouting-bundle: dev-master
- knplabs/knp-menu: >=1.0
- knplabs/knp-menu-bundle: 1.1.*
- stof/doctrine-extensions-bundle: >=1.0
- symfony-cmf/routing-extra-bundle: dev-master
- symfony/framework-bundle: 2.1.*
Requires (Dev)
- doctrine/doctrine-bundle: 1.0.*
- doctrine/orm: >=2.2,<2.4-dev
- symfony/browser-kit: 2.1.*
- symfony/class-loader: 2.1.*
- symfony/css-selector: 2.1.*
- symfony/finder: 2.1.*
- symfony/form: 2.1.*
- symfony/twig-bundle: 2.1.*
- symfony/validator: 2.1.*
- symfony/yaml: 2.1.*
This package is not auto-updated.
Last update: 2020-01-24 14:52:24 UTC
README
KoalaContentBundle is a simple CMS built for the Symfony 2 framework using the amazing Mercury Editor as front end editor.
Install using composer (Symfony 2.1)
Add koala/content-bundle to composer.json.
"require": {
...
"koala/content-bundle": "dev-master"
}
Then run composer update
to install KoalaContentBundle and all its requirements. Composer will automatically register the new namespaces.
Configuration
Register the new bundles in your app/AppKernel.php
file:
public function registerBundles()
{
$bundles = array(
...
new Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle(),
new Knp\Bundle\MenuBundle\KnpMenuBundle(),
new Symfony\Cmf\Bundle\RoutingExtraBundle\SymfonyCmfRoutingExtraBundle(),
new Koala\ContentBundle\KoalaContentBundle(),
);
return $bundles;
}
Enable the Doctrine Tree extension and the Symfony CMF router in your app/config/config.yml
file:
stof_doctrine_extensions:
orm:
default:
tree: true
symfony_cmf_routing_extra:
chain:
routers_by_id:
koala_content.dynamic_router: 200
router.default: 100
Install assets:
php app/console assets:install --symlink web
Install Mercury files under web/mercury
. It's recommended to use the newest release, currently 0.8. (See See Mercury Downloads)
Download from https://github.com/downloads/jejacks0n/mercury/mercury-v0.8.0.zip and extract to web/mercury
.
Next step is to setup the routing needed for the bundle to work. Add this to your app/config/routing.yml
koala_content:
resource: @KoalaContentBundle/Resources/config/routing.yml
prefix: /
_Note: By default Symfony has a welcome route in app/config/routing_dev.yml
which you need to remove if you want to use the root.
If you rather want to content pages under a separate section you can change the prefix to something like /cms
The last step is to update the database schema and load some default content. Make sure you have setup your database config in app/config/parameters.yml
before running the setup command:
php app/console koala_content:setup
Now fire up your browser and start editing!