View Single Post
Old 01-07-2011, 07:04 AM   #128
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,358
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by nynaevelan View Post
Now I have one more question, is there a way to have it go to the folder of the first tag if multiple tags exist?
This can be done. However, until 0.7.38, calibre and you might disagree on what the first tag is. Until that release, the order of tags in templates is not necessarily alphabetic.

The template expression is {tags:re((.*?)(\,|$).*,\1)}.

This problem comes up so many times that I think I will add functions to the template processor specifically for manipulating comma-separated lists.
chaley is offline   Reply With Quote