<ol id="topic-path">
{foreach from=$pathlist item="topic" key="key" name="pathlist"}
{if $smarty.foreach.pathlist.last}
<li>{$topic.name}</li>
{else}
<li><a href="{$b}{$topic.url}">{$topic.name}</a></li>
{/if}
{/foreach}
</ol>
