2017 © Pedro PelĂĄez
 

symfony-bundle cmsbundle

Symfony DadaCMSBundle

image

dada/cmsbundle

Symfony DadaCMSBundle

  • Sunday, June 12, 2016
  • by chindit
  • Repository
  • 1 Watchers
  • 0 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

DadaCMS

INSTALLATION

Composer

  • Add DadaCMS as a dependency on your composer.json "dada/cmsbundle": "dev-master"
  • Update your dependencies composer update
  • Load routes by adding this line in app/config/routing.yml
dada_cms: 
    resource: "@DadaCMSBundle/Resources/config/routing.yml"
    prefix: "/cms"
  • Register bundle in app/appKernel.php new Dada\CMSBundle\DadaCMSBundle(),
  • DadaCMS requires StofDoctrineExtensionBundle Please install it and load it in your appKernel.php
    • Add the following lines to your config.yml
stof_doctrine_extensions:
    orm:
        default:
            sluggable: true
            timestampable: true
  • Also in config.yml add these lines just under orm: in doctrine: group:
mappings:
    gedmo_loggable:
        type: annotation
        prefix: Gedmo\Loggable\Entity
        dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Loggable/Entity"
        is_bundle: false
  • Update your database schema
  • DadaCMS is now operational! You can access it going to «you-app-path/cms»

WARNING

DadaCMS requires you te have the «ROLE_ADMIN» role to access the bundle. It is recommended to use FOSUserBundle to manage your users., (*1)

PARAMETERS

History

DadaCMS possess a powerfull history function which needs to be activated manually. To activate history, you juste have to change the value of dadacms.history from false to true and
 it's OK ;), (*2)

Pagination

By default, 10 items are shown for a page. You can change it by editing dadacms.items_page on your parameters.yml, (*3)

Default role

When you create a page, you can assign a default role to view it. This role can be ROLE_USER , ROLE_ADMIN , or all By default, it's set to all You can change it by editing value of dadacms.default_role on your parameters.yml, (*4)

USER FUNCTIONS

DadaCMS possess some useful functions to help you retrieve your pages. You can call @DadaCMSBundle:Front:getPageBySlug($slug) or @DadaCMSBundle:Front:getPageById($id) to easily get a Page object., (*5)

Totally disabling History functionality

By default, DadaCMS use an history functionality. You can easily hide it (see History above) but it will not be desactivated. If you want to fully desactivate history, you must manually edit the bundle. Therefor, is is not recommended to do it. But if you want, you may open Entity/Page.php and remove @Gedmo\Loggable and @Gedmo\Versioned lines. You must also edit config.yml and remove the mappings: group. Then, upgrade your database scheme and history will be fully desactivated. Remember to set dadacms.history to false to avoid any problem., (*6)

We hope you have found DadaCMS usefull. Thanks for your support. Chindit, (*7)

The Versions