MiniVend Akopia Services

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

Re: [mv] mv_searchspec not retained accross [more-list]



Yessir, that's right.

If you'd like to include this in your one-click search,
add va=searchterm=thecategoryIsearchedforandwanttodisplay
to be desplayed with [value searchterm] on the results-page.

Works like a charm.

BTW: don't forget to put stuff, when you were going to use
this trick in a real form, in neat quotes:
<blabla value="[value mv_searchpec]">
If you'd leave them out, it would break the result for
searchterm, eg "blue note" would show up as "blue", which
is not what you want.

I just thought I'd mention this, since it left me in the
dark for some time until I tried the quotes. (know your HTML..)

Ciao,

-Gideon


> ******    message to minivend-users from Handytman@aol.com     ******
>
> Daniel,
> I had the same problem After some considerable searching of the list, I
found
> the solution. I try to recap it now.
>
> Put the following near the top of your results.html page:
> [set mv_put_session]Yes[/set]
>
> Then check and see if mv_searchspec has a value (if it does, you know this
is
> the first page of results) If it does, save the value as a scratch
variable.
> Here's my code:
> [if value mv_searchspec ne ""]
> [set name="search_string" interpolate="1"][value mv_searchspec][/set]
> [/if]
>
> Then, in your image reference, instead of using mv_searchspec directly,
use
> the scratch variable. as follows:
> src=/images/[scratch search_string].gif
>
> Make sense? Let me know if this doesn't work. It's been a while, and I may
> have explained it wrong. :o)
>
> Regards,
> Rob Maurer
> **********
> In a message dated 11/15/99 4:33:01 PM Eastern Standard Time,
> daniel@digitalsavant.com writes:
>
> > Howdy,
> >
> >  I'm sing the standard results.html to display search resutls. Setting
mv_
> > match_limit to 10. When a search yields more than 10 results, the
> [more-list]
> > is generated. Inside results.html I have an image tag with
> src=/images/[value
> > mv_searchspec].gif. Once a user selects the "next" link in the [more-lis
t],
> > mv_searchspec loses its value and I get a broken graphic in the page.
> >
> >  One funkyness. This is how I'm conducting the search: (it's a one click
> > category like search)
> >
> -
> 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: