I solved the problem. I needed the id number of the news cathegory and i found it (when i moved over the cathegory name with the mouse) in the statusline of my browser.
Mit freundlichen Gr��en, Alexander Rigo ________________________________ indis Kommunikationssysteme GmbH Friedrich-Koenig-Str. 35 55129 Mainz Tel: 0 61 31.2 50 92 50 Fax: 0 61 31.2 50 92 59 ________________________________ -----Urspr�ngliche Nachricht----- Von: pp [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 19. April 2002 16:59 An: [EMAIL PROTECTED] Betreff: Re: [midgard-user] Topic ID > i want to use $article = mgd_list_topic_articles_all(21); to select my news. > But ho can i find out the right topic id? The 21 is only an example and i can > not find the right id. It depends what exactly You want to do. The simplest way: <? $article = mgd_list_topic_articles_all(21); while ($article && $article->fetch()) { ?> &(article.name); and its topic: &(article.topic); <? } ?> if You want get article topic or: <? $article = mgd_list_topic_articles_all($id); if ($article) for ($i = 0; $i < 20 && $article->fetch(); $i++) { ?> &(article.name); <? } ?> You got 20 newest articles this way from all topics. You may use type or whatever to additionaly filter all articles. Or get all article , make an array, and do you want to do. Piotras --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
