Page 1 of 1

Moving Pagination

Posted: 02 Feb 2009, 13:50
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?

Re: Moving Pagination

Posted: 04 Feb 2009, 01:39
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

Re: Moving Pagination

Posted: 04 Feb 2009, 15:57
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.

Re: Moving Pagination

Posted: 08 Feb 2009, 22:48
by Jan
ok