Gossamer Forum
Home : Products : DBMan SQL : Discussion :

changing build_links_per_page

Quote Reply
changing build_links_per_page
Hi,

How or where do I change the default value of '25' for build_links_per_page?

I'd like to set it at 100 links per page.

Thanks.

All the best
Shaun
Quote Reply
Re: [qango] changing build_links_per_page In reply to
You can change it within ConfigData.pm

TheStone.

B.
Quote Reply
Re: [TheStone] changing build_links_per_page In reply to
Stone,

Thanks. Can I suggest that this variable is added to the admin setup - would make it easier to modify Smile

All the best
Shaun
Quote Reply
Re: [qango] changing build_links_per_page In reply to
Hi,

I just tried changing the value of build_links_per_page in ConfigData.pm but it seems to have had no effect:

http://www.wcsauto.com/...Y;sb=Datereg;so=DESC

No matter what I change it to, it doesn't seem to change the number of results?

I've checked my template (record_salvage.html) and it has the expected <%loop results%>. Any ideas why this might not be working?

All the best
Shaun
Quote Reply
Re: [qango] changing build_links_per_page In reply to
Can you change the search_results subroutine in Home.pm around line #1185?

Code:
my $speedbar = '';
my $mh = $self->{cgi}->{mh} || $self->{cfg}->{build_links_per_page} || 25;
if ( $hits > $mh ) {
my $name = GT::CGI->url(remove_empty => 1);
$speedbar .= $self->{disp}->toolbar( $self->{cgi}->{nh} || 1, $mh, $hits, $name);
}

Hope that helps.

TheStone.

B.
Quote Reply
Re: [TheStone] changing build_links_per_page In reply to
Stone,

Thanks for the tip, however it hasn't worked.

If I manually force more results by adding ;mh=50 to the URL it does work and displays 50 results, but for some reason its not picking up on and/or using build_links_per_page setting?

I can hard-code mh into the URL's in the templates, but it would be easier to get DBMsql responding to the config variable.

Any other ideas? Smile

All the best
Shaun