cvs commit: www/en/news news.xml

Murray Stokely murray at freebsdmall.com
Tue Feb 14 14:42:39 PST 2006


On Tue, Feb 14, 2006 at 09:17:11PM +1100, Peter Jeremy wrote:
> The downside is that you could potentially wind up with very old
> "news" items if there aren't any new committers or non-new-committer
> entries for a while.  You probably need to include a cutoff time
> so that entries older than, say 3 months, aren't included.

Yes, the staleness of our news items aside from new committer entries
is the crux of the problem.

> >At the same time we could maybe fetch the newest entry from the java
> >or gnome individual news.xml files, since those also are seldom copied
> >to the front page.
> 
> Are there any other major projects?  I agree this might be nice but
> there's a limited amount of space on the home page.

I am not proposing adding more than the existing 5 events on the page
(actually, there is a bug such that it fetches the most recent 5 days
with events and displays all of them, which is 7 now).

I proposed using the java and gnome individual news.xml files as
additional sources of content from which to choose the 5 newest items.

So, ideally, I would like to choose the 3 newest entries from
news.xml, java/news.xml, and gnome/news.xml that do not contain the
word 'new committer'.  I'd then like to choose the 2 newest entries
that do contain the word 'new committer'.  I'd then like to sort all 5
of those by date and put them on the front page.  It might be better
to score the news and gnome entries lower than main news.xml items,
but if we can do the above then we can easily tweak things like that.

That is very, very difficult to do in XSLT.  I will buy a beer at
BSDCan for anyone who can show me how to do it.

       - Murray


More information about the cvs-doc mailing list