{loop typies() $t} {if $t[typeid]==$__pid}

{$t[typename]}

{$t[htmldir]}
{/if} {/loop}
{loop categories() $t} {if $t[catid]==$__pid}

{$t[catname]}

{$t[htmldir]}
{/if} {/loop}