[ic] modifying item-increment

Russ Mann tech@khouse.org
Fri, 20 Apr 2001 14:52:18 -0600


Thank you Ed - this helps the variable carry to the next page.  I have
another problem now.

When using a more-list like this:

[more-list]
</font>
<BLOCKQUOTE>
<font __FFACE__ size="2">
Matches [matches] of [match-count] found.
<BR>[more]<BR>
</font>
</BLOCKQUOTE>
[/more-list]

And using

[item-next][calc]return 1 if '[item-field inactive]' ==
'1'[/calc][/item-next]
[item-next][calc]return 1 if '[item-field sku]' eq ''[/calc][/item-next]

To remove bad results,

And using

[calc] ++$Scratch->{tmp_increment} [/calc]

To have an accurate increment variable....

What I end up with is this (I have the matchlimit set to 7):

Matches 22-28 of 191 found.
Previous 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
26 27 28 Next

14.  Title /Author, etc
15.
16.

So, the [more-list] would also need to be changed.  This seems to be a
deeper problem, would it be possible to modify the functionality of the
[more-list] and [matches] and [item-increment] variables to take into
account the [item-next] routine?

Thanks,

Russ

-----Original Message-----
From: interchange-users-admin@lists.akopia.com
[mailto:interchange-users-admin@lists.akopia.com]On Behalf Of Ed
LaFrance
Sent: Friday, April 20, 2001 2:16 PM
To: interchange-users@lists.akopia.com
Subject: RE: [ic] modifying item-increment


At 01:18 PM 04/20/2001 -0600, you wrote:
>I'm feeling pretty dumb, but I can't figure out HOW to include an ARG in
the
>more list.

Try this:

[calc] ++$Scratch->{tmp_increment} [/calc]

... the last value will be stored in the Scratch variable hash between
invocations, so it will keep track of the count throughout the
session.  You can reset whenever needed:  [set tmp_increment][/set].

- Ed L.


>R
>
>-----Original Message-----
>From: interchange-users-admin@lists.akopia.com
>[mailto:interchange-users-admin@lists.akopia.com]On Behalf Of Ryan Hertz
>Sent: Thursday, April 19, 2001 5:13 PM
>To: interchange-users@lists.akopia.com
>Subject: RE: [ic] modifying item-increment
>
>
>At 03:00 PM 4/19/01 , Russ Mann wrote:
> >How do I get this to carry over to multiple pages in a search results?
> >
> >Thanks,
> >
> >Russ
> >
> >
> > >Easiest is:
> > >
> > >   [calc] ++$tmp_increment [/calc]
>
>Hmm..  I suppose you could pass the value as an arg in the more-list.  Or,
>perhaps store the increment in a var named with the searchspec.  Otherwise,
>save it in the session and determine how to reset the increment upon a new
>search.
>
>
>
>Ryan Hertz                                              tel  800-645-BAIT
>Webmaster                                               fax  520-645-2588
>Advertising Director                                 http://www.baits.com
>Gary Yamamoto Custom Baits, Inc.                  mailto:rhertz@baits.com
>
>
>_______________________________________________
>Interchange-users mailing list
>Interchange-users@lists.akopia.com
>http://lists.akopia.com/mailman/listinfo/interchange-users
>
>
>_______________________________________________
>Interchange-users mailing list
>Interchange-users@lists.akopia.com
>http://lists.akopia.com/mailman/listinfo/interchange-users

===============================================================
**** Virtual Hosting w/private IC Installation, $65/month! ****
---------------------------------------------------------------
New Media E.M.S.               Software Solutions for Business
463 Main St., Suite D          eCommerce | Consulting | Hosting
Placerville, CA  95667         edl@newmediaems.com
(530) 622-9421                 http://www.newmediaems.com
(866) 519-4680 Toll-Free       (530) 622-9426 Fax
===============================================================


_______________________________________________
Interchange-users mailing list
Interchange-users@lists.akopia.com
http://lists.akopia.com/mailman/listinfo/interchange-users