> I modified code init of my products with:
> <?
>  if ($argc == 1) $tid = $argv[0];
>  if ($tid && !mgd_is_in_topic_tree(12,$tid)) $tid = 0;
>  if ($tid) $topic = mgd_get_topic($tid);
>  ?>
> 
> and added to code of my products:
> 
> <? $temat = mgd_list_topics(12); ?>
>  <p>
>  <? while ($temat && $temat->fetch()) { ?>
>  <a href="&(temat.id);.html">&(temat.name);</a>
>  <br>
>  <? } ?>
>  </p>
> 
> how to change the number of topic (12 in this case) "on the fly" ( I don't
> know how to say it in English ).

The various elements combine to one page that will be executed by PHP. The
variables stay defined, so you could use $tid in the second part.

> On demo site  I saw in article code something like this:
> mgd_list_topic_articles_all(12, "alpha")
> 
> what is "alpha" ?

It's the sort order in which you want the articles returned (sorted
alphabetically on title in this case). The sort order possibilities and
their meaning are in the manual.

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]

Reply via email to