AW: [opencms-dev] How to sort news items?

Mark Miller mark.miller at hema.ch
Mon Mar 22 09:30:02 CET 2004


Take a look at the news module at
http://www.hema.ch/personal/mark.miller/opencms/ ... I have included the
full source with the module (you need to install it or simply extract
the zip file). There are a couple of methods for sorting news items
already built in.

I also have a javadoc at the same web location under the link "news
module 1.2 javadoc api".



Kind regards,
 
Mark Miller
 
Hema Computersysteme AG
Frauholzstrasse 9a
6422 Steinen
 
Phone: +41 (0) 41 833 88 88
info at hema.ch
www.hema.ch


-----Ursprüngliche Nachricht-----
Von: opencms-dev-admin at opencms.org
[mailto:opencms-dev-admin at opencms.org] Im Auftrag von Stephan Hartmann
Gesendet: 19 March 2004 21:25
An: opencms-dev at opencms.org
Betreff: Re: [opencms-dev] How to sort news items?

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

_______________________________________________
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