Ok, so far so good. It now have the correct topic id, but for some reason, list_leaves seems to return the wrong article ids. It correctly returns two articles, but the wrong ones. With topics, it's the same. There are two subtpoics, and my functions returns two topic ids, but the wrong ones. Here's what I wrote:There is another function called "get_current_node", it returns the current node ID (that is the Topic ID, this mapping is not true for leaves however).
Nico.
$nav = new midcom_helper_nav();
$loc = $nav->get_current_node();
$children = $nav->list_leaves($loc);
foreach ($children as $child){
$article = mgd_get_article($child);
?><a href="&(article.url);">&(article.title);</a><br><?
}And this is the output:
<http://www.bwlabs-mx.de/lh_world/>Content Administration Host Administration (the urls are in both cases those of the topic I'm looking at).
Where did I go wrong?
Bye,
Andreas
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
