2017 © Pedro Peláez
 

symfony-bundle simple-content-bundle

routing-based menu system for symfony2

image

c33s/simple-content-bundle

routing-based menu system for symfony2

  • Monday, May 25, 2015
  • by vworldat
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1,203 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 16 Versions
  • 0 % Grown

The README.md

C33sSimpleContentBundle

Propel-driven content blocks right from your Twig templates. This is intended to be used with small to medium-sized websites, where the original content is hard-coded in templates instead of fixtures for faster development., (*1)

Just wrap your HTML, text or Markdown content in some twig filters and you are ready to go!, (*2)

For now this bundle depends on cedriclombardot/admingenerator-generator-bundle for content editing. I'm planning to separate this in the future., (*3)

THIS IS WORK IN PROGRESS! USE AT YOUR OWN RISK!, (*4)

Installation

Require c33s/simple-content-bundle in your composer.json file:, (*5)

{
    "require": {
        "c33s/simple-content-bundle": "0.11.*",
    }
}

Register the bundle in app/AppKernel.php:, (*6)


// app/AppKernel.php public function registerBundles() { return array( // ... new C33s\SimpleContentBundle\C33sSimpleContentBundle(), ); }

Override options in your config.yml:, (*7)


# app/config/config.yml c33s_simple_content: # Set to true for automatic locale fallback use_locale_fallback: false

Make sure the %locales% parameter is defined:, (*8)


# app/config/parameters.yml parameters: locales: ['en', 'de']

Usage

Use the twig filters delivered with this bundle to automatically add content from your templates., (*9)

``` jinja+html {# Just wrap your text inside the filter #}, (*10)

{% filter c33s_content_line('home.title') %}Welcome to my website{% endfilter %}

{# You can force a specific locale #}, (*11)

{% filter c33s_content_line('home.title', 'en') %}Welcome to my website{% endfilter %} {% filter c33s_content_line('home.title', 'de') %}Willkommen auf meiner Webseite{% endfilter %}

{% filter c33s_content_markdown('home.welcome.text1') %} This text will be rendered using markdown., (*12)

Isn't it great? {% endfilter %}, (*13)

{% filter c33s_content_text('home.welcome.text2') %} This text will only convert nl2br, but nothing else., (*14)

These tags won't have any effect {% endfilter %}, (*15)

{% filter c33s_content_html('home.welcome.text3') %} Raw HTML content is possible, too., (*16)

This is strong. {% endfilter %}, (*17)

{# There is also a filter where the content type can be passed as an argument #} {% filter c33s_content('home.title', 'line') %}Welcome to my website{% endfilter %}, (*18)

```, (*19)

The Versions

25/05 2015

dev-master

9999999-dev https://github.com/vworldat/SimpleContentBundle

routing-based menu system for symfony2

  Sources   Download

MIT GPL-3.0

The Requires

 

25/05 2015

v0.12.2

0.12.2.0 https://github.com/vworldat/SimpleContentBundle

routing-based menu system for symfony2

  Sources   Download

MIT GPL-3.0

The Requires

 

25/05 2015

v0.12.1

0.12.1.0 https://github.com/vworldat/SimpleContentBundle

routing-based menu system for symfony2

  Sources   Download

MIT GPL-3.0

The Requires

 

25/05 2015

v0.12.0

0.12.0.0 https://github.com/vworldat/SimpleContentBundle

routing-based menu system for symfony2

  Sources   Download

MIT GPL-3.0

The Requires

 

09/01 2015

v0.11.4

0.11.4.0 https://github.com/vworldat/SimpleContentBundle

routing-based menu system for symfony2

  Sources   Download

MIT GPL-3.0

The Requires

 

15/11 2014

v0.11.3

0.11.3.0 https://github.com/vworldat/SimpleContentBundle

routing-based menu system for symfony2

  Sources   Download

MIT GPL-3.0

The Requires

 

10/11 2014

v0.11.2

0.11.2.0 https://github.com/vworldat/SimpleContentBundle

routing-based menu system for symfony2

  Sources   Download

MIT GPL-3.0

The Requires

 

11/10 2014

v0.11.1

0.11.1.0 https://github.com/vworldat/SimpleContentBundle

routing-based menu system for symfony2

  Sources   Download

MIT GPL-3.0

The Requires

 

11/10 2014

v0.11.0

0.11.0.0 https://github.com/vworldat/SimpleContentBundle

routing-based menu system for symfony2

  Sources   Download

MIT GPL-3.0

The Requires

 

25/09 2014

v0.10.2

0.10.2.0 https://github.com/vworldat/SimpleContentBundle

routing-based menu system for symfony2

  Sources   Download

MIT GPL-3.0

The Requires

 

19/09 2014

v0.10.1

0.10.1.0 https://github.com/vworldat/SimpleContentBundle

routing-based menu system for symfony2

  Sources   Download

MIT GPL-3.0

The Requires

 

01/08 2014

v0.10.0

0.10.0.0 https://github.com/vworldat/SimpleContentBundle

routing-based menu system for symfony2

  Sources   Download

MIT GPL-3.0

The Requires

 

12/05 2014

v0.9.3

0.9.3.0 https://github.com/vworldat/SimpleContentBundle

routing-based menu system for symfony2

  Sources   Download

MIT GPL-3.0

The Requires

 

07/05 2014

v0.9.2

0.9.2.0 https://github.com/vworldat/SimpleContentBundle

routing-based menu system for symfony2

  Sources   Download

MIT GPL-3.0

The Requires

 

24/04 2014

v0.9.1

0.9.1.0 https://github.com/vworldat/SimpleContentBundle

routing-based menu system for symfony2

  Sources   Download

MIT GPL-3.0

The Requires