View Single Post
Old 03-12-2022, 12:11 PM   #2678
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: 12,510
Karma: 8065348
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by giddie View Post
But it has made me wonder - could it be possible to make the "Collections columns" field in the driver configuration a template? That way we could use the same trick to return a different column name depending on the connected device? In that case, a non-matching device uuid should result in no column being specified for collections sync, so the driver will not try to do any syncing.
@davidfor: using a template either to control whether "Managed collections" is checked or (my preference) the setting of Manage metadata in the context of the Kobo driver would solve this problem without overloading using templates to generate the list of values (not attributes). In the latter case, if the template exists then it would return one of 'manual', 'on_send', or 'on_connect' depending on the device UUID/serial number. It the template doesn't exist then the driver uses the value of the preference.
chaley is offline   Reply With Quote