Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [Knubbel] Shorter Navbar?

Quote Reply
Re: [Knubbel] Shorter Navbar? In reply to
Untested, but try this:

redo_breadcrumb
Code:
sub {
my $title_loop = $_[0];
my $num_to_keep = $_[1];

my @back_loop;
my $i = 0;
foreach (@$title_loop) {
$i++;
if ($i < $num_to_keep) { next; }
push @back_loop, $_;
}

return { title_loop => \@back_loop };

}
Call with:

Code:
<%redo_breadcrumb($title_loop,3)%>

This woudl get rid of the FIRST 3 entries from the breadcrumb.

Untested (not got a lot of free time ;)) .. but should work ok

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!
Subject Author Views Date
Thread Shorter Navbar? Knubbel 4398 Jul 8, 2010, 12:57 AM
Thread Re: [Knubbel] Shorter Navbar?
Andy 4273 Jul 8, 2010, 5:25 AM
Thread Re: [Andy] Shorter Navbar?
Knubbel 4282 Jul 8, 2010, 5:40 AM
Post Re: [Knubbel] Shorter Navbar?
Andy 4268 Jul 8, 2010, 6:01 AM
Thread Re: [Knubbel] Shorter Navbar?
Andy 4259 Jul 8, 2010, 6:03 AM
Thread Re: [Andy] Shorter Navbar?
Knubbel 4265 Jul 8, 2010, 6:14 AM
Thread Re: [Knubbel] Shorter Navbar?
Andy 4265 Jul 8, 2010, 6:19 AM
Thread Re: [Andy] Shorter Navbar?
Knubbel 4272 Jul 8, 2010, 6:28 AM
Post Re: [Knubbel] Shorter Navbar?
Andy 4253 Jul 8, 2010, 6:28 AM