[ic] How can I make first result page unique?

Paul Jordan paul at gishnetwork.com
Mon Mar 1 21:04:08 EST 2004


Kevin Walsh [kevin at cursor.biz] wrote:
> interchange at thedesignpeople.com wrote:
>> I'm trying to figure out how to create a result page where the first
>> page has a unique page element like a page banner or something and
>> subsequent result pages (if the search returned results on multiple
>> pages) to not have the extra page element.
>>
>> I thought an easy way to do this would be to check the current page
>> number, but I can't seem to figure out what that variable is (if it
>> is even held in one at all).  I see that I can access it with $PAGE$
>> inside the [more-list] tags but is there a way of accessing that
>> variable from the "outside".
>>
> I think something like the following will work:
>
>     [if value mv_first_match == 0]
>         On the first page.
>     [/if]

Yes, and it should be used outside the list. If inside the list, you can set a:

 [if scratch stop][tmpn stop]1[/tmpn][/if] within that,

or inside the list:

[if explicit]
[condition]
$num = '[sql-increment]';
return 1 if $num == 1;
return 0;
[/condition]

	Special first-page-only stuff here

[/if]


Paul





More information about the interchange-users mailing list