linestorm/gallery-component-bundle

This package is abandoned and no longer maintained. No replacement package was suggested.
There is no license information available for the latest version (dev-master) of this package.

Gallery component for LineStorm Content for symfony 2.3

dev-master 2014-07-10 22:05 UTC

This package is auto-updated.

Last update: 2020-04-10 17:18:20 UTC


README

Gallery Component for LineStormCMS.

Installation

This module will provide functionality to add galleries to your content modules in LineStorm CMS.

  1. Download bundle using composer
  2. Enable the Bundle
  3. Configure the Bundle
  4. Installing Assets
  5. Configuring Assets

Step 1: Download bundle using composer

Add linestorm/gallery-component-bundle to your composer.json file, or download it by running the command:

$ php composer.phar require linestorm/gallery-component-bundle

Step 2: Enable the bundle

Enable the poll bundle to your app/AppKernel.php:

public function registerBundles()
{
    $bundles = array(
        // ...
        new LineStorm\GalleryComponentBundle\LineStormGalleryComponentBundle(),
    );
}

Step 3: Configure the Bundle

Add the class entity definitions in the line_storm_cms namespace and the media namespace inside the app/config/config.yml file:

line_storm_cms:
  ...
  entity_classes:
    ...

    # Gallery Component
    content_gallery:      Acme\DemoBundle\Entity\ContentGallery

Step 4: Installing Assets

###Bower Add .bower.json to the dependencies

###Manual Download the modules in .bower.json to your assets folder

Step 5: Configuring Assets

You will need to add these dependency paths to your requirejs config:

requirejs.config({
    paths: {
        // ...

        // article component
        cms_gallery:        '/path/to/bundles/linestormgallerycomponent/js/gallery',
    }
});

Documentation

Read Documentation