New Test Version Posted
2018-04-13
- Fix for saved custom column metadata and boolean values.
Quote:
Originally Posted by jesscat
I have been using the Saved Metadata column for my experimenting, but couldn't figure out where bookmarkprivate (or bookmarkrecs for that matter) are. I don't see either of them, even though I have always_login set to true.
|
They only appear in saved metadata if true for a story, so technically they never have a false value.
Quote:
Originally Posted by jesscat
Assuming that part gets worked out, I think I need a little more help in figuring out how to use custom_column_settings to achieve what I want to do with a boolean field, because I think I'm missing something from your explanation. Where do the yes/1/true values fit in to custom_column_settings? Would I just do something like this [assuming #my_bookmarks is my yes/no column for whether a story is bookmarked]:
Code:
custom_columns_settings:
bookmarkprivate=>#my_bookmarks
|
That should work, unless you have tri-state booleans on.
Quote:
Originally Posted by jesscat
...though actually what I really want is for the #my_bookmarks custom column to be set to true if bookmarkprivate is true *or* false, and to be set to false if bookmarkprivate is undefined.
|
All you really get from bookmarkprivate is True or undefined. I'll consider if it could be changed to be true/false/undefined(no bookmark).