[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 arg=scratch] $start = tag_data('session', 'arg') || 1; $chunk = 1; if($start =~ /(\d+):(\d*)/) { $start = $1; $chunk = $2 || 1; } $prev = $start - $chunk; if($prev < 1) { $prev = 0; } $Safe{'scratch'}{'start'} = $start; $Safe{'scratch'}{'chunk'} = $chunk; $Safe{'scratch'}{'next'} = $start + $chunk; $Safe{'scratch'}{'prev'} = $prev; $Safe{'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="ra=yes fm=[scratch start] ml=[scratch chunk] dp=browse1 tf=category to=f tf=price to=rn "] [search-list] [item-next][calc]$item = q{[item-field category]}; return 1 unless $item; return $item eq 'Accessory'[/calc][/item-next] [on-change 1] [condition][item-field category][/condition]

### [item-field category]

[/on-change 1]

| [item-field title] By [item-field artist] Our Price: [item-price] Buy Now
[item-field comment]

[/search-list] [/search-region]

[if scratch prev] [page href=browse1 arg="[scratch prev]:[scratch chunk]"] [L]Previous[/L] [/if] [if type=explicit compare="[calc] [value mv_search_match_count] > [scratch next] [/calc]"] [page href=browse1 arg="[scratch next]:[scratch chunk]"][L]Next[/L] [/if]

__NO_RIGHT__ __MENUBOTTOM__ __COPYRIGHT__