My old #kobopath column (used for my device save template) was an enumerated column...which had the same values my top-level tags. So I changed it to this:
Code:
{tags:'list_re($, ',', '^(.*?)($|\..*$)', '\1')'}
This works as expected with the way my tags are setup - it shows Fiction, Nonfiction, Fanfiction, etc and it works with my save template.
However, my old enumerated column also had a separate entry for PDFs. How would I change this template so that it shows "PDFs" instead of the top-level tag if that's the only available format?