SONGJUN

Topic: URL rewrite problem

befor

youdomain/jobs/2/title

I hope is

youdomain/jobs/2

please tell me  thank  you  very much

hobo

Re: URL rewrite problem

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)

SONGJUN

Re: URL rewrite problem

thank you hobo

hobo

Re: URL rewrite problem

@ 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)