Topic: increase the number of internal links
Because mister G (as in Google) loves internal linking in a website, let's give him what he wants ![]()
In the details page of a job, we will add two more links: "all jobs of the current company" and "all jobs in the same location"
Go go go !
Open /_templates/job.tpl and add this where you want the links to appear:
<a href="{$BASE_URL}jobs-at/{$job.company_alias}/" title="{$translations.jobs.all_from_company}">{$translations.jobs.all_from_company} {$job.company}</a> |
<a href="{$BASE_URL}jobs-in/{$job.location_alias}/" title="{$translations.jobs.all_from_location}">{$translations.jobs.all_from_location} {$job.location}</a>
Open /page_job.php and add these (starting from line 101):
if($info['company'] != '') {
$sanitizer = new Sanitizer();
$info['company_alias'] = $sanitizer->sanitize_title_with_dashes($info['company']);
}
if($info['location'] != '') {
$sanitizer = new Sanitizer();
$info['location_alias'] = $sanitizer->sanitize_title_with_dashes($info['location']);
}
Open /_includes/translations.ini and add these, in the [jobs] section:
all_from_company = "View all available jobs in"
all_from_location = "View all jobs in"
That's it, enjoy ![]()