PP wrote:
>
> >
> >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
> or
>
> <? $zzz = mgd_list_topics();
> if ($zzz) { ?>
> <p>
> <strong><a href="/news/&(zzz.id);.html">&(zzz.title);</a></strong>
> <? } ?>
> </p>
>
> doesn't work either
With mgd_list_topics() you have a cursor only, you should fetch records
in a loop:
<?
$root_topic = 0; /* change for proper value */
$zzz = mgd_list_topics($root_topic); ?>
<p>
<? while($zzz && $zzz->fetch()) { ?>
<strong><a
href="/news/&(zzz.id);.html">&(zzz.title);</a></strong><br>
<? } ?>
</p>
--
Best regards,
Alexander
--
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]