Okay...I cannot resist...The advice provided so far is not correct...And don't think that I am coming back to the Links 2.0 Forums...because I ain't.
The
<%category_clean%> tag is generated from the
$category_clean variable in the
sub build_category_pages in the
nph-build.cgi file, which uses the
&build_clean sub to build the
clean category name.
What you need to do is add the following subroutine in your
db_utils.pl file:
Code:
sub build_clean_category {
# --------------------------------------------------------
# Formats clean category name
#
my ($input) = shift;
$input =~ s/_/ /g; # Change '_' to spaces.
$input =~ s,/, - ,g; # Change '/' to ' - '.
return $input;
} as not to screw up your other category name layouts if you want to keep the
: in other spots in your web site.
Then edit the following codes in the
sub build_category_pages routine:
Code:
$category_clean = &build_clean ($cat); with the following codes:
Code:
$category_clean = &build_clean_category ($cat); Then re-build your index.
Regards,
Eliot Lee