graker / oc-photoalbums-plugin

Photo albums plugin for OctoberCMS
MIT License
12 stars 8 forks source link

Pagination #1

Closed BahtiyarDhani closed 7 years ago

BahtiyarDhani commented 7 years ago

Hello graker, is it possible to use pagination on your plugin? How to do that, if its possible? Pls give me a tutoruial.. Thanks

BahtiyarDhani commented 7 years ago

Also, is it possible to use custom tumbnail for each album?

graker commented 7 years ago

Hi @BahtiyarDhani , yes, pagination is supported for albums list component (to go through albums) and for album component (to go through photos). Amount of albums/photos on page is controlled by albumsOnPage and photosOnPage properties of albums list and album components. Just add component to a page, set property on the component and it should work out of the box. You can find pagination markup inside component partials in graker/photoalbums/components/album/default.html and graker/photoalbums/components/albumlist/default.htm.

Also there is mini-navigation in photo component to go to next/previous photo.

graker commented 7 years ago

Also, is it possible to use custom tumbnail for each album?

Nope. At the moment, the last uploaded photo will be used as album thumbnail automatically. Photo reordering interface is on the way and in the roadmap, but I can't tell right now when it will be available.

For now you can only "select" the thumbnail by uploading it after every other photo.

graker commented 7 years ago

In case you are interested, I've implemented a feature allowing to select any photo in the album to be it's front thumbnail. You can check it out by updating the code and running php artisan october:up to migrate the new front column in albums table.

BahtiyarDhani commented 7 years ago

Hi Graker,

Wow cool, thanks for updating your plugin.

Regards, Dhani

On May 1, 2017 20:31, "Graker" notifications@github.com wrote:

In case you are interested, I've implemented a feature allowing to select any photo in the album to be it's front thumbnail. You can check it out by updating the code and running php artisan october:up to migrate the new front column in albums table.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/graker/photoalbums/issues/1#issuecomment-298333765, or mute the thread https://github.com/notifications/unsubscribe-auth/AIdTTliR4hAbAK7AMn7oXqos1XdXFTm1ks5r1d6agaJpZM4Mb__J .