----- Original Message -----
From: "Emiliano" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 29, 2001 9:35 AM
Subject: Re: [midgard-user] Topic and arguments
>

> Kirkens Bymisjon Troms� wrote:
>
> > I want to fetch subtopics under topic xx. And I want to use
> > xx/subtopic.name as the path. But it seems like the only way to make
> > it work is by using topic.id. Is there any way to refer to an article
> > under a subtopic by using topic name?
>
> mgd_get_topic_by_name


$root_topic = 123;
$sub_topic = mgd_get_topic_by_name($root_topic, "my_sub_topic");
$topic = mgd_get_topic_by_name($sub_topic->id, "my_topic");
$article = mgd_get_article_by_name($topic->id, "my_article");

You get the picture...

> Emile

David



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

Reply via email to