2017 © Pedro Peláez
 

project sonata-distribution

image

carteni/sonata-distribution

  • Tuesday, February 6, 2018
  • by carteni
  • Repository
  • 0 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Sonata-Project Distribution (SF 3.3)

The aim of this distribution is to supply a skeleton to start working with some bundles of Sonata already configured. At the moment supplies an integration with Sonata Admin, Sonata Classification and Sonata Media bundles., (*1)

This project is experimental!, (*2)

Installation

  1. Clone repository and generate a secret in parameters.yml., (*3)

  2. Update vendors., (*4)

$ composer update
  1. Create database.
$ bin/console doctrine:database:create
  1. Update schema.
$ bin/console doctrine:schema:update --force
  1. Fix Sonata contexts.

This distribution defines 2 contexts: default e media under sonata_media config in src\AppAdminBundle\Resources\config\config.yml, (*5)

$ bin/console sonata:classification:fix-context
$ bin/console sonata:media:fix-media-context
  1. Clear cache and install assets
$ bin/console cache:clear
$ bin/console assets:install
  1. Create and promote user to ROLE_SUPER_ADMIN.
$ bin/console fos:user:create
$ bin/console fos:user:promote
  1. Add uploads/media folder under web folder
$ mkdir web/uploads
$ mkdir web/uploads/media
$ chmod -R 0777 web/uploads
  1. Visit the admin page on /admin/dashboard.

Screenshots:, (*6)

  1. Dashboard
  2. Media / List
  3. Category / Tree
  4. Category / Edit
  5. [Post / Edit (SonataMediaBundle and CKEditor integration)][5]
♥ ☕ m|e|s

The Versions