permalink 'item'

Tagged: , ,

This topic contains 2 replies, has 2 voices, and was last updated by  Clifford Enoc 2 years ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #2516 Reply

    How to change ‘item’ in permalink.
    example: site.com/item/title.html

    Thank you.

    #2522 Reply

    ClassiBase
    Keymaster

    You have to change core files of classibase. Lets say you want change ‘item’ term to ‘ad’ in url.

    Edit file /sys/app/controllers/IndexController.php , find load() method. inside find following lines:

    case 'item':
    	return $this->item($arr_url[1]);
    	break;

    update it like this:

    case 'item':
    case 'ad':
    	return $this->item($arr_url[1]);
    	break;

    This change will display ad page if url contains ad word as directory.

    Now edit /sys/app/models/Ad.php file and find url() method.

    change this line:

    return Language::get_url('item/' . $slug . '.html' . $query, $lng);

    to

    return Language::get_url('ad/' . $slug . '.html' . $query, $lng);

    Regards.

    #2524 Reply

    Thanks a lot!

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: permalink 'item'
Your information: