Hi to all members,
I would like to integrate the vue element FieldColor in the plugin settings. The idea is that users can specify a color in the settings, which can then be viewed as a color in a galley created by the plugin. The color setting of the default theme plugin can not be used, because the color selection should also be possible when using other theme plugins.
I want my plugin to provide a color selection in the plugin settings, just like the default theme plugin does but not in the website theme settings but in the plugin settings. For this I thought it would be reasonable to use the colorpicker that is already integrated in OJS, so FieldColor. Unfortunately, I cannot add FieldColor in the settings template as fbvElement
because there is no corresponding definition for FieldColor
in lib/pkp/templates/form. Also, I cannot use the usual functions for including vue elements (such as addOption or addField) because I use Form
as class as recommended for Settings and the functions are not defined there.
import('lib.pkp.classes.form.Form');
class PluginSettingsForm extends Form
Is there any way I can include FieldColor
in the plugin settings? Can I somehow include it in the template, or use another class so that I can include it via addField
?
I am currently using version 3.4.0.0 pulled from OJS main branch on github.
I am very glad about any help!