Skip to content
This repository was archived by the owner on Aug 8, 2021. It is now read-only.

Commit a6bfd88

Browse files
committed
README.md and composer.json updated for v1.0.2
1 parent 51ec85d commit a6bfd88

2 files changed

Lines changed: 34 additions & 6 deletions

File tree

README.md

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
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

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "devtronic/cms-bundle",
33
"description": "A CMS Bundle for Symfony2",
4+
"version": "1.0.2",
45
"type": "symfony-bundle",
56
"require": {
67
"php": ">=5.3.3",
@@ -13,7 +14,7 @@
1314
"email": "admin@developer-heaven.de"
1415
}
1516
],
16-
"minimum-stability": "dev",
17+
"minimum-stability": "stable",
1718
"autoload": {
1819
"psr-4": { "Devtronic\\CmsBundle\\": "" }
1920
}

0 commit comments

Comments
 (0)