[ic] [sort] across [more] pages

Ron Phipps interchange-users@interchange.redhat.com
Thu Aug 23 22:53:01 2001


> From: interchange-users-admin@interchange.redhat.com
[mailto:interchange-
> users-admin@interchange.redhat.com] On Behalf Of Mike Heins
> Quoting Ron Phipps (rphipps@reliant-solutions.com):
> > One of the drawbacks to the sort tag in IC 4.6.1 was that it did not
> > work correctly with the more tag.  Has this problem been fixed in
the
> > 4.8 release?
> 
> You misunderstand. It works correctly, just not the way you want it
> to. 8-)

So true :)

> >
> > The larger issue at hand is that we have a customer who would like
to
> > have sort links at the top of their results page.  The links would
be
> > for sku, title, price, availability, etc.  I know that I could do
this
> > task if I were either able to use the sort tag or able to retrieve
what
> > was last used as search criteria and to modify the sort field.  Any
> > ideas on this one?
> 
> This is easy to do if you just re-do the query. Some examples of
> how to do this are found in the UI.

When you say re-do the query do you mean to pass all of the search
options as cgi values and pass those values to the search-region in the
arg tag?  Then build my sort links based off of those CGI values?  How
can I handle if I have more then one sf and se value when passing them
as CGI values?

> It is quite possible to sort the list yourself if you do queries and
> manage the saving.

I thought about this one too...  figured there had to be an easier way.
Is there a way to get the current search string being used that was
passed in the URL?

> It is a good suggestion to automate this, however, and I suggest you
file
> an enhancement request on Bugzilla. That will make sure it gets paid
> attention to, if not done right away.

I will do just that.  I noticed that in the UI (pointed out by Ed) there
was a sort argument being passed to the [search-region] tag.  If you use
the sort argument are you required to send an arg argument as well?  Or
will it pull the arg from the URL and sort that list?

Thanks for your help,
-Ron