View Single Post
Old 10-27-2018, 02:32 PM   #38
ilovejedd
hopeless n00b
ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.
 
ilovejedd's Avatar
 
Posts: 5,110
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
Posting the PM here since you're likely to get more input and it might help others, too.

Quote:
Originally Posted by Tanjamuse
I have the following category, which you gave me part of:

Code:
program:
    uc = user_categories();
    icon = test (or(field ('#cloud'),field ('#lists')), '', 'list_uninteresting.png');
    str_in_list(uc,',','Uninteresting',icon,'')
I have added sub categories to the Uninteresting category but would like to have this rule apply to all sub categories, do I have to add them all (and how do I formulate that) or can there be a rule for just the top one (Uninteresting) and then the rest of them will also use that?
I'm actually not sure. To be honest, I don't use icon rules and have only recently started dipping my toes into User Categories.

Looking at the Calibre function reference for str_in_list, it seems like it should only apply to the top Uninteresting category.

Perhaps you could use (contains) instead?

Code:
contains(uc,'Uninteresting',icon,'')
ilovejedd is offline   Reply With Quote