- Title: Member
- Status: Offline
- Registered: 2008-11-03
- Posts: 17
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)
- Title: New member
- Status: Offline
- Registered: 2010-06-16
- Posts: 6
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.
- Title: Member
- Status: Offline
- Registered: 2008-11-03
- Posts: 17
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?
Posts [ 3 ]
Guest posting is disabled. You must login or register to post a reply.