View Single Post
Old 02-20-2022, 11:00 PM   #2675
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 ownedbycats View Post
So I should be able to put, say '[EPUB]' into the #kobocoll field and then have the template check for that and send it as ePub?
Almost.

I wrote it to use true for sending as kepub and false for epub. Which, for templates is effectively any value for kepub and an empty value for epubs. I'm not sure if that is the correct way round. The option names feel easier as positive. But, maybe it should be "Send as epub".

In any case, I assume your #kobocoll is tag-like column. If so, the following should work:

Code:
program:
in_list($#kobocoll , ',', "\[EPUB\]", "", "1")
davidfor is offline   Reply With Quote