pelican-plugins icon indicating copy to clipboard operation
pelican-plugins copied to clipboard

Gallery plugin: Pagination for albums with many images

Open fabge opened this issue 6 years ago • 3 comments

I am generating a page via the gallery plugin. The generated page contains dozens of photos, which is why i want to split them into pages.

I tried using the following syntax from issue #735 but couldn't make it work. I guess this is used for something else than pages.

THEME = 'themes/notmyidea'
DIRECT_TEMPLATES = (('index', 'blog', 'tags', 'categories', 'archives'))
PAGINATED_DIRECT_TEMPLATES = (('index', 'blog'))

Is there any way to paginate individual pages?

fabge avatar Oct 28 '18 19:10 fabge

No. Those settings are for article collections. Even if you could, pelican wouldn't have any information about the photos inside your page to paginate. Sounds like this is a job (feature if you will :)) for the gallery plugin.

avaris avatar Oct 30 '18 21:10 avaris

Hy Fabian. I have moved this issue to the Pelican Plugins repository, since as @avaris mentioned your query is more closely related to how the Gallery plugin operates. Would you be interested in working on adding this functionality to the Gallery plugin?

justinmayer avatar Nov 01 '18 09:11 justinmayer

@fabge we have moved the photos plugin to a new location https://github.com/pelican-plugins/photos . Are you still interested in this feature and would you like to work on it?

phibos avatar Aug 15 '21 06:08 phibos