2017 © Pedro Peláez
 

symfony-bundle sylius-article-bundle

Article bundle for Sylius e-commerce platform.

image

webburza/sylius-article-bundle

Article bundle for Sylius e-commerce platform.

  • Saturday, April 15, 2017
  • by dkarlovi
  • Repository
  • 3 Watchers
  • 27 Stars
  • 1,292 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 10 Forks
  • 2 Open issues
  • 16 Versions
  • 5 % Grown

The README.md

Sylius Article Bundle

This bundle extends the Sylius e-commerce platform with Article resource, which can be used to publish news, articles, or as a blog. It comes with full multilingual support, the ability to group articles into categories, and the ability to set related products for articles., (*1)

, (*2)


Installation

  1. require the bundle with Composer:, (*3)

    $ composer require webburza/sylius-article-bundle
    
  2. enable the bundle in app/AppKernel.php:, (*4)

    public function registerBundles()
    {
    $bundles = array(
      // ...
      new \Webburza\Sylius\ArticleBundle\WebburzaSyliusArticleBundle(),
      // ...
    );
    }
    
  3. add configuration to the top of app/config/config.yml:, (*5)

    imports:
      - { resource: "@WebburzaSyliusArticleBundle/Resources/config/config.yml" }
    
  4. register routes in app/config/routing.yml, (*6)

    webburza_article:
      resource: "@WebburzaSyliusArticleBundle/Resources/config/routing.yml"
    
    webburza_article_front:
      resource: "@WebburzaSyliusArticleBundle/Resources/config/routingFront.yml"
      prefix:  /articles
    

    As you can see, there are two groups of routes, the main resource (administration) routes, and the front-end routes. If you're using the bundle for a blog, or news, you can set the prefix for the routes here, changing it to /blog, or /news., (*7)

  5. The bundle should now be fully integrated, but it still requires database tables to be created. For this, we recommend using migrations., (*8)

    $ bin/console doctrine:migrations:diff
    $ bin/console doctrine:migrations:migrate
    

    Or if you don't use migrations, you can update the database schema directly., (*9)

    $ bin/console doctrine:schema:update
    

Configuration

Translations and naming (blog, news, articles...)

The bundle has multilingual support, and language files can be overridden as with any other bundle, by creating translation files in the app/Resources/WebburzaSyliusArticleBundle/translations directory., (*10)

This also allows for different naming, so if you're using the bundle as a blog, or as a source of latest news, you can replace all mentions of articles with that of blog, news, or something else completely., (*11)

To get started, check the bundle's main language file in: Resources/translations/messages.en.yml, (*12)

File repository integration in rich-text editors

The bundle uses rich-text editors (CKEditor) to work with content, which allows the user to work with images in the content as well., (*13)

By default, this is limited to specifying the URL to the image manually, but if your application integrates a file repository system for editors, such as CKFinder, or the free alternative KCFinder, you can easily add the functionality to allow the users to upload and work with image files directly trough the rich-text editor., (*14)

To accomplish this, simply fill in the bundle's configuration with your file browser URI's, as seen in the example bellow:, (*15)

# ...

webburza_sylius_article:
    file_browser:
        browse_url: "/browser/browse.php"
        upload_url: "/uploader/upload.php"

This will add file upload and browse controls to your rich-text editors. For more information, see http://docs.ckeditor.com/#!/guide/dev_file_browse_upload, (*16)

License

This bundle is available under the MIT license., (*17)

To-do

  • Automated tests

The Versions

15/04 2017

dev-master

9999999-dev

Article bundle for Sylius e-commerce platform.

  Sources   Download

MIT

The Requires

 

The Development Requires

symfony sylius news articles blog article web.burza webburza

16/01 2017

v0.7.0

0.7.0.0

Article bundle for Sylius e-commerce platform.

  Sources   Download

MIT

The Requires

 

The Development Requires

symfony sylius news articles blog article web.burza webburza

16/01 2017

dev-develop

dev-develop

Article bundle for Sylius e-commerce platform.

  Sources   Download

MIT

The Requires

 

The Development Requires

symfony sylius news articles blog article web.burza webburza

05/01 2017

v0.6.2

0.6.2.0

Article bundle for Sylius e-commerce platform.

  Sources   Download

MIT

The Requires

 

The Development Requires

symfony sylius news articles blog article web.burza webburza

04/01 2017

v0.6.1

0.6.1.0

Article bundle for Sylius e-commerce platform.

  Sources   Download

MIT

The Requires

 

The Development Requires

symfony sylius news articles blog article web.burza webburza

04/01 2017

v0.6.0

0.6.0.0

Article bundle for Sylius e-commerce platform.

  Sources   Download

MIT

The Requires

 

The Development Requires

symfony sylius news articles blog article web.burza webburza

05/09 2016

v0.5.0

0.5.0.0

Article bundle for Sylius e-commerce platform.

  Sources   Download

MIT

The Requires

 

The Development Requires

symfony sylius news articles blog article web.burza webburza

23/06 2016

v0.4.1

0.4.1.0

Article bundle for Sylius e-commerce platform.

  Sources   Download

MIT

The Requires

 

The Development Requires

symfony sylius news articles blog article web.burza webburza

18/06 2016

v0.4.0

0.4.0.0

Article bundle for Sylius e-commerce platform.

  Sources   Download

MIT

The Requires

 

The Development Requires

symfony sylius news articles blog article web.burza webburza

08/06 2016

v0.3.0

0.3.0.0

Article bundle for Sylius e-commerce platform.

  Sources   Download

MIT

The Requires

 

The Development Requires

symfony sylius news articles blog article web.burza webburza

27/04 2016

0.2.2

0.2.2.0

Article bundle for Sylius e-commerce platform.

  Sources   Download

MIT

The Requires

 

The Development Requires

symfony sylius news articles blog article web.burza webburza

27/04 2016

0.2.1

0.2.1.0

Article bundle for Sylius e-commerce platform.

  Sources   Download

MIT

The Requires

 

The Development Requires

symfony sylius articles article web.burza webburza

27/04 2016

0.2.0

0.2.0.0

Article bundle for Sylius e-commerce platform.

  Sources   Download

MIT

The Requires

 

The Development Requires

symfony sylius articles article web.burza webburza

19/04 2016

dev-master-v0.16

dev-master-v0.16

Article bundle for Sylius e-commerce platform.

  Sources   Download

MIT

The Requires

 

The Development Requires

symfony sylius articles article web.burza webburza

19/04 2016

0.1.1

0.1.1.0

Article bundle for Sylius e-commerce platform.

  Sources   Download

MIT

The Requires

 

The Development Requires

symfony sylius articles article web.burza webburza

14/04 2016

0.1.0

0.1.0.0

Article bundle for Sylius e-commerce platform.

  Sources   Download

MIT

The Requires

 

The Development Requires

symfony sylius articles article web.burza webburza