Home : Products : Gossamer Links : Discussions :

Products: Gossamer Links: Discussions: Re: [colintho] Category Home URL and Canonicalization: Edit Log

Here is the list of edits for this post
Re: [colintho] Category Home URL and Canonicalization
You probably need a global for it. Give this a go:

remove_index_html_from_breadcrumb
Code:
sub {
my $loop = $_[0];
my $i = 0;
my @loop;
foreach (@$loop) {
if ($i < 1) {
$i++;
$_->{URL} =~ s/index\.html$//;
push @loop, $_;
} else {
$i++;
push @loop, $_;
}
}
return { title_loop => \@loop }
}

<%remove_index_html_from_breadcrumb($title_loop)%>

...put the above line BEFORE this line:

Code:
<div class="crumb"><%Links::Utils::format_title($title_loop, separator => $crumb_separator, no_escape_separator => $no_escape_crumb_separator, include_home => 1, link_type => 2)%></div>

Untested, but should work :)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!

Last edited by:

Andy: Dec 15, 2009, 2:52 AM

Edit Log: