Getting the forum URL in a template


Well-known member
This template code block almost works:

  <xen:foreach loop="$threads" key="$index" value="$thread">
  <tr class="dataRow">
  <td><a href="{xen:link forums, $forum}" title="{$thread.nodetitle}" target="_blank">{$thread.nodetitle}</a></td>
  <td><a href="{xen:link threads, $thread}" title="{$thread.title}" target="_blank">{$thread.title}</a></td>
The forum name is displayed as a link, but each forum has the same forum_id number. The first forum is correct and clicking on the link takes you to the correct forum.

Thank you for any assistance.