James Gifford <[EMAIL PROTECTED]> wrote:

> pp wrote:
> 
> >$article->print(int which points to New South); 
> >
> Hi pp
> 
> Are you saying that once you have fetched a number or articles, you can 
> further filter them by various fields like print?

I do not think I understand Your idea in 100%. But what You wrote 
as SQL query may be easily done with midgard API. I do not say
it is the best way , but the first one I thought of.
 
> I tried fetching some articles and then filtering them like so:
> <?
> $article = mgd_list_topic_articles_all($root_topic->id);

Look at manual for this function parameters.
Type is supported.

> echo "article number = " . $article->N;
> $article->fetch();

while ($article && $article->fetch())
{

// example 
if ($article->extra3 == 'what I need') 
        {
        $guid = $article->parameter("_topic","GUID");
        $topic = mgd_get_object_by_guid($guid);

        print "<p>$article->name from category: <a href=/some/link">$topic->name</a>";
        // etc etc
        
        }

}

> $art = $article->print(24);

Does that works?


Piotras

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to