Quote:
Originally Posted by pg111
Hi,
I have a question but I apologize if this is not the proper place to ask. If so, plse kindly let me know where I should ask my question. Many thanks in advance.
Is it possible to create a custom column where you can enter new text that complements an existing set of defined values?
For instance, if I have a column with values A, B, and C, I may want to enter a value D which will be added to the existing list. Is it possible in calibre? I cannot see any such option.
Many thanks in advance for any help.
Patrik
|
The only way I can think of to do this is to create two columns, one for the values to add and one to display the merged columns. The first would be text, tags like. The second would be column built from other columns, behaves like tags. The second's template would be something like this:
Code:
program:list_union(field('tags'), field('#mytextmult'), ',')
Replace the column lookup names with the ones from your library.
If you want the list sorted then use list_sort:
Code:
program:list_sort(list_union(field('tags'), field('#mytextmult'), ','), '0', ',')