1
anlace
How Would I Modify News Topics to Display in 4 Columns?
  • 2004/7/30 23:32

  • anlace

  • Just popping in

  • Posts: 43

  • Since: 2004/7/27


Greetings,

How might I modify the file news_block_topicnav.html to display topics in 3 or 4 columns? I'm not sure how to make it display the next record in each cell. I tried the modification below, I got four columns alright but the same topic came up in each of the 4 cells across each row. This is probably something simple but I don't get it . . . .

This is from the News 1.2 module.

Thanks for any and all help!
Gail

<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>
<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>
<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>
<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>