MiniVend Akopia Services

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

Re: [mv] Index Display Trouble



>******    message to minivend-users from Quintin Lake
><quintin@maxnet.co.nz>     ******
>
>Hi
>
>Sorry about that, below is the source code for the index page. Thanks for
>you help.
>
>Quintin
>MaxNet
>
>[loop arg="[random]"]
><TABLE width=100% CELLPADDING="3">

... deleted ...

></TABLE>
>
><HR WIDTH="90%" [var HEADERBG] HEIGHT="1">
>[/loop]
><BR>
>

this will iterate over the number of item codes returned be the random tag.

if you defined random in catalog.cfg as:
Random  l1 l2 l3 l4

and have files l1.html .. l4.html with 1 item code each, the loop will
iterate over this item code and you get 1 item in your index page.

Either putting two item codes (seperated by space) into the files, or if
you surround your loop with [loop with "-a" arg ="1 2"][/loop] you get two
items.

The second solution might produce the same item code twice though, so the
same item may be displayed twice.

cheers, Frank

--
Frank Miedreich
Max-Planck-Institut fuer psychologische  Forschung
Leopoldstr. 24   80802 Muenchen   +49 89 38602-237




Search for: Match: Format: Sort by: