Topic: URL rewrite problem
befor
youdomain/jobs/2/title
I hope is
youdomain/jobs/2
please tell me thank you very much
Welcome to jobberBase Developer Community!
You are not logged in. Please login or register.
We've just added a new category for forums dedicated to local communities.
If you're interested in starting a community in your country or even city, please write us at hello@jobberbase.com and we'll make it happen.
We're also looking for moderators on each local community -- so email us :).
Pages: 1
befor
youdomain/jobs/2/title
I hope is
youdomain/jobs/2
please tell me thank you very much
In _includes folder open class.job.php and change:
$this->mUrlTitle = $sanitizer->sanitize_title_with_dashes($this->mTitle . ' at ' . $this->mCompany);
To:
$this->mUrlTitle = false;
...Next, in all your template files replace this specific text:
"{$BASE_URL}{$URL_JOB}/{$job.id}/{$job.url_title}/"
with:
"{$BASE_URL}{$URL_JOB}/{$job.id}"
The files are in default template folder _templates/default/ , or your custom selected template folder.
affected template files:
jobs-list.tpl
line 5
home.tpl
lines 8, 23,42
Last edited by hobo (2010-08-16 12:04:36)
thank you hobo
@ songjun
You will also need to do this:
In root folder open page_job.php and edit lines:
line 61
from:
redirect_to(BASE_URL . URL_JOB .'/' . $id . '/' . $info['url_title'] . '/');
to:
redirect_to(BASE_URL . URL_JOB .'/' . $id);
And also line 70 from:
$url = BASE_URL . URL_JOB .'/' . $id . '/' . $info['url_title'] . '/';
to:
$url = BASE_URL . URL_JOB .'/' . $id;
Good luck.
Last edited by hobo (2010-08-17 18:45:56)
Posts [ 4 ]
Pages: 1
Powered by FluxBB
[ Generated in 0.034 seconds, 6 queries executed ]