Page 1 of 1

Need to edit the pagination

Posted: 02 Mar 2010, 21:58
by Brakke
I want to change the text from the pagination:
< Strart << Previous << 1 2 >> Next >> Last > TO << Previous << 1 2 >> Next >>

I have looked on this forum already, but didn't found a solution yet.
In the file views/category/tpl/default.php stands the following code:
.$this->tmpl['pagination']->getPagesLinks()

tmpl['pagination'] is taken from view.html.php
$tmpl['pagination'] = &$model->getPagination(1);

This gets his data from model ->category.php
if (empty($this->_pagination)) {
jimport('joomla.html.pagination');
$this->_pagination = new PhocaGalleryPaginationCategory( $this->getTotal($rightDisplayDelete), $this->getState('limitstart'), $this->getState('limit') );
}
return $this->_pagination;


Still i dont know what to change or whatever.
Anyone can help me?

Greetz
Kevin

Re: Need to edit the pagination

Posted: 03 Mar 2010, 11:01
by siddan
Hi

I haven“t really checked, but take a look at joomlas default pagination. Phoca might use that.
You should find the file in plugins/content/

Re: Need to edit the pagination

Posted: 03 Mar 2010, 17:36
by Brakke
I found a solution for my problem. I will post what i did to solve this, in case anyone wanne do the same like me.
Go to the file libraries/joomla/html/pagination.php
On line 424 you will find the following code:

Code: Select all

		/*$html .= '<< ';
		$html .= $list['start']['data'];*/
		$html .= ' < ';
		$html .= $list['previous']['data'];
		foreach( $list['pages'] as $page ) {
			$html .= ' '.$page['data'];
		}
		$html .= ' '. $list['next']['data'];
		$html .= ' >';
		/*$html .= ' '. $list['end']['data'];
		$html .= ' >>';*/
I putted some lines in comment and that did the job.

Greetz Kevin

Re: Need to edit the pagination

Posted: 06 Mar 2010, 23:35
by Jan
Great to hear it, Jan