hobo

Topic: Category max display limit.

Where can I change the maximum number of jobs each category displays per page.
How would I go about paginating the home page?

Thanx

navjotjsingh

Re: Category max display limit.

If you want jobs per page in category same as everywhere else, go to config.php file and find:

Code:

define('JOBS_PER_PAGE', 50);

and change 50 to any number. This setting is global.

And if you want change only in category pages, visit page_category.php and find lines:

Code:

$paginator = new Paginator($jobCount, JOBS_PER_PAGE, @$_REQUEST['p']);

and

Code:
$the_jobs = $job->GetJobsPaginate(0, $id, $firstLimit, JOBS_PER_PAGE, 0, 0, false, $city_id, $type_id);

and change the value of JOBS_PER_PAGE to any number which you want.

hobo

Re: Category max display limit.

Yes, it worked!
It was my fault deleting that second line before.

hobo

Re: Category max display limit.

On the second question, How to add pagination links to pages <<1,2,3,4,5>> on homepage by using latest_jobs?