[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: howto display multiple product images on one line
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 http://www.minivend.com/ ___
Internet Robotics |_ _|____
131 Willow Lane, Floor 2 | || _ \
It's a little-known fact Oxford, OH 45056 | || |_) |
that the Y1K problem caused <mikeh@minivend.com> |___| _ <
the Dark Ages. -- unknown 513.523.7621 FAX 7501 |_| \_\