Hi All
Working with the nonenglish mod.
My site is in English. I'm using the nonenglish mod so that I can create pages that look like this (lowercase categories):
...../fred/index.html
...../wilma/index.html
...../red_shoes/index.html
But, the field values in nonenglish would be what I want the visitors to see:
Fred
Wilma
Red Shoes
The sub build_linked_title_mb is displaying the ID of the category or subcategory:
Top:1
Top:2
Top:3
However, I want it to display the nonenglish value:
Top:Fred
Top:Wilma
Top:Red Shoes
How can I change the the build_linked_title_mb to display the nonenglish value rather than the cat ID number? I've tried a lot of things and searched a bunch of threads, but haven't found anything.
# --------------------------------------------------------
# Returns a string of the current category broken up
# by section, with each part linked to the respective section.
my ($input) = $_[0];
my ($description) = $_[1];
my (@dirs, $dir, $output, $path, $last, @descs, $desc);
@dirs = split (/\//, $input);
@descs = split (/\\/, $description);
$last = pop (@dirs);
$last = pop (@descs);
$output = qq| <A HREF="$build_root_url/">Top</A> :|;
foreach $dir (@dirs) {
$path .= "/$dir";
$desc = shift (@descs);
$output .= qq| <A HREF="$build_root_url$path/">$desc</A> :|;
}
$output .= " $last";
return $output;
}
Many thanks
Working with the nonenglish mod.
My site is in English. I'm using the nonenglish mod so that I can create pages that look like this (lowercase categories):
...../fred/index.html
...../wilma/index.html
...../red_shoes/index.html
But, the field values in nonenglish would be what I want the visitors to see:
Fred
Wilma
Red Shoes
The sub build_linked_title_mb is displaying the ID of the category or subcategory:
Top:1
Top:2
Top:3
However, I want it to display the nonenglish value:
Top:Fred
Top:Wilma
Top:Red Shoes
How can I change the the build_linked_title_mb to display the nonenglish value rather than the cat ID number? I've tried a lot of things and searched a bunch of threads, but haven't found anything.
Code:
sub build_linked_title_mb { # --------------------------------------------------------
# Returns a string of the current category broken up
# by section, with each part linked to the respective section.
my ($input) = $_[0];
my ($description) = $_[1];
my (@dirs, $dir, $output, $path, $last, @descs, $desc);
@dirs = split (/\//, $input);
@descs = split (/\\/, $description);
$last = pop (@dirs);
$last = pop (@descs);
$output = qq| <A HREF="$build_root_url/">Top</A> :|;
foreach $dir (@dirs) {
$path .= "/$dir";
$desc = shift (@descs);
$output .= qq| <A HREF="$build_root_url$path/">$desc</A> :|;
}
$output .= " $last";
return $output;
}
Many thanks