Gossamer Forum
Home : Products : DBMan SQL : Discussion :

How change speedbar urls?

Quote Reply
How change speedbar urls?
Urls in my "speedbar" looks like this:

http://www.svanger.no/db/db.cgi?guttjente=guttenavn;do=search_results;db=name;details=0&nh=9

Notice that parameters after dg.cgi is separated using ";". This makes it difficult to run some statistic tools on the logfiles, because "&" is expeced.

Because of this I want to use ampersands (&) instead of semicolons (;).

How do I change this?

I am using Links SQL Version: 2.0.3

Kjetil




..........................
Kjetil Palmquist
www.svanger.com
Quote Reply
Re: [kjetilpa] How change speedbar urls? In reply to
Hi,

Add the code below into your globals, and replace the tag <%speedbar%> in your search_results* templates with new tag ...i.e <%new_speedbar%> :

Code:
new_speedbar => sub {
my $tags = shift;
my $new_speedbar = $tags->{speedbar};
$new_speedbar =~ s,;(\w*=),&$1,g;
return $new_speedbar ;
}

Cheers,
Jean(at)Gossamer Threads dot Com