CMS MADE SIMPLE FORGE

Album

 

[#9293] Pagination not working at all

avatar
Created By: Crud O Matic (CrudOMatic)
Date Submitted: Fri May 31 17:31:53 -0400 2013

Assigned To: Mark Reed (mark)
Version: 1.10.3
CMSMS Version: None
Severity: Major
Resolution: None
State: Open
Summary:
Pagination not working at all
Detailed Description:
Hi, I have the Album tag set as {Album number='24'} - so I can have 24 thumbs
per page, and they will be paginated. Instead, ALL the thumbs show and the
pagination controls don't show up. Seems $pagecount is ALWAYS 1. When I set it
to higher than 1, the pagination controls show, but all the links are to page 1,
and all the thumbs still show.

Here is the relevant part of the display template (which follows the pagination
controls of other templates):

				{if $pagecount>1}
				<caption class="alignCenter">
					<ul class="picture-page-nav">
<li><a href="{$link.page.first}" title="first
page">&lt;&lt;&nbsp;</a></li>
{if $link.page.previous}<li><a href="{$link.page.previous}"
title="previous page">&lt;&nbsp;</a></li>{/if}
						<li>Page {$pagenumber} / {$pagecount}</li>
{if $link.page.next}<li><a href="{$link.page.next}" title="next
page">&nbsp;&gt;</a></li>{/if}
						<li><a href="{$link.page.last}" title="last page">&nbsp;&gt;&gt;</a></li>
					</ul>
				</caption>
				{/if}


History

Comments
avatar
Date: 2013-05-31 20:12
Posted By: Mark Reed (mark)

Do you have more than one Album, I think this only works when you have only one
Album or you are calling a specific Album. but I see it still shows all the
thumbs on the second page not sure it has to do with pretty URLs but it may.

I didn't/don't write the PHP for this but I will ask some one to look into it.
      
avatar
Date: 2013-05-31 23:07
Posted By: Crud O Matic (CrudOMatic)

Yes, I have 13 albums. How can I get an album to paginate in gallery view? I
have an average of 30 images in an album, and need to paginate in the gallery
view every 24 images. How can I do this?
      
avatar
Date: 2013-05-31 23:09
Posted By: Crud O Matic (CrudOMatic)

Forgot to add that I am using Pretty URLS via mod_rewrite
      
Updates

Updated: 2014-10-10 10:54
cmsms_version_id: 29828 => -1
assigned_to_id: 6692 => 939

Updated: 2013-05-31 18:28
description: Hi, I have the Album tag set as {Album number='24'} - so I can have 24 thumbs per page, and they will be paginated. Instead, ALL the thumbs show and the pagination controls don't show up. Seems $pagecount is ALWAYS 1. When I set it to higher than 1, the p => Hi, I have the Album tag set as {Album number='24'} - so I can have 24 thumbs per page, and they will be paginated. Instead, ALL the thumbs show and the pagination controls don't show up. Seems $pagecount is ALWAYS 1. When I set it to higher than 1, the p

Updated: 2013-05-31 18:23
description: Hi, I have the Album tag set as {Album number='24'} - so I can have 24 thumbs per page, and they will be paginated. Instead, ALL the thumbs show and the pagination controls don't show up. Seems $pagecount is ALWAYS 1. When I set it to higher than 1, the p => Hi, I have the Album tag set as {Album number='24'} - so I can have 24 thumbs per page, and they will be paginated. Instead, ALL the thumbs show and the pagination controls don't show up. Seems $pagecount is ALWAYS 1. When I set it to higher than 1, the p
resolution_id: => 5