MiniVend Akopia Services

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

[tag] and [sort] with 'other' databases...



>From the docs:

[tag each products]
[sort products:category products:title]
[loop-field category] [loop-field title] <BR>
[/tag]

This is "A two level sort, that will sort products based first on their
category then on their title within the category".

Perfect.  Now all I want to do is the same, but with only one field, and
from a database *other* than the product database.  Here is what I have:

[tag each news]
[sort news:code]
[loop-data news date] [loop-data news synopsis] <BR>
[/tag]

No matter what I try, minivend displays them randomly.  The news db file
looks like:

code    date    synopsis   details
000001  01-Jul-99  Some stuff   Some more details on stuff.
000002  ...

This should be simple - I just want to read the fields from the database
and display them in the same order they were read in...  For whatever
reason they seem to get bounced around all over the place.  Is there
some magic that I need to use when I'm not using the products db??

Cheers!
.src


Search for: Match: Format: Sort by: