[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
[sort] bug confirmed in Minivend 3.12
Synopsis: [tag each db] with [sort] does not work for databases other
than products.
Example:
<HTML>
[tag each products]
[sort products:0] {which would be 'code' in the db file}
[item-field name]
[/tag]
</HTML>
Result:
Name1
Name2
Name3
However, if you want to sort the fields in a database other than
products, your code would need to look like:
<HTML>
[tag each news]
[sort news:0]
[item-data news name]
[/tag]
</HTML>
Result:
Name1
Name3
Name2
Note that the following change is necessary in the second example:
[item-field x] becomes [item-data y x]
You must do this to access any db other than products.
In short: [sort db:field] works fine with [item-field x] but not with
[item-data y x].
Hope this helps someone in the future (perhaps through the archives).
Cheers!
.src