[opencms-dev] How to sort news items?

Stephan Hartmann beffe at beffe.de
Fri Mar 19 21:26:01 CET 2004


if you get a vector of the elements in jsp, feel free to iterate it from its
last entry to the first:
Vector v = NewsContentDefinition.getNewsList(new Integer(1), "-1");
for (int i = v.size()-1; i >=0; i--) {
  NewsContentDefinition ncd = (NewsContentDefinition)v.elementAt(i);
  ...
}
----- Original Message -----
From: "Thomas Gagné" <tgagne at wideopenwest.com>
To: <opencms-dev at opencms.org>
Sent: Friday, March 19, 2004 8:16 PM
Subject: [opencms-dev] How to sort news items?


> When I read the items from a news channel they come out in ascending
> time order.  Is there a way to select them out in descending order?
>
> Also, is there documentation for the news package? How about source?
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev




More information about the opencms-dev mailing list