davidarthurs

Topic: home job types tabs

Any idea how you would code home page to display job types separated so they could be put into a tabbed nav like with Hire me live website? split by All jobs/ full-time / freelance /contract or whatever?

what is the template code for fulltime, freelance and contract?

is it
$fulltime_jobs
$freelance_jobs
$contract_jobs

?

Is there a list anywhere of all the template variables? I couldn't find anything in the WIKI.

Last edited by davidarthurs (2010-08-20 09:13:53)

jobberThemes

Re: home job types tabs

Open page_home.php and add the following code for fulltime jobs:

Code:
$smarty->assign('latest_jobs_fulltime', $job->GetJobs());

Then in home.tpl add:

Code:

{foreach item=job from=$latest_jobs_fulltime}
   //your code goes here
{/foreach}

Do the same for all job types.

Cheers.

davidarthurs

Re: home job types tabs

Thanks - will try that. How about for listing all jobs?

Is there a list of the basic variables for templates?