Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Re: [SliderMan] Need to change urls underscore to a dash

Quote Reply
Re: [SliderMan] Need to change urls underscore to a dash In reply to
I managed to find how to do it. In the file db_utils.pl
The underscore I have in Red can be changed to a dash. It's a little more google friendly to have dashes than underscores. Now if I could just figure our how to make the url lowercase rather than uppercase.

sub build_clean {
# --------------------------------------------------------
# Formats a category name for displaying.
#
my ($input) = shift;
$input =~ s/_/ /g; # Change '_' to spaces.
$input =~ s,/, : ,g; # Change '/' to ' : '.
return $input;
}
Subject Author Views Date
Thread Need to change urls underscore to a dash SliderMan 1860 Oct 2, 2004, 9:39 PM
Post Re: [SliderMan] Need to change urls underscore to a dash
SliderMan 1798 Oct 5, 2004, 12:08 AM