[comment]
ui_template: Yes
ui_template_name: templates/standard
ui_template_layout: LOGOBAR, MENUBAR, LEFTSIDE, UI_CONTENT, NO_RIGHT, MENUBOTTOM, COPYRIGHT
ui_template_description: Standard page with top and left areas. Menu bar and copyright at bottom.
ui_control_element: page_title :
ui_control_element: members_only : 0=No,1=Yes
ui_control_description: page_title: Page title
ui_control_description: members_only : Members only
[/comment]
[set page_title]Browse __COMPANY__[/set]
__LOGOBAR__
__MENUBAR__
__LEFTSIDE__
[comment]
This embedded Perl reads the argument passed to it, which
should be two colon-separated numbers. The first is the sequential
number where display should start; the second (optional) number
is the "chunk" size, or number of products to display per
page. Uncomment these links to play:
Start at 2, display 5
Start at 3, display 2
[/comment]
[perl]
$start = $Session->{arg} || 1;
$chunk = 1;
if($start =~ /(\d+):(\d*)/) {
$start = $1;
$chunk = $2 || 1;
}
$prev = $start - $chunk;
if($prev < 1) {
$prev = 0;
}
$Scratch->{start} = $start;
$Scratch->{chunk} = $chunk;
$Scratch->{next} = $start + $chunk;
$Scratch->{prev} = $prev;
$Scratch->{not_shown} = 1;
return;
[/perl]
[comment]
The below is an extended Interchange in-page search.
The [search-region] container will interpret several
things:
[search-list]
What should display if anything is found
[/search-list]
[no-match]
What should display if nothing is found
[/no-match]
[more-list]
To be displayed if more than mv_matchlimit
matches are found. The [more] tag shows
the previous/next and/or pages.
[/more-list]
[/comment]
[search-region arg="
co=yes
sf=category
op=ne
se=Accessory
fm=[scratch start]
ml=[scratch chunk]
tf=category
to=f
tf=price
to=rn
"]
[item-change 1][condition][item-field category][/condition]
|
[if-item-data merchandising banner_text][item-data merchandising banner_text][else][item-field category][/else][/if-item-data] |
[/item-change 1]
 |
 |
|
 |
|
 |
[/search-region]
|
[if scratch prev]
[page href=browse1 arg="[scratch prev]:[scratch chunk]"]
Previous
[/if]
[if type=explicit compare="[value mv_search_match_count] > [scratch next]"]
[page href=browse1 arg="[scratch next]:[scratch chunk]"][L]Next[/L]
[/if]
|
__NO_RIGHT__
__MENUBOTTOM__
__COPYRIGHT__