View Single Post
Old 10-15-2010, 11:32 AM   #49
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: 11,740
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Sweetpea View Post
I have a yes/no/unknown custom column ({#read}). I want to use this column in a collection. But simplying adding {#read} doesn't work, as I'll get a collection "Yes" and "No". Which doesn't make any sense, naturally.
Actually, unless you change the renaming rules, the collections would be named 'Yes (Read)' and 'No (Read)', where 'Read' is the column heading of the custom field.
Quote:
So, I'd like to make a new custom column {#collection_read} which will transform the "Yes", "No" and "" into a value with actual visible meaning

But {#column:switch(Yes, Read, No, Reading, Unread)} doesn't work... It'll give me either "Read" or "Unread", the "Reading" is never shown...
The problem is that the test must match exactly, including spaces. Try
{#column:switch(Yes,Read,No,Reading,Unread)}
chaley is offline   Reply With Quote