> >You can obtain a list of subtopics using the function
> >mgd_list_topics(int $topic)
>
> I've tried something like this:
>
> <? mgd_list_topics(xx) ?>
> <a href="&(topic.url);">&(topic.url);</a>
>
> doesn't work
The list functions only do setup work. You need to call fetch() on the
result to actually get at the info:
<? $topic = mgd_list_topics(xx); while ($topic && $topic->fetch() { ?>
<a href="&(topic.url);">&(topic.url);</a><br>
<? } ?>
or if you want only the first:
<? $topic = mgd_list_topics(xx); if ($topic && $topic->fetch() { ?>
<a href="&(topic.url);">&(topic.url);</a><br>
<? } ?>
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]