askvortsov u mean that i need a controller?
in my mind was simple, admin goes to the extension setting, then fill the field with a valid email, and the i transform that input value into a variable.
after that i put this variable instead of a email.
for sure its wrong....but that is what i have in my mind
now i have this but it basically useless i think:
import app from 'flarum/app';
import ExtensionPage from 'flarum/admin/components/ExtensionPage';
app.initializers.add('justoverclock-contactme', () => {
app.extensionData.for('justoverclock-contactme')
.registerSetting({
setting: 'justoverclock-contactme.coordinates',
type: 'email',
required: true,
label: app.translator.trans('flarum-ext-contactme.admin.settings.emaillabel')
}, 15)
});