View Single Post
Old 10-03-2014, 10:45 AM   #115
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,450
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Tanjamuse View Post
Can I create a custom column built from other columns, based on the number of fandoms pr. story?

I've got the following from my word count custom column (I don't know if

Quote:
program:
words=raw_field('#words');
shelf_name=cmp(words, 300, 'Drable', 'Ficlet', 'Ficlet');
The custom column that needs to be sorted by is called: #number_fandoms

I tried the following but that didn't work:

Quote:
program:
('#number_fandoms');
shelf_name=cmp(fandoms, 2, 'Multi')
I would like it to be if there are 3 or more fandoms.
I don't know exactly what you want. Do you already have a column called #number_fandoms? If so, what precisely do you want to do with it?

Do you have a column called #fandoms? Are you looking for the count of items in this column? If so, is it a "Text, like tags" column? If so, then a template that gives the count of items in that column is
Code:
{#fandoms:count(,)}
or
Code:
program: count(field('#fandoms'), ',')
chaley is offline   Reply With Quote