[ic] identify specific more list pages

Paul Jordan interchange-users@icdevgroup.org
Wed Oct 2 12:03:00 2002


> Paul Jordan [paul@gishnetwork.com] wrote:
> >
> > I have a product type page, lets say of opera music. It describes the
> > product and gives a little history of said product. This main page also
> > displays the first 12 product results via an in-page  sql query
> with more=1.
> >
> > I would like to have all subsequent "opera" pages 2,3,4,5 be minus the
> > description and history. However if the person decides to go
> back to page
> > '1' they would again see the description and history, kinda
> making it a home
> > page for the product.
> >
> > in pseudo code it would be:
> >
> > [if page first_result_set]show this[/if]
> > or
> > [if more_list_page == 1]show this[/if]
> >
> > Basically I need to show products on this page, but it also
> needs to act as
> > a "more information" home page for said product.
> >
> > Is there any way to identify result pages?
> >
> > Not looking for a freebie, just a hint or a direction. Or am I
> overlooking
> > an easier way to do this :)
> >
> How about something like this:
>
>     [if value mv_first_match]
>         On a subsequent page
>     [else]
>         On the first page
>     [/else]
>     [/if]
>


Thanks Kevin, but no. I tested and tested but I think I may have not
explained myself good enough. But I did test your solution becuase I have
learned that even when it *seems* like Kevin misunderstood you, you actually
do understand, and have a greater plan with your suggestions :)


Anyways guys, I have page_a.html and on it there is an general intro
description to the product "type" AND the first set of products (using a sql
query and more=1). The key here is I do have the first iteration of products
immediately on page_a.html.

Now, when the user clicks on '2' (as in [previous] 1 2 3 4 [next] ) I no
longer want to show the user the paragraph or two of the general product
line description. When you click on '2' it just reloads page_a.html with the
next iteration of 12 products.

I need some sort of "flag", that makes the first page iteration of results
*different* than all subsequent more list page iterations.

Also, when the user goes back to the first page iteration of results, they
once again see the general product description, and the products 1-12 again,
kinda making the first selling page a sort of 'home page' for the product
type.

In using mv_first_match, no matter what I did I could not make it variable,
it would simply output '12' on very page, no matter if I place before or
after the query. I don't think I can make mv_first_match variable, thus
cannot use it for a flag.

I am trying to reduce the amounts of clicks, provide a general product line
home page, and start the selling presentation immediately.


TIA

Paul