As you're probably fully aware by now I'm not a programer, but I have this habbit of dissecting code, sometimes successfully, sometimes...not so much..
I'm using the extended smarty output and I'm trying to mimic way categories are output (it's still a work in progress, but have a look here).
It looks pretty good, but I have a problem with the trailing comma, as you can see. The categories have this line of code
Code: Select all
{if not $smarty.foreach.categories.last}, {/if}
Code: Select all
{if not $entry.freetag.last}, {/if}
I have also tried
Code: Select all
{if not $entry.freetag.tags.last}, {/if}
{if not $entry.freetag.tags.tags.last}, {/if}
I'm assuming I got the coding wrong, hoping there is a way to limit it to all but the last tags. Any suggestions?