Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pagination #1

Closed
BahtiyarDhani opened this issue Mar 14, 2017 · 5 comments
Closed

Pagination #1

BahtiyarDhani opened this issue Mar 14, 2017 · 5 comments

Comments

@BahtiyarDhani
Copy link

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
Copy link
Author

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

@graker
Copy link
Owner

graker commented Mar 14, 2017

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
Copy link
Owner

graker commented Mar 14, 2017

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 graker closed this as completed Mar 15, 2017
@graker
Copy link
Owner

graker commented May 1, 2017

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
Copy link
Author

BahtiyarDhani commented May 3, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants