trker/voyager-awesome-albums

Easy quick album creation tool for voyager admin

1.1 2018-07-26 06:28 UTC

This package is auto-updated.

Last update: 2023-07-18 18:29:51 UTC


README

What does this package do

Easy to create image album for Voyager Admin

Voyage Admin image upload system
Voyage Admin permission system
Voyager Admin Bread System (Can set conditions on input values.)
Voyager Admin Multi language input system (optional use)
Multi Language Support (English and Turkish other languages need translation.)
Quick easy album sharing with editor (via shortcut code) (optional dependent)
Shortcut to share pictures selected from the album in writing.
3 Stock Gallery Design (possibility to choose design on different pages or make special design)
Quick and Easy to Use.
Upload multiple images.
Delete multiple pictures
Image Sequence Determination
----------TR--------------
Voyage Admin  resim yükleme sistemi
Voyage Admin  permission sistemi
Voyager Admin bread Sistemi( Giriş değerlerine koşul koyabilme.)
Voyager Admin Çoklu dil girişi Sistemi( istege bağlı kullanım)
Çoklu Dil Desteği( İngilizce ve türkçe Diğer dillere çeviri gerekir.)
Editör Aracılığı ile hızlı kolay albüm paylaşımı (kısayol kodu ile )( istege bağlı kullanım)
Kısayol ile albümden seçilen resimleri yazıda paylaşabilme.
3 Hazır Galeri Tasarımı (farklı sayfalarda tasarım seçebilme veya özel tasarım yapabilme imkanı)
Hızlı Kolay Kullanım.
Çoklu resim yükleme.
Çoklu resim silmek
Resim Sırası Belirleyebilme

Required for:

Voyager Admin v1.0 1.0 or over

Install

composer require trker/voyager-awesome-albums

Add Service Provider(config/app)


trker\VoyagerAwesomeAlbums\VoyagerAwesomeAlbumsServiceProvider::class,

Add Aliases

'VoyagerAlbums' => trker\VoyagerAwesomeAlbums\VoyagerAlbums::class,

Run code in your directory.

 php artisan vendor:publish --provider="trker\VoyagerAwesomeAlbums\VoyagerAwesomeAlbumsServiceProvider"

Voyager automatically loads when you login to admin and gives admin permission to role play.

Query

\Albums::all(); //all albums
//example
$albums=\Albums::wherestatus(1)->first(); //status 1 get

$albums->images //all images in the album from

//All images

\AlbumsImage::all(); //all image

Shortcut Usage(optional)

The shortcut displays pictures with the shortcut you have specified in the album you created. must be enabled without configuring the shortcut. (Default enabled)

{!!  \VoyagerAlbums::shortcode(article,template) !!}

{!!  \VoyagerAlbums::shortcode($post->body,'bootstrap') !!}

standard templates
"default"
"bootstrap"
"special"
------Add or call a new template--------
Path 1: albums config add new template
    albums config add
      'template_folder' => [
                'test_template' => 'albums.test' //example
             'template name' => 'path' // add album template
         ],
call

{!! \VoyagerAlbums::shortcode(article,'test_template') !!} 
Path 2: direct template calling with calling code
{!! \VoyagerAlbums::shortcode(article,'albums.test_template') !!}

Config file

    'albums_shortcode' => true, //albums shortcut enable | disable  
'slug_shortcut'=> true, //editor slug search album | [album('%slug%');] or [album(slug:'%slug%'),ids('%image ids% 5,3,2');]

'id_shortcut'=> true, //editor id search album | [album(%album id%);] or [album(id:1),ids('3,7');]

'image_exif_data'=> true, //Album image exif data return array |$image->exif(); | $image->exif()['FileName'];

'default_album_template'=> "default", //default - bootstrap - special | default template

'template_folder' => [
    'default' => 'albums.default',
    'bootstrap' => 'albums.bootstrap',
    'special' => 'albums.special',
],

'image_folder'=>url('/storage'), // image storage folder //example www.webname.app/storage / for paths within the package.

1.jpg?raw=true

2.jpg?raw=true