Don’t you love it when problems that seemed insurmountable in the past turn out to be fairly trivial to implement because of new techniques/libraries? I just had one of those moments and thought it would be instructive to share.
{#if $T.length == 0 && $P.root} No Categories {#else} {#foreach $T as cat} {#if $P.select} {$T.cat.Name} {#else} {$T.cat.Name} {#/if} {#if $P.edit} Delete Are you sure? Yes Cancel {#/if} {#if $P.edit && !$P.isRootBlog} Move {#/if} {#/for} {#/if}
Parent category: -- {#foreach $T as cat} {$T.cat.Name} {#/for}