Ok, I'm not sure you provided me with the code where the misstake is, but
I'll try to help you.
As far as I know there are quite a few functions for listing articles,
depending on if you are going to sort then on date, if you only need some
by a certain type etc. The two most basic are:
1 mgd_list_topic_articles(int topic, string [sort], int [type]);
and
2mgd_list_topic_articles_all()
As far as I have understood things, (1) lists all articles with the topic
field set to topic. (2) lists all articles including those in the subTOPICS.
I.e. it checks if the topic has childern and what children it has.
I think this should help you.
You need some code like this:
$topic_id = 86;
$article = mgd_list_topic_articles_all($topic_id, "date");
if ($article) {
for ($i = 0; $article->fetch();$i++) {
some code for expressing the artilces.
}
this should do it.
Tarjei
> -----Original Message-----
> From: Thomas Franosch [mailto:[EMAIL PROTECTED]]
> Sent: 18. januar 2001 12:15
> To: [EMAIL PROTECTED]
> Subject: [midgard-user] list articels
>
>
> Hello,
>
> perhaps someone can help me. Where is the mistake. I tried to list all
> acrticle. It works fine, but it don`t shows only the articel in the
> directory. The script should also show the articles from the
> subdirectory.
>
> $topic_id = 86;
>
> if ($argc == 1) $id = $argv[0];
> if ($id && !mgd_is_article_in_topic_tree( $topic_id, $id)) $id = 0;
> if ($id) $article = mgd_get_article($id);
> if ( $article ) {
>
>
> ....
>
>
>
> Thanks for your help !
>
>
>
> Thomas
>
>
>
> ---------------------------------------------------------------------
> 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]