View Single Post
Old 10-09-2019, 10:01 AM   #5
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by 2nise View Post
I see. Since Kobo is helping create the Tolinos since a few years ago, and the readers do look quite similar (both in hardware and software), so I just assumed they'd function similarly, too. Thanks for the correction.
Kobo own a chunk of tolino and are sharing hardware. But, the firmware is completely different.
Quote:
I've tired different version of this:
{series:ifempty('tags')}

I've tried using field(tags) in the ifempty bracket, as well as different versions using the apostrophe/not using them. I also tried using a predefined text/folder and custom field instead of the tags field, but no difference.
I assume it's just a dumb syntax error from me misunderstanding the template language, but I honestly am out of ideas now
You can try:

Code:
{:'ifempty(field("series"),field("tags"))'}
But, I don't think it will do what you really want. That will create a collection for each combination of tags you have in the books.

The following will use just the first tag for each book:
Code:
{:'ifempty(field("series"),list_item(field("tags"),1,","))'}
And the following won't sort the tag list first:
Code:
{:'ifempty(field("series"),list_item(raw_field("tags"),1,","))'}
If you wanted to use single collection for all non-series book, you can use:

Code:
{series:ifempty(non-series)}
Hopefully one of those will work, or give you an idea of what to do.
davidfor is offline   Reply With Quote