2017 © Pedro Peláez
 

library meexo-gallery

Gallery package for Meexo CMS

image

neonbug/meexo-gallery

Gallery package for Meexo CMS

  • Wednesday, July 18, 2018
  • by neonbug
  • Repository
  • 3 Watchers
  • 1 Stars
  • 28 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 11 Versions
  • 17 % Grown

The README.md

Gallery module for Meexo CMS

  1. Open your module's model (e.g. /Models/Shop.php) and implement \Neonbug\Gallery\Traits\GalleryImagesTraitInterface interface., (*1)

    Example:, (*2)

 [
        [
            'name' => 'images', 
            'type' => 'gallery_admin::add_fields.gallery_images', 
            'value' => '', 
        ], 
    ], 
    ...
];
```

4. To load images, use `getImages` method on `GalleryRepository`. It returns a collection of `GalleryImage` objects.
    
    Example:
```
getImages(
    'shop', // table name
    'images', // field name
    $item->id_shop, // item id
    null // language id (or null, if this field is language independent)
);
```

5. To display images in views, use `getPath` method on `GalleryImage` to get the image path.
    
    Example:
```
@foreach ($images as $image)
    getPath(
        'shop', // table name
        'images', // 
        $item->id_shop, // item id
        0 // language id (or 0, if this field is language independent)
    );
    if (!file_exists($image_path))
    {
        continue;
    }
    ?>
    <img src="{!! Croppa::url($image_path, 420, 280) !!}" />
@endforeach

License

Available under the MIT license., (*3)

The Versions

18/07 2018

dev-master

9999999-dev

Gallery package for Meexo CMS

  Sources   Download

MIT

The Requires

 

laravel php cms meexo

18/07 2018

0.1.1

0.1.1.0

Gallery package for Meexo CMS

  Sources   Download

MIT

The Requires

 

laravel php cms meexo

20/05 2018

0.1.0

0.1.0.0

Gallery package for Meexo CMS

  Sources   Download

MIT

The Requires

 

laravel php cms meexo

16/01 2018

0.0.9

0.0.9.0

Gallery package for Meexo CMS

  Sources   Download

MIT

The Requires

 

laravel php cms meexo

16/01 2018

0.0.8

0.0.8.0

Gallery package for Meexo CMS

  Sources   Download

MIT

The Requires

 

laravel php cms meexo

09/01 2017

0.0.7

0.0.7.0

Gallery package for Meexo CMS

  Sources   Download

MIT

The Requires

 

laravel php cms meexo

29/12 2016

0.0.6

0.0.6.0

Gallery package for Meexo CMS

  Sources   Download

MIT

The Requires

 

laravel php cms meexo

28/11 2016

0.0.5

0.0.5.0

Gallery package for Meexo CMS

  Sources   Download

MIT

The Requires

 

laravel php cms meexo

13/11 2015

0.0.4

0.0.4.0

Gallery package for Meexo CMS

  Sources   Download

MIT

The Requires

 

laravel php cms meexo

13/11 2015

0.0.1

0.0.1.0

Gallery package for Meexo CMS

  Sources   Download

MIT

The Requires

 

laravel php cms meexo

13/11 2015

0.0.3

0.0.3.0

Gallery package for Meexo CMS

  Sources   Download

MIT

The Requires

 

laravel php cms meexo