MiniVend Akopia Services

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

Re: problems with databases



******    message to minivend-users from Frank Miedreich <miedreich@acm.org>     ******

>******    message to minivend-users from "Alessandro Scudieri"
><scudieri@balbi.unige.it>     ******
>
>Hy list.
>
>I have some problem managing an arbitrary database, defined in catalog.cfg
>as:
>
>Database settori settori.txt TAB
>
>The file settori.txt look like this:
>
>cod settore
>0 Abbigliamento
>1 Cucina
>...
>
>When in a page I write this piece of code:
>...
>[tag each settori]
> This is the categry: [loop-field settore]
>[/tag]
>...
>
>I obtain a list of n lines, where n=# of records in settori.txt, but with
>repeated fields
>(for example "Abbigliamento" is shown 5-6 times etc.)
>
>I also have problems in sorting the products database, the command is
>totally ignored!
>

Hi,

if I remember correctly, the tag [loop-field any_field] will access the
products database by default. For an arbitrary database try using:
[data base="settori" field="settore" key="[loop-code]"] instead, or use:
[loop-data settori settore] .

Relevant documentation is:
http://www.minivend.com/minivend/tags/01.26._loop_.html

and

http://www.minivend.com/minivend/docindex/08.05.LOOP_and_TAG_EACH.html


Can't help with sort: insufficient data?

Start at:
http://www.minivend.com/minivend/docindex/13.00.SORTING.html

ciao, Frank



--
Dual rounds of ROT-13 encryption discontinued. Somebody was able to crack this.
Frank Miedreich
Max-Planck-Institut fuer psychologische Forschung


-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: