Need to edit the pagination

Phoca Gallery - image gallery extension
Brakke
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 02 Mar 2010, 21:43

Need to edit the pagination

Post 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
siddan
Phoca Member
Phoca Member
Posts: 40
Joined: 08 Aug 2009, 16:37

Re: Need to edit the pagination

Post 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/
Brakke
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 02 Mar 2010, 21:43

Re: Need to edit the pagination

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Need to edit the pagination

Post by Jan »

Great to hear it, Jan
If you find Phoca extensions useful, please support the project
Post Reply