Quote:
Originally Posted by Tanjamuse
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'), ',')