Coder Social home page Coder Social logo

liverbool / dos-cms-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lakion/cmsplugin

1.0 2.0 0.0 305 KB

Simple CMS on top of SymfonyCMF for Sylius applications.

Home Page: http://lakion.com

Gherkin 17.26% PHP 78.62% HTML 3.63% JavaScript 0.50%

dos-cms-plugin's Introduction

CMS Plugin for Sylius by Lakion License Version Build status on Linux Scrutinizer Quality Score

Simple CMS for Sylius.

Usage

  1. Install PHPCR implementation of your choice:

    $ composer require jackalope/jackalope-doctrine-dbal
  2. Install this bundle:

    $ composer require lakion/cms-plugin
  3. Add this bundle & dependent ones to AppKernel.php if they do not exist yet:

    new \Doctrine\Bundle\PHPCRBundle\DoctrinePHPCRBundle(),
    new \Symfony\Cmf\Bundle\BlockBundle\CmfBlockBundle(),
    new \Symfony\Cmf\Bundle\ContentBundle\CmfContentBundle(),
    new \Symfony\Cmf\Bundle\CoreBundle\CmfCoreBundle(),
    new \Symfony\Cmf\Bundle\MediaBundle\CmfMediaBundle(),
    new \Symfony\Cmf\Bundle\MenuBundle\CmfMenuBundle(),
    new \Symfony\Cmf\Bundle\RoutingBundle\CmfRoutingBundle(),
    new \Lakion\CmsPlugin\LakionCmsPlugin(),
  4. Import config file in app/config/config.yml:

    imports:
       - { resource: "@LakionCmsPlugin/Resources/config/app/config.yml" }
  5. Import routing files in app/config/routing.yml:

    lakion_cms_admin:
        resource: "@LakionCmsPlugin/Resources/config/app/admin_routing.yml"
        prefix: /admin # root path of SyliusAdmin
    
    lakion_cms_shop:
        resource: "@LakionCmsPlugin/Resources/config/app/shop_routing.yml"
  6. Configure Doctrine PHPCR Bundle (doctrine_phpcr) in app/config/config.yml:

    doctrine_phpcr:
        session:
            backend:
                type: doctrinedbal
                connection: default
            workspace: default
        odm:
            auto_mapping: true
            auto_generate_proxy_classes: "%kernel.debug%"
    
    sylius_resource:
         drivers:
            - doctrine/orm
            - doctrine/phpcr-odm
    
    sylius_grid:
         drivers:
            - doctrine/orm
            - doctrine/phpcr-odm
  7. Update your database schema when using Doctrine

    Using the schema updater:

    $ bin/console doctrine:schema:update

    Or migrations:

    $ bin/console doctrine:migrations:diff
    $ bin/console doctrine:migrations:migrate
  8. Initialize PHPCR repository

    $ bin/console doctrine:phpcr:repository:init

Complementary documentation

dos-cms-plugin's People

Contributors

akorchaginn avatar arminek avatar bitbager avatar jurv avatar lchrusciel avatar liverbool avatar michalmarcinkowski avatar noresponsemate avatar pamil avatar pjedrzejewski avatar stefandoorn avatar tadcka avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.