 <pre><code>{foreach item="item" from=$root.page.news.item } {foreach from=$item.Tags item=tagitem key=kex} {if !$done.$tagitem} {$done.$tagitem = 1} {$tagitem} {/if} {/foreach} {/foreach} </code></pre> <p>I am not sure it works with all the versions.</p> <p>Maybe it would be a bit cleaner to call an <code>array_unique()</code> in the php.</p>