Hi, is it possible to change category_clean form say widgets/blue widgets to blue widgets/widgets?
May 11, 2005, 4:19 AM
User (69 posts)
May 11, 2005, 4:19 AM
Post #2 of 2
Views: 2035
Well I figured it out, which I should of tried before posting here, yeah yeah lazy :). I am using what Stealth suggested @ http://www.gossamer-threads.com/..._title_linked_P94967 to change / to ::
So here is my new sub build_clean in db_utils.pl
# --------------------------------------------------------
# Formats a category name for displaying.
my ($input) = shift;
$input =~ s/_/ /g;
$input =~ s,/, :: ,g;
@reorder = split(/::/, $input);
$input = join(" :: ",reverse@reorder);
return $input;
}
So here is my new sub build_clean in db_utils.pl
Code:
sub build_clean { # --------------------------------------------------------
# Formats a category name for displaying.
my ($input) = shift;
$input =~ s/_/ /g;
$input =~ s,/, :: ,g;
@reorder = split(/::/, $input);
$input = join(" :: ",reverse@reorder);
return $input;
}