Home : Products : Links 2.0 : Customization :

Products: Links 2.0: Customization: Re: [PerlFlunkie] nonenglish mod breadcrumb nav: Edit Log

Here is the list of edits for this post
Re: [PerlFlunkie] nonenglish mod breadcrumb nav
Hey Leonard

Here is the link from the thread you mentioned:

http://www.simball.de/...mod_nonenglish.shtml

I gave it a try. Here's what happened:

It should be:

Top: Shoes » Leather » Red
Top: Shoes » Leather » Red-Page 2
Top: Shoes » Leather » Red-Page 3

But what I got was:

Top : » » » Red-Page 2 (notice the extra » as well)

I tried to swap out your fix for the title_linked and title and adjust it for page numbers (cuz it worked great for the other breadcrumb issue), but no luck:

Code:
##!!begin nonenglish fix**************************

@categorylist = split (m:/:, $cat);
$depth_new = $#categorylist;
if ($depth_old >= $depth_new) {
for ($i = $depth_new; $i <= $depth_old; $i++) {
pop(@kategorylist);
}
}
$depth_old = $depth_new;
if ($nonenglish eq "") {
push(@kategorylist, $categorylist[$#categorylist]);
# $title_linked = &build_linked_title ($cat); ## ORIG
# $title = &build_unlinked_title ($cat); ## ORIG
$title_linked = &build_linked_title ("$cat/Page_$page_num/");
$title = &build_unlinked_title ("$cat/Page_$page_num/");
$category_name = $cat;
$category_name_escaped = &urlencode ($cat);
$category_clean = &build_clean ($cat);
}
else {
push(@kategorylist, $nonenglish);
$nonenglishfull = join('/', @kategorylist);
# $title_linked = &build_linked_title_mb ($cat, $nonenglishfull); ## ORIG
# $title = &build_clean_mb ($cat, $nonenglishfull); ## ORIG
$title_linked = &build_linked_title_mb ("$cat/Page_$page_num/", "$nonenglish\-Page $page_num");
$title = &build_clean_mb ("$nonenglish\-Page $page_num");
##XXXXXXXXXXXXXXXXXXXXXXXXXXXXX^^^^^^^^
$category_name = &build_last_title_mb ($nonenglish);
$category_name_escaped = &build_last_title_mb ($nonenglish);
$category_clean = &build_clean_mb ($nonenglish);
}

##!!End fix****************************

Any suggestions?

Many thanks

Merry Christmas One and All !! SmileSmile

------------------------------------------

Last edited by:

DogTags: Dec 23, 2003, 5:48 AM

Edit Log: