2017 © Pedro Peláez
 

symfony-bundle content-bundle

Symfony2 bundle for site content management, require Propel, Sonata and jstree

image

it-blaster/content-bundle

Symfony2 bundle for site content management, require Propel, Sonata and jstree

  • Tuesday, June 30, 2015
  • by etfostra
  • Repository
  • 5 Watchers
  • 1 Stars
  • 170 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

ContentBundle

Build Status Scrutinizer Code Quality, (*1)

Installation

Add to composer.json and install, (*2)

``` js { "require": { "it-blaster/content-bundle": "dev-master" }, }, (*3)


Add bundle to `AppKernel.php` ``` php <?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Etfostra\ContentBundle\EtfostraContentBundle(), ); }

Add to routing.yml ``` yaml EtfostraContentBundle: resource: . type: extra, (*4)


Build models, run SQL and install assets ``` bash $ php app/console propel:model:build $ php app/console propel:migration:generate-diff $ php app/console propel:migration:migrate $ php app/console assets:install

To enable labels translation in SonataAdmin ``` yaml framework: translator: { fallbacks: ["%locale%"] }, (*5)


## Cofigure Edit your `config.yml`, add etfostra_content: ``` yaml etfostra_content: page_controller_name: EtfostraContentBundle:PageFront:page page_template_name: EtfostraContentBundle:Front:default.html.twig module_route_groups: # optional, modules (routes groups) - { name: News, routes: @AcmeAppBundle/Resources/config/routing_news.yml } - { name: Catalog, routes: @AcmeAppBundle/Resources/config/routing_catalog.yml }

Debug routes ``` bash $ php app/console debug:router, (*6)


### Twig functions Getting link by route name: ``` twig {{ page_path('etfostra_content_56') }}

This function return link to page by "Route Name", you can copy it from Page edit form. Function prevent exception when route not found., (*7)

Getting link by slug: twig {{ page_path_by_slug('any-page-slug') }} Generates extra query! This function return link to page by Slug, you can edit and copy it on Page edit form. Function prevent exception when route not found., (*8)

The Versions

30/06 2015

dev-master

9999999-dev https://github.com/it-blaster/content-bundle

Symfony2 bundle for site content management, require Propel, Sonata and jstree

  Sources   Download

MIT

The Requires

 

by IT-Blaster

nested set structure content tree

30/06 2015

v1.0.3

1.0.3.0 https://github.com/it-blaster/content-bundle

Symfony2 bundle for site content management, require Propel, Sonata and jstree

  Sources   Download

MIT

The Requires

 

by IT-Blaster

nested set structure content tree

27/04 2015

v1.0.2

1.0.2.0 https://github.com/it-blaster/content-bundle

Symfony2 bundle for site content management, require Propel, Sonata and jstree

  Sources   Download

MIT

The Requires

 

by IT-Blaster

nested set structure content tree

21/04 2015

v1.0.1

1.0.1.0 https://github.com/it-blaster/content-bundle

Symfony2 bundle for site content management, require Propel, Sonata and jstree

  Sources   Download

MIT

The Requires

 

by IT-Blaster

nested set structure content tree

15/03 2015

v1.0

1.0.0.0 https://github.com/it-blaster/content-bundle

Symfony2 bundle for site content management, require Propel, Sonata and jstree

  Sources   Download

MIT

The Requires

 

by IT-Blaster

nested set structure content tree