View Single Post
Old 03-23-2023, 05:02 AM   #15
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,529
Karma: 8075938
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by capink View Post
Does this have to be a dedicated plugin, or can it be done from and existing plugin e.g. writing custom or builtin actions for Action Chains.
I am thinking that it would be done in interface plugins by registering a function to be a generator for a lookup key.
Quote:
I can make the plugin call the actions to register the generator functions. if possible, would it need a restart whenever a custom action is added through the module editor?
I don't see a need to restart. A second call to the registration function would override the first. If the registration function no longer exists then "normal" processing would happen.

However, this does point out the need to be able to unregister a generator.

I am going to think about this a bit while looking at this. The idea might be an elegant solution to something I have thought about for months -- how to provide meta information about books such as author biographies and the like.
chaley is offline   Reply With Quote