Jump to content

Album Pagination


Recommended Posts

Does the (new) default theme support album pagination? I see the options in album_view_album_view as items_per_page, links_per_page and var_from. But including include_pagination_block_common.tpl does not change anything, because the pagination does not function.


I admit it is not a problem for albums with less than 100 images, but some albums users upload have even 500 images.



Link to comment
Share on other sites

Yes, it works in my case.


For example in album_view block you should have this DIV:


<div class="images">


Add ID to it, so that pagination knows which element to replace:


<div class="images" id="{{$block_uid}}">


And then after


{{foreach item="item" from=$data.images}}
... links to images here


Add pagination:


{{include file="include_pagination_block_common.tpl"}}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...