This template will display hierarchical tags as separate items and remove any duplicate items.
Nonfiction.Biographies, Nonfiction.Music will become
Nonfiction, Biographies, Music.
Code:
program:
split_tags = re($tags, '\.', ',');
list_join(',', split_tags, ',')
This additionally sorts the entries—the above example will become
Biographies, Music, Nonfiction.
Code:
program:
split_tags = re($tags, '\.', ',');
list_sort(list_join(',', split_tags, ','), 0, ',')