[ic] Retrieving Search Element Values
icul at linsoft.dk
icul at linsoft.dk
Thu Feb 19 00:17:14 UTC 2009
> I'm trying to find a reasonable way of retrieving search element values
> from a search request.
>
> For example, say I have a site that sells various types of widgets and
> geegaws. The product list would include
> Flavor Class
> Heavy Widget
> Plastic Widget
> Bouncy Widget
> Fluffy Widget
> Heavy Geegaw
> Silly Geegaw
> Metal Geegaw
> Bouncy Geegaw
>
> Every time someone searches for a widget I'd like to display a specific
> block of text. When they search for Geegaws I don't want that text
> displayed. Likewise, if they are searching for anything Heavy I don't
> want to display the text.
>
> Essentially what I'm looking for is some method to use in the results
> page to determine what the mv_search_field and mv_searchspec was.
>
> I tried displaying those values using the [cgi] tag in the I thought the
> [cgi] tag might be of use but its not.
>
> I've also tried (based on an mv code extract in one of the documentation
> pages).
>
> [search-region]
> [set searchspec][/set]
> [perl]
> $Scratch->{searchspec} = $options{mv_searchspec};
> [/perl]
> -[scratch ss]-
> [/search-region]
>
> and I'm not getting a result with that either.
>
>
> Does anyone have a clue on this?
>
>
> _______________________________________________
> interchange-users mailing list
> interchange-users at icdevgroup.org
> http://www.icdevgroup.org/mailman/listinfo/interchange-users
>
Using search in state of scan you can add arguments which can be
displayed by cgi tag
Replace this one
--------------------------------------------
<a href="[area href=scan
search=|
fi=merchandising
st=db
co=1
sf=featured
se=specials
op=rm
nu=0
ml=50
tf=sku
to=n
|
]"><b>Specials</b></a>
--------------------------------------------
whit this one
<a href="[area href=search
form=|
fi=merchandising
st=db
co=1
sf=featured
se=specials
op=rm
nu=0
ml=50
tf=sku
to=n
yuarname=Your Value
|
]">Specials</a>
and use [cgi yourname] on the result page
/Marem
More information about the interchange-users
mailing list