2017 © Pedro Peláez
 

luya-module luya-module-gallery

The gallery module allows you create folders and collection and upload images to the collections. Its an easy way to create a gallery very quick and create your own view files.

image

luyadev/luya-module-gallery

The gallery module allows you create folders and collection and upload images to the collections. Its an easy way to create a gallery very quick and create your own view files.

  • Thursday, June 14, 2018
  • by nadar
  • Repository
  • 3 Watchers
  • 0 Stars
  • 613 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 9 Versions
  • 23 % Grown

The README.md

LUYA Logo , (*1)

Gallery Module

LUYA Latest Stable Version Total Downloads Slack Support, (*2)

The gallery module allows you create folders and collection and upload images to the collections. Its an easy way to create a gallery very quick and create your own view files., (*3)

Installation

For the installation of modules Composer is required., (*4)

composer require luyadev/luya-module-gallery

Configuration

After installation via Composer include the module to your configuration file within the modules section., (*5)

'modules' => [
    // ...
    'gallery' => [
        'class' => 'luya\gallery\frontend\Module',
        'useAppViewPath' => false, // When enabled the views will be looked up in the @app/views folder, otherwise the views shipped with the module will be used.
    ],
    'galleryadmin' => 'luya\gallery\admin\Module',
]

Initialization

After successfully installation and configuration run the migrate, import and setup command to initialize the module in your project., (*6)

1.) Migrate your database., (*7)

./vendor/bin/luya migrate

2.) Import the module and migrations into your LUYA project., (*8)

./vendor/bin/luya import

View files

As the modules are not shipped with default view files you can use the following examples:, (*9)

cat/index.php

<?php foreach($catData as $item): ?>
    <div class="well">
        <h1><?= $item->title; ?></h1>
        <a href="<?= $item->detailLink; ?>">Alben anzeigen</a>
    </div>
<?php endforeach; ?>

alben/index.php

<table border="1">
<?php foreach($albenData as $item): ?>
<tr>
    <td><img src="<?= Yii::$app->storage->getImage($item->cover_image_id)->applyFilter('medium-thumbnail')->source; ?>" border="0" /></td>
    <td>
        <h2><?= $item->title; ?></h2>
        <p><?= $item->description; ?></p>
        <p><?= $item->detailLink; ?></p>
    </td>
</tr>
<?php endforeach; ?>
</table>

album/index.php

<table border="1">
<tr>
    <td>
        <h2><?= $model->title; ?></h2>
        <p><?= $model->description; ?></p>
        <p><a href="<?= $model->detailLink; ?>"><?= $model->detailLink; ?></a>

        <h3>Bilder</h3>
        <div class="row">
            <?php foreach($model->albumImages as $image): ?>
                <div class="col-md-3">
                    <img class="img-responsive" src="<?= $image->getImage()->source; ?>" border="0" />
                </div>
            <?php endforeach; ?>
        </div>
    </td>
</tr>
</table>

The Versions

14/06 2018

dev-master

9999999-dev http://luya.io

The gallery module allows you create folders and collection and upload images to the collections. Its an easy way to create a gallery very quick and create your own view files.

  Sources   Download

MIT

php yii2 module yii gallery luya luya-module

12/12 2017

1.0.0

1.0.0.0 http://luya.io

The gallery module allows you create folders and collection and upload images to the collections. Its an easy way to create a gallery very quick and create your own view files.

  Sources   Download

MIT

php yii2 module yii gallery luya luya-module

05/09 2017

1.0.0-RC4

1.0.0.0-RC4 http://luya.io

The gallery module allows you create folders and collection and upload images to the collections. Its an easy way to create a gallery very quick and create your own view files.

  Sources   Download

MIT

php yii2 module yii gallery luya luya-module

11/04 2017

1.0.0-RC3

1.0.0.0-RC3 http://luya.io

The gallery module allows you create folders and collection and upload images to the collections. Its an easy way to create a gallery very quick and create your own view files.

  Sources   Download

MIT

php yii2 module yii gallery luya luya-module

01/11 2016

1.0.0-RC2

1.0.0.0-RC2 http://luya.io

The gallery module allows you create folders and collection and upload images to the collections. Its an easy way to create a gallery very quick and create your own view files.

  Sources   Download

MIT

php yii2 module yii gallery luya luya-module

14/09 2016

1.0.0-RC1

1.0.0.0-RC1 http://luya.io

The gallery module allows you create folders and collection and upload images to the collections. Its an easy way to create a gallery very quick and create your own view files.

  Sources   Download

MIT

php yii2 module yii gallery luya luya-module

07/07 2016

1.0.0-beta8

1.0.0.0-beta8 http://luya.io

The gallery module allows you create folders and collection and upload images to the collections. Its an easy way to create a gallery very quick and create your own view files.

  Sources   Download

MIT

php yii2 module yii gallery luya luya-module

14/06 2016

1.0.0-beta7

1.0.0.0-beta7 http://luya.io

The gallery module allows you create folders and collection and upload images to the collections. Its an easy way to create a gallery very quick and create your own view files.

  Sources   Download

MIT

php yii2 module yii gallery luya luya-module

07/04 2016

1.0.0-beta6

1.0.0.0-beta6 http://luya.io

Yii2 LUYA Gallery Module

  Sources   Download

MIT

php yii2 module yii gallery luya