Quote:
Originally Posted by Sweetpea
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)}