Jochen Lillich wrote:

> what's the best way of getting the newest article (including article
> replies) under a certain topic? Do I really have to traverse the
> topics whole article tree?

$cursor = mgd_list_topic_articles($topic, "reverse created", -1, 0);

but you'll have to fetch the latest CVS for that (just checked it in)
since "reverse created" was the one sort method that was missing. The
-1 means 'any type', that trailing 0 is the up field id, or 0 in which
case you get both articles and replies in one list.

Emile


--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]

Reply via email to