Rick Posted March 14, 2017 Share Posted March 14, 2017 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. Thanks! Quote Link to comment Share on other sites More sharing options...
Tech Support Posted March 14, 2017 Share Posted March 14, 2017 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 {{/foreach}} Add pagination: {{include file="include_pagination_block_common.tpl"}} Quote Link to comment Share on other sites More sharing options...
Rick Posted March 14, 2017 Author Share Posted March 14, 2017 Thank you, it's working well now. I wasn't passing the album ID to the pagination. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.