Closed (fixed)
Project:
Taxotouch
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
19 May 2009 at 11:03 UTC
Updated:
30 Oct 2009 at 19:22 UTC
Hi there,
I needed to change the use from '/taxotouch' to '/portfolio' and after a while of poking around I found it's quite simple, so if anyone else what to change the URL here's how:
Open modules/taxotouch.module
Line 23 and 30 contains two $items vars with the URLs, simply change them to what ever you want and the title on the next line if you want.
Then you have to do a find and replace:
Find = taxotouch/
Replace with = portfolio/
*NOTE the forward slashes
Final clear your cache and you done!
Comments
Comment #2
malc_b commentedIf you don't want to hack the module you can also do it by adding this to the setting.php file is sites/default
function custom_url_rewrite_outbound(&$path, &$options, $original_path) {
// Change all 'taxotouch' to 'browse/cloud'.
if (preg_match('|^taxotouch(/.*)|', $path, $matches)) {
$path = 'browse/cloud'. $matches[1];
}
}
function custom_url_rewrite_inbound(&$result, $path, $path_language) {
global $user;
// Change all browse/cloud/x requests to taxotouch/x
if (preg_match('|^browse/cloud(/.*)|', $path, $matches)) {
$result = 'taxotouch'. $matches[1];
}
}
As you can deduce the above changes taxotouch to browse/cloud and vice versa