Moving Pagination

Phoca Gallery - image gallery extension
User avatar
progenitor
Phoca Member
Phoca Member
Posts: 17
Joined: 16 Jun 2008, 15:43
Location: United Kingdom
Contact:

Moving Pagination

Post by progenitor »

I'm using Phoca Gallery 2.1.0 RC

How can I put the pagination results above the gallery as opposed to having them underneath the gallery?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Moving Pagination

Post by Jan »

Hi, this need to be customized, in view (html/php)

e.g.:
components\com_phocagallery\views\category\tmpl\default.php
pagination code which begins on row 389 should be moved
Jan
If you find Phoca extensions useful, please support the project
User avatar
progenitor
Phoca Member
Phoca Member
Posts: 17
Joined: 16 Jun 2008, 15:43
Location: United Kingdom
Contact:

Re: Moving Pagination

Post by progenitor »

Cheers for the pointer Jan :)
It was not line 389 on my version.

In components\com_phocagallery\views\category\tmpl\default.php
I found it on lines 327 - 351:
I copied it up to line 70 to make it appear above the thumbnails as well as the bottom.

Code

Code: Select all

// EDIT FOR PAGINATION
if (count($this->items)) {
	echo '<div><center>';
	if ($this->params->get('show_pagination_limit')) {
		
		echo '<div style="margin:0 10px 0 10px;display:inline;">'
			.JText::_('Display Num') .'&nbsp;'
			.$this->tmpl['pagination']->getLimitBox()
			.'</div>';
	}
	
	if ($this->params->get('show_pagination')) {
	
		echo '<div style="margin:0 10px 0 10px;display:inline;" class="sectiontablefooter'.$this->params->get( 'pageclass_sfx' ).'" >'
			.$this->tmpl['pagination']->getPagesLinks()
			.'</div>'
		
			.'<div style="margin:0 10px 0 10px;display:inline;" class="pagecounter">'
			.$this->tmpl['pagination']->getPagesCounter()
			.'</div>';
	}
	echo '</center></div>';
}
echo '</form>';

echo '<div>&nbsp;</div>';
// EDIT FOR PAGINATION
Thanks again.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Moving Pagination

Post by Jan »

ok
If you find Phoca extensions useful, please support the project
Post Reply