Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Changing more2.html to /2/index.html

Quote Reply
Changing more2.html to /2/index.html
 
Hi, Wondering if this is possable.

Im trying to figure a way of changing the next pages from more2.html to /2/index.html - referencing them using <%next_span%>

Going through Build.pm I see the functions listed here:

Code:
# If we are spanning pages, figure out toolbars and such.
if ($CFG->{build_span_pages}) {
my $lpp = $CFG->{build_links_per_page};
my $nh = $opts->{nh};
my $url = $CFG->{build_root_url} . "/" . $clean_name;
$display{next} = $display{prev} = "";
if ($numlinks > ($nh * $lpp)) {
$display{next} = $url . "/more" . ($nh+1) . "$CFG->{build_extension}";
}
if ($nh == 2) {
$display{prev} = $url . "/" . $CFG->{build_index};
}
elsif ($nh > 2) {
$display{prev} = $url . "/more" . ($nh-1) . "$CFG->{build_extension}";
}
$display{'next_span'} = build ('toolbar', { url => $url, numlinks => $numlinks, nh => $nh}) if ($display{next} or $display{prev});
}

return Links::SiteHTML::display ('category', \%display);
}

and the Altavista style toolbar:

Code:
sub build_toolbar {
# --------------------------------------------------------
# Create an Altavista style toolbar for the next and previous pages.
#
my $opts = shift;

my $root_url = $opts->{url};
my $first_url = $opts->{first_url} || ($root_url . '/' . $CFG->{build_index});
my $next_url = $opts->{next_url} || ($root_url . '/more');
my $numhits = $opts->{numlinks};
my $nh = $opts->{nh};
my $maxhits = $opts->{mh} || $CFG->{build_links_per_page};

my ($next_hit, $prev_hit, $left, $right, $upper, $lower, $url, $i);
$next_hit = $nh + 1;
$prev_hit = $nh - 1;

Have updated the top set of code like this:

$display{next} = $url . "/" . ($nh+1) . "/$CFG->{build_extension}";

Which isn't working - so i figure there are other places where i need to update where /more is set?

thanks for your help.

Charlie



Comedy Quotes - Glinks 3.3.0, PageBuilder, StaticURLtr, CAPTCHA, User_Edit_Profile

Subject Author Views Date
Thread Changing more2.html to /2/index.html Chas-a 1919 Jan 30, 2004, 5:05 AM
Thread Re: [Chas-a] Changing more2.html to /2/index.html
Andy 1870 Jan 30, 2004, 5:32 AM
Thread Re: [Andy] Changing more2.html to /2/index.html
Chas-a 1860 Jan 30, 2004, 8:04 AM
Thread Re: [Chas-a] Changing more2.html to /2/index.html
Andy 1860 Jan 30, 2004, 8:08 AM
Post Re: [Andy] Changing more2.html to /2/index.html
Chas-a 1878 Jan 30, 2004, 12:17 PM