MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: [mv] Results page formatting



>******    message to minivend-users from Brian Wright <bdw@aturna.com>
>******
>
>
>On Thu, 23 Sep 1999 14:32:23 -0700
>Ed LaFrance <edlafrance@printexusa.com> wrote:
>> Brian -
>>
>> This was just recently discussed at on this list, and I believe a workable
>> solution was posted.  Search the recent mail list archive at minivend.com
>> with a few pertinent key words and I'm sure you will find it.
>
>Unfortuneately, I wasn't able to find anything in the archives.
>
>Does anyone else know where I can find it in the list archive?
>
>Thanks,
>Brian


Brian -

Here is one possible solution, from the discussion I mentioned previously,
which I found in my own "archive"...I hope it helps.

- Ed L.
----------------------------
Quoting Stefan Hornburg (racke@linuxia.de):
> ******    message to minivend-users from Stefan Hornburg
><racke@linuxia.de>     ******
>
> Malcolm Silberman <m_silber@mindspring.com> writes:
>
> > ******    message to minivend-users from Malcolm Silberman
><m_silber@mindspring.com>     ******
> >
> > Together with my consultant we are trying to display a 'shelves' view.
> > My consultant says Minivend can't do this, but I thought I would see if
> > anyone has any suggestions. Here is what we are attempting to do;
> >
> > We have small jpg images for each product. Instead of showing items in a
> > vertical list we want to display say 10 jpgs across and 10 down. i.e.. a
> > matrix of 10 by 10 (100 product images - with a link to more product
> > detail). Apparently it is difficult to tell Minivend where to place the
> > equivalent of an HTML <P> or <BR> at every 10 images. We especially want
> > to use this to display the results of a Minivend search when the search
> > returns more than say 20 items.
>
> [search-list]
> [perl interpolate=1]
> '<BR>' unless [item-increment] % 10;
> [/perl]
> [/search-list]
>

The performance on this would be poor for a large list, with many
separate [perl] calls.

This one now comes up so frequently I am adding high-performance tags:

    [item-alternate N] DIVISIBLE [else] NOT DIVISIBLE [/else][/item-alternate]
        Set up an alternation sequence. If the item-increment is divisible by
        `N', the text will be displayed. If an `[else]NOT DIVISIBLE
TEXT[/else]'
        is present, then the NOT DIVISIBLE TEXT will be displayed.

        For example:

                [item-alternate 2]EVEN[else]ODD[/else][/item-alternate]
                [item-alternate 3]BY 3[else]NOT by 3[/else][/item-alternate]

    [/item-alternate]
        Terminate the alternation area.



    [loop-alternate N] DIVISIBLE [else] NOT DIVISIBLE [/else][/loop-alternate]
        Set up an alternation sequence. If the loop-increment is divisible by
        `N', the text will be displayed. If an `[else]NOT DIVISIBLE
TEXT[/else]'
        is present, then the NOT DIVISIBLE TEXT will be displayed.

        For example:

                [loop-alternate 2]EVEN[else]ODD[/else][/loop-alternate]
                [loop-alternate 3]BY 3[else]NOT by 3[/else][/loop-alternate]

    [/loop-alternate]
        Terminate the alternation area.

Look for it in next beta of 3.15.

--
Mike Heins

-
PRINTEX Marking Technologies
12113 Kirkham Rd.
Poway, CA  92064  U.S.A.
(858) 513-2418
(800) 982-1928
(858) 513-2419 fax
edlafrance@printexusa.com
http://www.printexusa.com




Search for: Match: Format: Sort by: