evertsemeijn

Topic: Change number of spotlight, latest and popular job on frontpage (V1.6)

I wanted to change the number of jobs being displayed on the frontpage. Turned out to be very simple!

Open page_home.php

To change popular and latest jobs just look at the first two lines
[1] "(define('NUMBER_OF_MOST_APPLIED_TO_JOBS_TO_GET', 7);"
[2] "define('NUMBER_OF_LATEST_JOBS_TO_GET', 7);".

The numbers behind "NUMBER_OF_MOST_APPLIED_TO_JOBS_TO_GET" and "NUMBER_OF_LATEST_JOBS_TO_GET" respresent the number of jobs that are going to be displayed. So changing the numbers will change the number of jobs being displayed.

To change the number of spotlight jobs add
"define('NUMBER_OF_SPOTLIGHT_JOBS_TO_GET', 3);"
under
"define('NUMBER_OF_LATEST_JOBS_TO_GET',7);" and edit the number (in the example its the number 3).

Next change the line
"$smarty->assign('spotlight_jobs', $job->GetJobs(0, 0, 3, 1, 0, 0, 0, 0, 1));"
to
"$smarty->assign('spotlight_jobs', $job->GetJobs(0, 0, NUMBER_OF_SPOTLIGHT_JOBS_TO_GET, 1, 0, 0, 0, 0, 1));".

Job done smile

Last edited by evertsemeijn (2009-01-16 22:52:52)

Member of Jobberbase Development Team - Templates/Usability :: Looking for installation and/or custom design? :: Beautiful Wordpress themes

MikeyP

Re: Change number of spotlight, latest and popular job on frontpage (V1.6)

Thanks!