[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.

[query
arrayref=results sql=|SELECT sku,description FROM products|][/query]
[tmp count]
[perl]
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]
[/tmp]


[search-region label=results]



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

[on-match]
[more-list]
Results [matches] of [match-count]
[more]
[/more-list]
[/on-match]


[/search-region]


It seems to work, except:

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

regards
Salvador



More information about the interchange-users mailing list