[ic] query + search-region

S. Caballe scaballe at gmail.com
Tue Jul 12 18:44:56 UTC 2016

I try to use the query tag output in a search-region container

I found this example in the list.

arrayref=results sql=|SELECT sku,description FROM products|][/query]
[tmp count]
my $results = $Tmp->{results};
my $count = scalar @$results;
$Search->{results} = {
matches => $count,
mv_results => $results,
mv_matchlimit => 20,
mv_max_matches => 100,
mv_field_names => [ 'sku', 'description', ],
} [/perl]

[search-region label=results]

<p>[item-code] - [item-param description]</p>

Results [matches] of [match-count]


It seems to work, except:

mv_max_matches, no limit
more links, always shows 1-20 items


More information about the interchange-users mailing list