What I did, as suggested by Alex, was to edit admin/links/Category.pm and find the section:
# -------------------------------------------------------------------
# Cleans up a name.
#
my $name = shift;
$name =~ s/\s/_/g;
$name =~ s/[^\w\d_\-\/]/_/g;
return $name;
}
Comment out:
so that is looks like:
# -------------------------------------------------------------------
# Cleans up a name.
#
my $name = shift;
$name =~ s/\s/_/g;
# $name =~ s/[^\w\d_\-\/]/_/g;
return $name;
}
This will still change the spaces to _ but not the special characters. Just be careful when naming categories with odd characters because it might cause a problem. I've had good luck with it so far. Most characters escape themselves properly via the browser so they're not a problem.
Sean
Code:
sub _clean { # -------------------------------------------------------------------
# Cleans up a name.
#
my $name = shift;
$name =~ s/\s/_/g;
$name =~ s/[^\w\d_\-\/]/_/g;
return $name;
}
Comment out:
Code:
$name =~ s/[^\w\d_\-\/]/_/g;so that is looks like:
Code:
sub _clean { # -------------------------------------------------------------------
# Cleans up a name.
#
my $name = shift;
$name =~ s/\s/_/g;
# $name =~ s/[^\w\d_\-\/]/_/g;
return $name;
}
This will still change the spaces to _ but not the special characters. Just be careful when naming categories with odd characters because it might cause a problem. I've had good luck with it so far. Most characters escape themselves properly via the browser so they're not a problem.
Sean