10
I made it - so if you cannot wait until module release, here goes (long post, sorry)
news/xoops_version.php
$modversion['blocks'][6]['file'] = "news_topicsnav.php";
$modversion['blocks'][6]['name'] = _MI_NEWS_BNAME7;
$modversion['blocks'][6]['description'] = "Shows a block to navigate topics";
$modversion['blocks'][6]['show_func'] = "b_news_topicsnav_show";
$modversion['blocks'][6]['template'] = 'news_block_topicnav.html';
Might be $modversion[5]...depends...
news/blocks/news_topicsnav.php (new file)
<?php
function b_news_topicsnav_show() {
global $xoopsDB;
$block = array();
$sql = "SELECT topic_id, topic_title FROM ".$xoopsDB->prefix("topics")." WHERE topic_pid=0 ORDER BY topic_title";
$result = $xoopsDB->query($sql);
while ($topic = $xoopsDB->fetchArray($result)) {
$block['topics'][] = array('id' => $topic['topic_id'], 'title' => $topic['topic_title']);
}
return $block;
}
?>
news/templates/blocks/news_block_topicnav.html (new file)
<table cellspacing="0">
<tr>
<td id="mainmenu">
<{foreach item=topic from=$block.topics}>
<a class="menuMain" href="<{$xoops_url}>/modules/news/index.php?storytopic=<{$topic.id}>"><{$topic.title}></a>
<{/foreach}>
</td>
</tr>
</table>
add the following to news/language/english/modinfo.php
define('_MI_NEWS_BNAME7', 'News Topics');
Upload and update the module and you should have a block to position, which will list the topics in a main menu-like fashion.