MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Can minivend go directly to flypage when the search returns only one item?



******    message to minivend-users from "David Ekholm" <info@minivend.com>     ******

Hello everyone,

I have searched the documentation and the mailing list archive about this
question.  If it's so simple that no one has bothered to post the answer,
then please bear with me.

Is there an easy way to get minivend to go to the flypage for an item when
the search returns only one item?  For an example of what I'm referring to,
try searching for a unique book on Amazon.com.  This seems like an obvious
option but I can't find it anywhere in the docs.

I've tried to put my flypage code in the results page as in:

[if value mv_search_match_count < 2]

[search-list] (flypage stuff) [/search-list]

[else]

[search-list] (result page stuff) [/search-list]

[/else][/if]

This works OK for a few items, but is really slow if > 20 items are returned
by the search.  I guess that minivend must go through the entire
[search-list] (flypage stuff) [/search-list] routine even though I want the
[if] tag to bypass this when there is more than 1 item.  The [if] tag
apparently just prevents the result from getting to the browser.

I've thought about trying the new [fly-list] tag, but I can't figure out how
to get the item code into it without going through the [search-list] tag.

I could also write a Perl routine to do it all, but that (for me) would be a
lot of work and I would feel very foolish if there is an easier way to do it
within minivend.  So I thought I'd ask the list first.

Any help on this would be really appreciated.


BTW, my site is hosted by minivend.com so I guess I'm running the latest
beta 3.12 (Mike?).


David Ekholm
A Compleat Mystery Bookshop        Phone: 603-430-7553
7 Commercial Alley                 Fax: 603-430-9387
Portsmouth, NH 03801               Web: http://www.compleatmystery.com

-

-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: