Quote:
Originally Posted by meme
3. Yes. See the Examples section on the first post under Custom Columns. What you are looking for is to create a custom column based on other columns. To fill the column with "Short Stories" if there is a tag called "SS" or with Author Sort if there is no tag "SS", use the template: {tags:'contains($,"SS","Short Stories", field("author_sort"))'} I think I might add that as a new example as it shows how powerful Calibre's templates are.
|
What if I have multiple tags? For example, "SS" for Short Stories, "Single Author" for those authors that I only have 1 book, or no tag for all the others? Can I specify multiple "Contains" arguments?
Edit: Figured this one out through trial and error:
{tags:'contains($,"SS","Short Stories", contains($,"Single","Authors with only 1 book", field("author_sort")))'}
Thanks again!