[set page_title]Browse __COMPANY__[/set] [comment] The __VALUES__ below are MiniVend Variable settings. In this case, they come from these settings in catalog.cfg: ## Set some menubars and headers ConfigDir pages Variable LEFTSIDE 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 MiniVend 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]
| [data table=cat col=banner_text key="[item-field category]"]
[/item-change 1]
| [if-item-field image][/if-item-field] |  | [item-field title] by [filter namecase][item-field artist] Price: [item-price] buy now [item-field comments] More [filter lower][item-field category][/filter]... |
[/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__