Sean McGrath writes:
... "dtml-in" treats sequences of two element tuples specially ...
You are right.
This is to support the frequent case of iterating over item sequences.
There should be a "dtml-in" argument to switch off this special
treatment.
If I had your problem, I would go for such a
Sean McGrath wrote:
Hello all,
I have a question about the dtml-in tag. When it is iterating over a
sequence, and the items in the sequence happen to be tuples containing
exactly two items, then dtml-in places the first item from the sequence in
sequence-key, and the second item goes in
Sean McGrath writes:
... "dtml-in" treats sequences of two element tuples specially ...
You are right.
This is to support the frequent case of iterating over item sequences.
There should be a "dtml-in" argument to switch off this special
treatment.
If I had your problem, I would go for such a
Hello all,
I have a question about the dtml-in tag. When it is iterating over a
sequence, and the items in the sequence happen to be tuples containing
exactly two items, then dtml-in places the first item from the sequence in
sequence-key, and the second item goes in sequence-item. If the
Does sort only sort in one direction? I am looking to sort news items
so that the newest items are on top, and when sorting on a date field,
I get the opposite behaviour. Any easy way to reverse the sort order?
Thanks
pk
___
Zope maillist -
"Patrick J.M. Keane" wrote:
Does sort only sort in one direction? I am looking to sort news items
so that the newest items are on top, and when sorting on a date field,
I get the opposite behaviour. Any easy way to reverse the sort order?
Yes, by adding reverse to the sort tag ;-)
Patrick J.M. Keane writes:
Does sort only sort in one direction? I am looking to sort news items
so that the newest items are on top, and when sorting on a date field,
I get the opposite behaviour. Any easy way to reverse the sort order?
Thanks
pk
dtml-in MyItems sort=whatever reverse
Patrick J.M. Keane wrote:
I get the opposite behaviour. Any easy way to reverse the sort order?
Well, I found there _is_ a reverse attribute to the dtml-in
tag, but it's not documented in my version (2.1.0, 1999/12/17)
of the DTML Reference. It works.
Cheers,
Nils