Topic: Want to show jobs based on job-type ... something strange
I'm not an expert, I guess you will see. But I'm playing around with my modified standard-template and also some core files.
Here is what I want to do: Show 4 sections (4 divs - no prob here) on the hp, where you can find jobs from my 4 job-types. I modified home.tpl (show you only the part which is important - I guess - and only one of the 4 parts)
<div id="vollzeit">
{if $latest_jobs_1}
<span id="latestjobs">{$translations.homepage.vollzeit_jobs}</span>
{foreach item=job from=$latest_jobs_1}
.... div, rows, etc are here ...
{/foreach}
<div view all comes here />
{/if}
</div>I also added these corresponding lines to my page_home.php
define('NUMBER_OF_LATEST_JOBS_TO_GET_1', $settings['latest_jobs']);
$smarty->assign('latest_jobs_1', $job->GetJobs(0, 0, NUMBER_OF_LATEST_JOBS_TO_GET_1, 0, 0));Ok, all 4 sections pick the number for latest jobs, that you put into the admin. But from what I guess (because I found something in the class.Apii.php) the first number in brackets is the job-type. I tried to change it (1 - 4: my jobtypes) but it always shows all latest jobs. I even tried the name of that jobtype value - always all jobs - I changed the second number to a category ID and that works right away - only jobs from that category show in that div. Any ideas what I'm doing wrong or keep forgetting?
Thanks in advance and sorry for all the words - hope it's detailed enough!
Cheers, Ralf
Thanks to everyone -specially within this forum- for supporting!