https://github.com/luyadev/luya-module-gallery
Galleries Module
https://github.com/luyadev/luya-module-gallery
Last synced: 3 months ago
JSON representation
Galleries Module
- Host: GitHub
- URL: https://github.com/luyadev/luya-module-gallery
- Owner: luyadev
- License: mit
- Created: 2015-05-04T11:14:44.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2021-10-05T09:00:15.000Z (about 4 years ago)
- Last Synced: 2025-06-18T10:15:58.383Z (5 months ago)
- Language: PHP
- Homepage: https://luya.io
- Size: 85 KB
- Stars: 0
- Watchers: 3
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Gallery Module
[](https://luya.io)
[](https://packagist.org/packages/luyadev/luya-module-gallery)
[](https://packagist.org/packages/luyadev/luya-module-gallery)
[](https://slack.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.
## Installation
For the installation of modules Composer is required.
```sh
composer require luyadev/luya-module-gallery
```
### Configuration
After installation via Composer include the module to your configuration file within the modules section.
```php
'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.
1.) Migrate your database.
```sh
./vendor/bin/luya migrate
```
2.) Import the module and migrations into your LUYA project.
```sh
./vendor/bin/luya import
```
## View files
As the modules are not shipped with default view files you can use the following examples:
#### cat/index.php
```php
```
#### alben/index.php
```php
= $item->title; ?>
= $item->description; ?>
= $item->detailLink; ?>
```
#### album/index.php
```php
= $model->title; ?>
= $model->description; ?>
Bilder
albumImages as $image): ?>
```