1- # CMS Bundle for Symfony2
2- #### EARLY ALPHA! --- Work in Progress!
1+ # CMS Bundle for Symfony2 / Symfony3
32
43## Status
54#### Done
@@ -31,7 +30,7 @@ class AppKernel extends Kernel
3130 {
3231 $bundles = array(
3332 // ...
34-
33+ new Ivory\CKEditorBundle\IvoryCKEditorBundle(),
3534 new Devtronic\CmsBundle\CmsBundle(),
3635 );
3736 // ...
@@ -41,6 +40,19 @@ class AppKernel extends Kernel
4140}
4241
4342```
43+ Symfony >= 3.x
44+ ``` bash
45+ $ php bin/console assets:install --symlink --relative
46+ $ php bin/console doctrine:schema:update --force
47+ $ php bin/console cache:clear
48+ ```
49+ Symfony <= 2.8.x
50+ ``` bash
51+ $ php app/console assets:install --symlink --relative
52+ $ php app/console doctrine:schema:update --force
53+ $ php app/console cache:clear
54+ ```
55+
4456## Configuration
4557``` yml
4658# app/config/routing.yml
@@ -53,10 +65,10 @@ devtronic_cms_bundle:
5365#### Show a menu in twig-template
5466` ` ` twig
5567{# anything.html.twig # }
56- {{ cms_menu("MENU SLUG GOES HERE") | raw }}
68+ {{ cms_menu("MENU SLUG GOES HERE") }}
5769
5870{# or with a custom Menu Template # }
59- {{ cms_menu("MENU SLUG GOES HERE", "AnyBundle:Path:menu_template.html.twig") | raw }}
71+ {{ cms_menu("MENU SLUG GOES HERE", "AnyBundle:Path:menu_template.html.twig") }}
6072```
6173### Templates
6274#### Menu Template
@@ -128,6 +140,21 @@ devtronic_cms_bundle:
128140
129141```
130142
143+ #### Index Template
144+ ``` twig
145+ {# app/Resources/CmsBundle/views/Page/index.html.twig #}
146+
147+ {% extends "::base.html.twig" %}
148+
149+ {% block title %}{{ page.title }}{% endblock %}
150+
151+ {% block body %}
152+ <h1>{{ page.title }}</h1>
153+ {{ page.content | raw }}
154+ {% endblock %}
155+
156+ ```
157+
131158## How to contribute?
132159> Translate the Bundle (send `` messages.LOCALE.xlf `` and your user-/name to < admin@developer-heaven.de >
133160
0 commit comments