You can do something like that by using the globals in Dbsql 2.0.3. Just add the sub below to your globals:
my $tags = shift;
$tags->{home}->{cgi}->{db} = 'books';
$tags->{home}->{cgi}->{do} = 'search_results';
$tags->{home}->{cgi}->{details} = '0';
$tags->{home}->{cgi}->{category} = 'barnets navn';
my $results = $tags->{home}->search_results;
return $tags->{home}->print('search_results.html',$results);
}
then add a tag like <%include1%> into your template file where you want to display the include results. You can also copy search_results.html to another name and change the name above (in blue)
Cheers,
jean@Gossamer Threads
Code:
include1 => sub { my $tags = shift;
$tags->{home}->{cgi}->{db} = 'books';
$tags->{home}->{cgi}->{do} = 'search_results';
$tags->{home}->{cgi}->{details} = '0';
$tags->{home}->{cgi}->{category} = 'barnets navn';
my $results = $tags->{home}->search_results;
return $tags->{home}->print('search_results.html',$results);
}
then add a tag like <%include1%> into your template file where you want to display the include results. You can also copy search_results.html to another name and change the name above (in blue)
Cheers,
jean@Gossamer Threads